1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = %{rel_ver}.%{rel_date}
14 url = http://christophe.varoqui.free.fr/
16 summary = Tools to manage multipath devices using device-mapper.
19 This package provides tools to manage multipath devices by
20 instructing the device-mapper multipath kernel module what to do.
23 thisapp = %{name}-%{rel_date}
25 sources = %{thisapp}.tgz
38 # Fix hardcoded install location for udev rules.
39 sed -e "s@lib/udev@usr/lib/udev@g" -i multipath/Makefile
42 # Install everything to the correct locations.
43 make_install_targets +=\
46 libdir=%{libdir}/multipath \
50 # Remove old SysV init script and folder.
51 rm -rf %{BUILDROOT}/etc/rc.d
53 # Install configuration file.
54 install -m 0664 %{DIR_SOURCE}/multipath.conf %{BUILDROOT}%{sysconfdir}/multipath.conf
65 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
69 /usr/bin/systemctl --no-reload disable multipathd.service >/dev/null 2>&1 || :
70 /usr/bin/systemctl stop multipathd.service >/dev/null 2>&1 || :
74 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
78 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
79 /usr/bin/systemctl try-restart multipathd.service >/dev/null 2>&1 || :
84 summary = Partition manager for device-mapper devices.
86 kpartx manages partition creation and removal for device-mapper devices.
91 %{mandir}/man8/kpartx.8*
99 package %{name}-debuginfo