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}
10 thisapp = %{name}-%{rel_date}
15 url = http://christophe.varoqui.free.fr/
17 summary = Tools to manage multipath devices using device-mapper.
20 This package provides tools to manage multipath devices by
21 instructing the device-mapper multipath kernel module what to do.
24 sources = %{thisapp}.tgz
36 make_build_targets += LIB=%{lib}
38 # Install everything to the correct locations.
39 make_install_targets += \
42 libdir=%{libdir}/multipath \
46 # Remove old SysV init script and folder.
47 rm -rf %{BUILDROOT}/etc/rc.d
49 # Install configuration file.
50 install -m 0664 %{DIR_SOURCE}/multipath.conf %{BUILDROOT}%{sysconfdir}/multipath.conf
61 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
65 /usr/bin/systemctl --no-reload disable multipathd.service >/dev/null 2>&1 || :
66 /usr/bin/systemctl stop multipathd.service >/dev/null 2>&1 || :
70 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
74 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
75 /usr/bin/systemctl try-restart multipathd.service >/dev/null 2>&1 || :
80 summary = Partition manager for device-mapper devices.
82 kpartx manages partition creation and removal for device-mapper devices.
87 %{mandir}/man8/kpartx.8*
95 package %{name}-debuginfo