]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - multipath-tools/multipath-tools.nm
glibc: Disable multilib support on X86_64
[people/stevee/ipfire-3.x.git] / multipath-tools / multipath-tools.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = multipath-tools
7 version = %{rel_ver}.%{rel_date}
8 release = 1
9
10 thisapp = %{name}-%{rel_date}
11 rel_ver = 0.4.9
12 rel_date = 130222
13
14 groups = System/Base
15 url = http://christophe.varoqui.free.fr/
16 license = GPL+
17 summary = Tools to manage multipath devices using device-mapper.
18
19 description
20 This package provides tools to manage multipath devices by
21 instructing the device-mapper multipath kernel module what to do.
22 end
23
24 sources = %{thisapp}.tgz
25
26 build
27 requires
28 gzip
29 libaio-devel
30 libdevmapper-devel
31 libudev-devel
32 ncurses-devel
33 readline-devel
34 end
35
36 make_build_targets += LIB=%{lib}
37
38 # Install everything to the correct locations.
39 make_install_targets += \
40 bindir=%{sbindir} \
41 syslibdir=%{libdir} \
42 libdir=%{libdir}/multipath \
43 unitdir=%{unitdir}
44
45 install_cmds
46 # Remove old SysV init script and folder.
47 rm -rf %{BUILDROOT}/etc/rc.d
48
49 # Install configuration file.
50 install -m 0664 %{DIR_SOURCE}/multipath.conf %{BUILDROOT}%{sysconfdir}/multipath.conf
51 end
52 end
53
54 packages
55 package %{name}
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
90
91 package %{name}-devel
92 template DEVEL
93 end
94
95 package %{name}-debuginfo
96 template DEBUGINFO
97 end
98 end