]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - multipath-tools/multipath-tools.nm
python-tornado: Update to version 4.2.1
[people/amarx/ipfire-3.x.git] / multipath-tools / multipath-tools.nm
CommitLineData
dc01aad8 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
dc01aad8
SS
4###############################################################################
5
802ea3af 6name = multipath-tools
d8602e2a 7version = %{rel_ver}.%{rel_date}
802ea3af 8release = 1
dc01aad8 9
289c5516 10thisapp = %{name}-%{rel_date}
d8602e2a 11rel_ver = 0.4.9
289c5516 12rel_date = 130222
d8602e2a 13
802ea3af
MT
14groups = System/Base
15url = http://christophe.varoqui.free.fr/
16license = GPL+
17summary = Tools to manage multipath devices using device-mapper.
dc01aad8 18
802ea3af
MT
19description
20 This package provides tools to manage multipath devices by
dc01aad8 21 instructing the device-mapper multipath kernel module what to do.
802ea3af
MT
22end
23
d8602e2a 24sources = %{thisapp}.tgz
802ea3af
MT
25
26build
27 requires
28 gzip
29 libaio-devel
30 libdevmapper-devel
d8602e2a 31 libudev-devel
802ea3af
MT
32 ncurses-devel
33 readline-devel
34 end
35
289c5516 36 make_build_targets += LIB=%{lib}
d8602e2a
SS
37
38 # Install everything to the correct locations.
289c5516 39 make_install_targets += \
d8602e2a
SS
40 bindir=%{sbindir} \
41 syslibdir=%{libdir} \
42 libdir=%{libdir}/multipath \
43 unitdir=%{unitdir}
802ea3af
MT
44
45 install_cmds
d8602e2a 46 # Remove old SysV init script and folder.
802ea3af 47 rm -rf %{BUILDROOT}/etc/rc.d
d8602e2a
SS
48
49 # Install configuration file.
50 install -m 0664 %{DIR_SOURCE}/multipath.conf %{BUILDROOT}%{sysconfdir}/multipath.conf
802ea3af
MT
51 end
52end
53
54packages
55 package %{name}
d8602e2a
SS
56 configfiles
57 /etc/multipath.conf
58 end
59
60 script postin
61 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
62 end
63
64 script preun
65 /usr/bin/systemctl --no-reload disable multipathd.service >/dev/null 2>&1 || :
66 /usr/bin/systemctl stop multipathd.service >/dev/null 2>&1 || :
67 end
68
69 script postun
70 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
71 end
72
73 script postup
74 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
75 /usr/bin/systemctl try-restart multipathd.service >/dev/null 2>&1 || :
76 end
77 end
78
79 package kpartx
80 summary = Partition manager for device-mapper devices.
81 description
82 kpartx manages partition creation and removal for device-mapper devices.
83 end
84
85 files
86 %{sbindir}/kpartx
87 %{mandir}/man8/kpartx.8*
88 end
89 end
1f9bc2f0 90
802ea3af
MT
91 package %{name}-devel
92 template DEVEL
93 end
1f9bc2f0
MT
94
95 package %{name}-debuginfo
96 template DEBUGINFO
97 end
802ea3af 98end