]> git.ipfire.org Git - ipfire-3.x.git/blob - lvm2/lvm2.nm
kernel: Fix compiled-in version number
[ipfire-3.x.git] / lvm2 / lvm2.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = lvm2
7 version = 2.02.166
8 release = 1
9 thisapp = LVM2.%{version}
10
11 groups = System/Base
12 url = http://sources.redhat.com/lvm2/
13 license = GPLv2
14 summary = Userland logical volume management tools.
15
16 description
17 LVM2 includes all of the support for handling read/write operations on
18 physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
19 multiple devices (MD), see mdadd(8) or even loop devices, see
20 losetup(8)), creating volume groups (kind of virtual disks) from one
21 or more physical volumes and creating one or more logical volumes
22 (kind of logical partitions) in volume groups.
23 end
24
25 source_dl = ftp://sources.redhat.com/pub/lvm2/
26 sources = %{thisapp}.tgz
27
28 build
29 requires
30 pkg-config
31 libblkid-devel
32 libudev-devel
33 ncurses-devel
34 readline-devel
35 systemd-devel
36 end
37
38 configure_options += \
39 --with-default-dm-run-dir=/run \
40 --with-default-run-dir=/run/lvm \
41 --with-default-pid-dir=/run/lvm \
42 --with-default-locking-dir=/run/lock/lvm \
43 --with-usrlibdir=%{libdir} \
44 --disable-lvm1_fallback \
45 --disable-selinux \
46 --enable-fsadm \
47 --with-pool=internal \
48 --enable-write_install \
49 --with-user= \
50 --with-group= \
51 --with-device-uid=0 \
52 --with-device-gid=6 \
53 --with-device-mode=0660 \
54 --enable-dmeventd \
55 --enable-blkid_wiping \
56 --enable-pkgconfig \
57 --enable-applib \
58 --enable-cmdlib \
59 --with-udevdir=%{prefix}/lib/udev/rules.d \
60 --enable-udev_sync
61
62 test
63 # Skip the testsuite, because it requires a mounted
64 # /tmp with support for block devices (without "nodev")
65 # and at least one available loopback device, which is not
66 # available in or chroot build environment.
67 end
68
69 install_cmds
70 make install_system_dirs DESTDIR=%{BUILDROOT}
71 make install_systemd_units DESTDIR=%{BUILDROOT}
72 make install_systemd_generators DESTDIR=%{BUILDROOT}
73 make install_tmpfiles_configuration DESTDIR=%{BUILDROOT}
74 end
75 end
76
77 packages
78 package %{name}
79 prerequires += \
80 systemd-units
81
82 requires
83 %{name}-libs = %{thisver}
84 end
85
86 script postin
87 systemctl daemon-reload >/dev/null 2>&1 || :
88
89 # Enable lvm2-monitor.service on completely new installations.
90 systemctl --no-reload enable lvm2-monitor.service >/dev/null 2>&1 || :
91 end
92
93 script preun
94 systemctl --no-reload disable lvm2-monitor.service >/dev/null 2>&1 || :
95 systemctl stop lvm2-monitor.service >/dev/null 2>&1 || :
96 end
97
98 script postun
99 systemctl daemon-reload >/dev/null 2>&1 || :
100 end
101
102 script postup
103 systemctl daemon-reload >/dev/null 2>&1 || :
104 systemctl try-restart lvm2-monitor.service >/dev/null 2>&1 || :
105 end
106 end
107
108 package %{name}-libs
109 template LIBS
110
111 requires
112 libdevmapper = %{thisver}
113 end
114
115 files += \
116 %{libdir}/libdevmapper-event-lvm2.so.* \
117 %{libdir}/device-mapper
118 end
119
120 package %{name}-devel
121 template DEVEL
122 end
123
124 package device-mapper
125 summary = Device mapper utility.
126 description
127 This package contains the supporting userspace utility, dmsetup,
128 for the kernel device-mapper and the dmeventd daemon for monitoring
129 the state of device-mapper devices.
130 end
131
132 prerequires += \
133 systemd-units
134
135 requires
136 libdevmapper = %{thisver}
137 util-linux >= 2.24
138 end
139
140 conflicts
141 dracut < 002
142 end
143
144 files
145 %{sbindir}/blkdeactivate
146 %{sbindir}/dmeventd
147 %{sbindir}/dmsetup
148 %{sbindir}/dmstats
149 %{mandir}/man8/blkdeactivate.8.gz
150 %{mandir}/man8/dmeventd.8.gz
151 %{mandir}/man8/dmsetup.8.gz
152 %{mandir}/man8/dmstats.8.gz
153 %{udevdir}/10-dm.rules
154 %{udevdir}/13-dm-disk.rules
155 %{udevdir}/95-dm-notify.rules
156 %{unitdir}/dm-event.socket
157 %{unitdir}/dm-event.service
158 end
159
160 script postin
161 systemctl daemon-reload >/dev/null 2>&1 || :
162
163 # dm-event.socket is always enabled and started and ready to
164 # serve if dmeventd is used.
165 systemctl --no-reload enable dm-event.socket >/dev/null 2>&1 || :
166 end
167
168 script preun
169 systemctl --no-reload disable dm-event.service >/dev/null 2>&1 || :
170 systemctl --no-reload disable dm-event.socket >/dev/null 2>&1 || :
171 systemctl stop dm-event.socket >/dev/null 2>&1 || :
172 systemctl stop dm-event.service >/dev/null 2>&1 || :
173 end
174
175 script postun
176 systemctl daemon-reload >/dev/null 2>&1 || :
177 end
178
179 script postup
180 systemctl daemon-reload >/dev/null 2>&1 || :
181 systemctl try-restart dm-event.service >/dev/null 2>&1 || :
182 end
183 end
184
185 package libdevmapper
186 template LIBS
187
188 summary = Device-mapper shared libraries.
189 description
190 This package contains the device-mapper shared libraries,
191 libdevmapper and libdevmapper-event.
192 end
193
194 files
195 %{libdir}/libdevmapper.so.*
196 %{libdir}/libdevmapper-event.so.*
197 end
198 end
199
200 package libdevmapper-devel
201 summary = Development libraries and headers for the device-mapper.
202 description
203 This package contains files needed to develop applications that use
204 the device-mapper libraries.
205 end
206
207 requires
208 libdevmapper = %{thisver}
209 end
210
211 files
212 %{libdir}/libdevmapper.so
213 %{libdir}/libdevmapper-event.so
214 %{includedir}/libdevmapper.h
215 %{includedir}/libdevmapper-event.h
216 %{libdir}/pkgconfig/devmapper.pc
217 %{libdir}/pkgconfig/devmapper-event.pc
218 end
219 end
220
221 package %{name}-debuginfo
222 template DEBUGINFO
223 end
224 end