1 |
commit: 4ef0b1ec340269010d1f080e55bd05271580ea37 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 11 10:35:58 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 11 10:39:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ef0b1ec |
7 |
|
8 |
sys-fs/lvm2: Removed old. |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sys-fs/lvm2/Manifest | 4 - |
14 |
sys-fs/lvm2/files/lvm.rc-2.02.116-r4 | 132 --------- |
15 |
sys-fs/lvm2/files/lvm.rc-2.02.166-r2 | 145 ---------- |
16 |
.../lvm2-2.02.172-static-pkgconfig-libs.patch | 104 ------- |
17 |
sys-fs/lvm2/lvm2-2.02.116-r1.ebuild | 271 ------------------- |
18 |
sys-fs/lvm2/lvm2-2.02.116-r2.ebuild | 274 ------------------- |
19 |
sys-fs/lvm2/lvm2-2.02.116-r4.ebuild | 281 ------------------- |
20 |
sys-fs/lvm2/lvm2-2.02.116-r5.ebuild | 290 -------------------- |
21 |
sys-fs/lvm2/lvm2-2.02.116-r6.ebuild | 290 -------------------- |
22 |
sys-fs/lvm2/lvm2-2.02.136-r1.ebuild | 283 ------------------- |
23 |
sys-fs/lvm2/lvm2-2.02.136-r2.ebuild | 284 ------------------- |
24 |
sys-fs/lvm2/lvm2-2.02.136.ebuild | 274 ------------------- |
25 |
sys-fs/lvm2/lvm2-2.02.139-r1.ebuild | 284 ------------------- |
26 |
sys-fs/lvm2/lvm2-2.02.139.ebuild | 283 ------------------- |
27 |
sys-fs/lvm2/lvm2-2.02.145-r1.ebuild | 288 -------------------- |
28 |
sys-fs/lvm2/lvm2-2.02.145.ebuild | 284 ------------------- |
29 |
sys-fs/lvm2/lvm2-2.02.166-r2.ebuild | 298 -------------------- |
30 |
sys-fs/lvm2/lvm2-2.02.166.ebuild | 291 -------------------- |
31 |
sys-fs/lvm2/lvm2-2.02.173.ebuild | 299 --------------------- |
32 |
19 files changed, 4659 deletions(-) |
33 |
|
34 |
diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest |
35 |
index 93b881c90a8..80ab44e8d75 100644 |
36 |
--- a/sys-fs/lvm2/Manifest |
37 |
+++ b/sys-fs/lvm2/Manifest |
38 |
@@ -1,7 +1,3 @@ |
39 |
DIST LVM2.2.02.116.tgz 1538340 BLAKE2B 718261b60626f2eca5ba13011646bf551523ed8e59aaceceb9097221c000268b7533ac43151ff1d9229911d87e764fbdb29ffa1d305f2aae99220a68e301559a SHA512 992541339637d597257850b4ff7f5348fb7cdcccf806ac8d986a3be1ad1edc5f6bfaedeed5128690c541d1a485cdc75742e90a766363c39867901003518fb84d |
40 |
-DIST LVM2.2.02.136.tgz 1891010 BLAKE2B 606900337eec96a5a124518b1cc20712763f0c79b2b3a726210e5b4ad8f775d9f5951ff12894ab7b1d8c8271febd318417a86fc3d5bb7209af40bd4c164472b9 SHA512 ebda683e7dbeb2c4860a583d47e60756d18127e37a373ab2958af8e54b9bee0d2e3370b7803d88fa4b08564345c88af55bfbac317081160118ce4b3733b69f9d |
41 |
-DIST LVM2.2.02.139.tgz 1897293 BLAKE2B cad5f37a9190c40147e80edcec6af1717f87c2cce01e6e4cbd8cf8b594d995a08b52070b0d45dd9f1f8b5120c2babaf0ced158e70227dde516fca838369f7664 SHA512 f112207d7447606915026495b931bffc4c0d68d36b9a8792fe4b7abf8b743bc4559da5c79145cb4d457337118e60552f9df511e31f2799001d29d006f7946cc0 |
42 |
DIST LVM2.2.02.145.tgz 1986370 BLAKE2B 0c9e5efae17f26ff86152cecbf0b11a74e85007b2fa9491f44dec03ac8c11375bacf6685213b4be19037c8fbf70e13549516716ecf8fa262919a44625e6aab34 SHA512 84e28b3efc940837ea9da70fce620744aea0945ba29383b76ad7bcd4b5259b897c714162a8e8b7cfe26ae736a3ad2eca633a3e0df4d6280a32b28bd4cf472d27 |
43 |
-DIST LVM2.2.02.166.tgz 2148324 BLAKE2B a57ad21b1f31a6e78c56e4cf77e0d6fd99262c95a0093fe3eb9d6b0a82b675c0d39c3337af4a4bea87cba0c0a816bc98f7052afda6b850dc4712f5539942b7d5 SHA512 8bebe9b474f791b5edf5366b0bd24861fbbaf8a83afa2a9e2a8e3917e05e4ecbf6877f018be03ffb4e9b4c8832208264165b85182bf79a07661adf35128b4a21 |
44 |
-DIST LVM2.2.02.173.tgz 2363504 BLAKE2B a516bc9b68b7b7529f4436d8849ca741eb3ca1b5ac2eb2fb2915507935bdd28b5e234e74c1bce827e5761f57b5936510d08107e0dc1c320190f952c706f128d3 SHA512 c2ea8beafe006abf9282f51ec98600fd0ebff816d53c10ecbb19bbf336ada4825135cf9c92ccd364afb18f8b1d7e163eff5bdec8dfdd70dfb9ba45db2f6bdd5e |
45 |
DIST LVM2.2.02.181.tgz 2375093 BLAKE2B 4e4e7c65511af5902e765254a4316a9f887a6ec5c079333d78f19bff71ed3ed9d0e2e2367b0bb5e619ec6778adc9ddf944156921cec67af4d73aafc08196b73e SHA512 599d992823510e27f3ec3ceaf0d2332402b731afc0d2df88096ab55ed98dba8c3bdc5408d51b9f5b0ffbbb9ac3760ee37b878a0f36ab379449dc076c58e59511 |
46 |
|
47 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.116-r4 b/sys-fs/lvm2/files/lvm.rc-2.02.116-r4 |
48 |
deleted file mode 100644 |
49 |
index 74b4a41b9ea..00000000000 |
50 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.116-r4 |
51 |
+++ /dev/null |
52 |
@@ -1,132 +0,0 @@ |
53 |
-#!/sbin/openrc-run |
54 |
-# Copyright 1999-2016 Gentoo Foundation |
55 |
-# Distributed under the terms of the GNU General Public License v2 |
56 |
- |
57 |
-_get_lvm_path() { |
58 |
- local lvm_path= |
59 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
60 |
- [ -x "$lvm_path" ] && break |
61 |
- done |
62 |
- echo "${lvm_path}" |
63 |
-} |
64 |
- |
65 |
-_need_lvmetad() |
66 |
-{ |
67 |
- local lvm_path="$(_get_lvm_path)" |
68 |
- [ ! -x "${lvm_path}" ] && return 1 |
69 |
- ${lvm_path} dumpconfig global | grep -q 'use_lvmetad=1' |
70 |
-} |
71 |
- |
72 |
-depend() { |
73 |
- before checkfs fsck |
74 |
- after modules device-mapper |
75 |
- # We may use lvmetad based on the configuration. If we added lvmetad |
76 |
- # support while lvm2 is running then we aren't dependent on it. For the |
77 |
- # more common case, if its disabled in the config we aren't dependent |
78 |
- # on it. |
79 |
- config /etc/lvm/lvm.conf |
80 |
- local _need= |
81 |
- if service_started; then |
82 |
- _need=$(service_get_value need) |
83 |
- else |
84 |
- if _need_lvmetad; then |
85 |
- _need="${_need} lvmetad" |
86 |
- fi |
87 |
- fi |
88 |
- need sysfs ${_need} |
89 |
-} |
90 |
- |
91 |
-config='global { locking_dir = "/run/lock/lvm" }' |
92 |
- |
93 |
-dm_in_proc() { |
94 |
- local retval=0 |
95 |
- for x in devices misc ; do |
96 |
- grep -qs 'device-mapper' /proc/${x} |
97 |
- retval=$((${retval} + $?)) |
98 |
- done |
99 |
- return ${retval} |
100 |
-} |
101 |
- |
102 |
-start() { |
103 |
- # LVM support for /usr, /home, /opt .... |
104 |
- # This should be done *before* checking local |
105 |
- # volumes, or they never get checked. |
106 |
- |
107 |
- # NOTE: Add needed modules for LVM or RAID, etc |
108 |
- # to /etc/modules.autoload if needed |
109 |
- lvm_path="$(_get_lvm_path)" |
110 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
111 |
- [ -x "$lvm_path" ] && break |
112 |
- done |
113 |
- if [ ! -x "$lvm_path" ]; then |
114 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
115 |
- return 1 |
116 |
- fi |
117 |
- if [ -z "${CDBOOT}" ] ; then |
118 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
119 |
- modprobe dm-mod 2>/dev/null |
120 |
- fi |
121 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
122 |
- ebegin "Setting up the Logical Volume Manager" |
123 |
- #still echo stderr for debugging |
124 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
125 |
- # Extra PV find pass because some devices might not have been available until very recently |
126 |
- lvm_commands="${lvm_commands}pvscan\n" |
127 |
- # Now make the nodes |
128 |
- lvm_commands="${lvm_commands}vgscan --mknodes\n" |
129 |
- # And turn them on! |
130 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n" |
131 |
- # Order of this is important, have to work around dash and LVM readline |
132 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
133 |
- eend $? "Failed to setup the LVM" |
134 |
- fi |
135 |
- fi |
136 |
-} |
137 |
- |
138 |
-start_post() |
139 |
-{ |
140 |
- # Save if we needed lvmetad |
141 |
- if _need_lvmetad; then |
142 |
- service_set_value need lvmetad |
143 |
- fi |
144 |
-} |
145 |
- |
146 |
-stop() { |
147 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
148 |
- [ -x "$lvm_path" ] && break |
149 |
- done |
150 |
- if [ ! -x "$lvm_path" ]; then |
151 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
152 |
- return 1 |
153 |
- fi |
154 |
-# Stop LVM2 |
155 |
-if [ -x /sbin/vgs ] && \ |
156 |
- [ -x /sbin/vgchange ] && \ |
157 |
- [ -x /sbin/lvchange ] && \ |
158 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
159 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
160 |
-then |
161 |
- einfo "Shutting down the Logical Volume Manager" |
162 |
- |
163 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
164 |
- |
165 |
- if [ "$VGS" ] |
166 |
- then |
167 |
- ebegin " Shutting Down LVs & VGs" |
168 |
- #still echo stderr for debugging |
169 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
170 |
- # Extra PV find pass because some devices might not have been available until very recently |
171 |
- lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" |
172 |
- # Now make the nodes |
173 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" |
174 |
- # Order of this is important, have to work around dash and LVM readline |
175 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
176 |
- eend $? "Failed (possibly some LVs still needed for /usr or root)" |
177 |
- fi |
178 |
- |
179 |
- einfo "Finished shutting down the Logical Volume Manager" |
180 |
- return 0 |
181 |
-fi |
182 |
-} |
183 |
- |
184 |
-# vim:ts=4 |
185 |
|
186 |
diff --git a/sys-fs/lvm2/files/lvm.rc-2.02.166-r2 b/sys-fs/lvm2/files/lvm.rc-2.02.166-r2 |
187 |
deleted file mode 100644 |
188 |
index 11329bbeaf3..00000000000 |
189 |
--- a/sys-fs/lvm2/files/lvm.rc-2.02.166-r2 |
190 |
+++ /dev/null |
191 |
@@ -1,145 +0,0 @@ |
192 |
-#!/sbin/openrc-run |
193 |
-# Copyright 1999-2017 Gentoo Foundation |
194 |
-# Distributed under the terms of the GNU General Public License v2 |
195 |
- |
196 |
-_get_lvm_path() { |
197 |
- local lvm_path= |
198 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
199 |
- [ -x "$lvm_path" ] && break |
200 |
- done |
201 |
- echo "${lvm_path}" |
202 |
-} |
203 |
- |
204 |
-_need_lvmetad() |
205 |
-{ |
206 |
- local lvm_path="$(_get_lvm_path)" |
207 |
- [ ! -x "${lvm_path}" ] && return 1 |
208 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmetad=1' |
209 |
-} |
210 |
- |
211 |
-_need_lvmlockd() |
212 |
-{ |
213 |
- local lvm_path="$(_get_lvm_path)" |
214 |
- [ ! -x "${lvm_path}" ] && return 1 |
215 |
- ${lvm_path} dumpconfig global 2>/dev/null | grep -q 'use_lvmlockd=1' |
216 |
-} |
217 |
-depend() { |
218 |
- before checkfs fsck |
219 |
- after modules device-mapper |
220 |
- # We may use lvmetad based on the configuration. If we added lvmetad |
221 |
- # support while lvm2 is running then we aren't dependent on it. For the |
222 |
- # more common case, if its disabled in the config we aren't dependent |
223 |
- # on it. |
224 |
- config /etc/lvm/lvm.conf |
225 |
- local _need= |
226 |
- if service_started; then |
227 |
- _need=$(service_get_value need) |
228 |
- else |
229 |
- if _need_lvmetad; then |
230 |
- _need="${_need} lvmetad" |
231 |
- fi |
232 |
- if _need_lvmlockd; then |
233 |
- _need="${_need} lvmlockd" |
234 |
- fi |
235 |
- fi |
236 |
- need sysfs ${_need} |
237 |
-} |
238 |
- |
239 |
-config='global { locking_dir = "/run/lock/lvm" }' |
240 |
- |
241 |
-dm_in_proc() { |
242 |
- local retval=0 |
243 |
- for x in devices misc ; do |
244 |
- grep -qs 'device-mapper' /proc/${x} |
245 |
- retval=$((${retval} + $?)) |
246 |
- done |
247 |
- return ${retval} |
248 |
-} |
249 |
- |
250 |
-start() { |
251 |
- # LVM support for /usr, /home, /opt .... |
252 |
- # This should be done *before* checking local |
253 |
- # volumes, or they never get checked. |
254 |
- |
255 |
- # NOTE: Add needed modules for LVM or RAID, etc |
256 |
- # to /etc/modules.autoload if needed |
257 |
- lvm_path="$(_get_lvm_path)" |
258 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
259 |
- [ -x "$lvm_path" ] && break |
260 |
- done |
261 |
- if [ ! -x "$lvm_path" ]; then |
262 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
263 |
- return 1 |
264 |
- fi |
265 |
- if [ -z "${CDBOOT}" ] ; then |
266 |
- if [ -e /proc/modules ] && ! dm_in_proc ; then |
267 |
- modprobe dm-mod 2>/dev/null |
268 |
- fi |
269 |
- if [ -d /proc/lvm ] || dm_in_proc ; then |
270 |
- ebegin "Setting up the Logical Volume Manager" |
271 |
- #still echo stderr for debugging |
272 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
273 |
- # Extra PV find pass because some devices might not have been available until very recently |
274 |
- lvm_commands="${lvm_commands}pvscan\n" |
275 |
- # Now make the nodes |
276 |
- lvm_commands="${lvm_commands}vgscan --mknodes\n" |
277 |
- # And turn them on! |
278 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n" |
279 |
- if _need_lvmlockd; then |
280 |
- # Start lockd VGs as required |
281 |
- lvm_commands="${lvm_commands}vgchange --lock-start --lock-opt auto\n" |
282 |
- fi |
283 |
- # Order of this is important, have to work around dash and LVM readline |
284 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
285 |
- eend $? "Failed to setup the LVM" |
286 |
- fi |
287 |
- fi |
288 |
-} |
289 |
- |
290 |
-start_post() |
291 |
-{ |
292 |
- # Save if we needed lvmetad |
293 |
- if _need_lvmetad; then |
294 |
- service_set_value need lvmetad |
295 |
- fi |
296 |
-} |
297 |
- |
298 |
-stop() { |
299 |
- for lvm_path in /bin/lvm /sbin/lvm ; do |
300 |
- [ -x "$lvm_path" ] && break |
301 |
- done |
302 |
- if [ ! -x "$lvm_path" ]; then |
303 |
- eerror "Cannot find lvm binary in /sbin or /bin!" |
304 |
- return 1 |
305 |
- fi |
306 |
-# Stop LVM2 |
307 |
-if [ -x /sbin/vgs ] && \ |
308 |
- [ -x /sbin/vgchange ] && \ |
309 |
- [ -x /sbin/lvchange ] && \ |
310 |
- [ -f /etc/lvmtab -o -d /etc/lvm ] && \ |
311 |
- [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ] |
312 |
-then |
313 |
- einfo "Shutting down the Logical Volume Manager" |
314 |
- |
315 |
- VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null) |
316 |
- |
317 |
- if [ "$VGS" ] |
318 |
- then |
319 |
- ebegin " Shutting Down LVs & VGs" |
320 |
- #still echo stderr for debugging |
321 |
- lvm_commands="#! ${lvm_path} --config '${config}'\n" |
322 |
- # Extra PV find pass because some devices might not have been available until very recently |
323 |
- lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" |
324 |
- # Now make the nodes |
325 |
- lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" |
326 |
- # Order of this is important, have to work around dash and LVM readline |
327 |
- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null |
328 |
- eend $? "Failed (possibly some LVs still needed for /usr or root)" |
329 |
- fi |
330 |
- |
331 |
- einfo "Finished shutting down the Logical Volume Manager" |
332 |
- return 0 |
333 |
-fi |
334 |
-} |
335 |
- |
336 |
-# vim:ts=4 |
337 |
|
338 |
diff --git a/sys-fs/lvm2/files/lvm2-2.02.172-static-pkgconfig-libs.patch b/sys-fs/lvm2/files/lvm2-2.02.172-static-pkgconfig-libs.patch |
339 |
deleted file mode 100644 |
340 |
index e25cb760ea8..00000000000 |
341 |
--- a/sys-fs/lvm2/files/lvm2-2.02.172-static-pkgconfig-libs.patch |
342 |
+++ /dev/null |
343 |
@@ -1,104 +0,0 @@ |
344 |
-diff -Nuar --exclude '*.orig' --exclude '*.rej' LVM2.2.02.172.orig/configure.in LVM2.2.02.172/configure.in |
345 |
---- LVM2.2.02.172.orig/configure.in 2017-06-28 08:54:27.000000000 -0700 |
346 |
-+++ LVM2.2.02.172/configure.in 2017-07-09 14:58:11.933777531 -0700 |
347 |
-@@ -1324,6 +1324,7 @@ |
348 |
- PKG_CHECK_MODULES(BLKID, blkid >= 2.24, |
349 |
- [ BLKID_WIPING=yes |
350 |
- BLKID_PC="blkid" |
351 |
-+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC` |
352 |
- DEFAULT_USE_BLKID_WIPING=1 |
353 |
- AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.]) |
354 |
- ], [if test "$BLKID_WIPING" = maybe; then |
355 |
-@@ -1372,6 +1373,7 @@ |
356 |
- if test "$UDEV_SYNC" = yes; then |
357 |
- pkg_config_init |
358 |
- PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"]) |
359 |
-+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev` |
360 |
- AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) |
361 |
- |
362 |
- AC_CHECK_LIB(udev, udev_device_get_is_initialized, AC_DEFINE([HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED], 1, |
363 |
-@@ -1653,19 +1655,32 @@ |
364 |
- if test "$SELINUX" = yes; then |
365 |
- AC_CHECK_LIB([sepol], [sepol_check_context], [ |
366 |
- AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.]) |
367 |
-- SELINUX_LIBS="-lsepol"]) |
368 |
-+ SEPOL_LIBS="-lsepol"]) |
369 |
-+ |
370 |
-+ dnl -- init pkgconfig if required |
371 |
-+ if test x$PKGCONFIG_INIT != x1; then |
372 |
-+ pkg_config_init |
373 |
-+ fi |
374 |
-+ PKG_CHECK_MODULES(SELINUX, libselinux, [ |
375 |
-+ SELINUX_PC="libselinux" |
376 |
-+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux` |
377 |
-+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS" |
378 |
-+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
379 |
-+ ],[ |
380 |
-+ dnl -- old non-pkgconfig method, is buggy with static builds |
381 |
- |
382 |
- AC_CHECK_LIB([selinux], [is_selinux_enabled], [ |
383 |
- AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout) |
384 |
- AC_CHECK_HEADERS([selinux/label.h]) |
385 |
- AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
386 |
-- SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
387 |
-+ SELINUX_LIBS="-lselinux $SEPOL_LIBS" |
388 |
- SELINUX_PC="libselinux" |
389 |
- HAVE_SELINUX=yes ], [ |
390 |
- AC_MSG_WARN(Disabling selinux) |
391 |
- SELINUX_LIBS= |
392 |
- SELINUX_PC= |
393 |
- HAVE_SELINUX=no ]) |
394 |
-+ ]) |
395 |
- fi |
396 |
- |
397 |
- ################################################################################ |
398 |
-@@ -2011,6 +2026,7 @@ |
399 |
- ################################################################################ |
400 |
- AC_SUBST(APPLIB) |
401 |
- AC_SUBST(AWK) |
402 |
-+AC_SUBST(BLKID_STATIC_LIBS) |
403 |
- AC_SUBST(BLKID_PC) |
404 |
- AC_SUBST(BUILD_CMIRRORD) |
405 |
- AC_SUBST(BUILD_DMEVENTD) |
406 |
-@@ -2125,6 +2141,7 @@ |
407 |
- AC_SUBST(SALCK_CFLAGS) |
408 |
- AC_SUBST(SALCK_LIBS) |
409 |
- AC_SUBST(SELINUX_LIBS) |
410 |
-+AC_SUBST(SELINUX_STATIC_LIBS) |
411 |
- AC_SUBST(SELINUX_PC) |
412 |
- AC_SUBST(SNAPSHOTS) |
413 |
- AC_SUBST(STATICDIR) |
414 |
-@@ -2140,6 +2157,7 @@ |
415 |
- AC_SUBST(CACHE_DUMP_CMD) |
416 |
- AC_SUBST(CACHE_REPAIR_CMD) |
417 |
- AC_SUBST(CACHE_RESTORE_CMD) |
418 |
-+AC_SUBST(UDEV_STATIC_LIBS) |
419 |
- AC_SUBST(UDEV_PC) |
420 |
- AC_SUBST(UDEV_RULES) |
421 |
- AC_SUBST(UDEV_SYNC) |
422 |
-diff -Nuar --exclude '*.orig' --exclude '*.rej' LVM2.2.02.172.orig/make.tmpl.in LVM2.2.02.172/make.tmpl.in |
423 |
---- LVM2.2.02.172.orig/make.tmpl.in 2017-06-28 08:54:28.000000000 -0700 |
424 |
-+++ LVM2.2.02.172/make.tmpl.in 2017-07-09 14:56:38.262933483 -0700 |
425 |
-@@ -53,7 +53,7 @@ |
426 |
- |
427 |
- LIBS = @LIBS@ |
428 |
- # Extra libraries always linked with static binaries |
429 |
--STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) |
430 |
-+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS) |
431 |
- DEFS += @DEFS@ |
432 |
- # FIXME set this only where it's needed, not globally? |
433 |
- CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ |
434 |
-@@ -68,10 +68,13 @@ |
435 |
- PTHREAD_LIBS = @PTHREAD_LIBS@ |
436 |
- READLINE_LIBS = @READLINE_LIBS@ |
437 |
- SELINUX_LIBS = @SELINUX_LIBS@ |
438 |
-+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@ |
439 |
- UDEV_CFLAGS = @UDEV_CFLAGS@ |
440 |
- UDEV_LIBS = @UDEV_LIBS@ |
441 |
-+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@ |
442 |
- BLKID_CFLAGS = @BLKID_CFLAGS@ |
443 |
- BLKID_LIBS = @BLKID_LIBS@ |
444 |
-+BLKID_STATIC_LIBS = @BLKID_STATIC_LIBS@ |
445 |
- VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ |
446 |
- TESTING = @TESTING@ |
447 |
- |
448 |
|
449 |
diff --git a/sys-fs/lvm2/lvm2-2.02.116-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.116-r1.ebuild |
450 |
deleted file mode 100644 |
451 |
index 7bf32bb4ee6..00000000000 |
452 |
--- a/sys-fs/lvm2/lvm2-2.02.116-r1.ebuild |
453 |
+++ /dev/null |
454 |
@@ -1,271 +0,0 @@ |
455 |
-# Copyright 1999-2016 Gentoo Foundation |
456 |
-# Distributed under the terms of the GNU General Public License v2 |
457 |
- |
458 |
-EAPI=5 |
459 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
460 |
- |
461 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
462 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
463 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
464 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
465 |
- |
466 |
-LICENSE="GPL-2" |
467 |
-SLOT="0" |
468 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
469 |
-IUSE="readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" |
470 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin ) |
471 |
- systemd? ( udev )" |
472 |
- |
473 |
-DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) |
474 |
- readline? ( sys-libs/readline:0= ) |
475 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
476 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
477 |
-# be available -- thus, pull in recent enough baselayout for /run. |
478 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
479 |
-RDEPEND="${DEPEND_COMMON} |
480 |
- >=sys-apps/baselayout-2.2 |
481 |
- !<sys-apps/openrc-0.11 |
482 |
- !<sys-fs/cryptsetup-1.1.2 |
483 |
- !!sys-fs/clvm |
484 |
- !!sys-fs/lvm-user |
485 |
- >=sys-apps/util-linux-2.16 |
486 |
- lvm2create_initrd? ( sys-apps/makedev ) |
487 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
488 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
489 |
-# USE 'static' currently only works with eudev, bug 520450 |
490 |
-DEPEND="${DEPEND_COMMON} |
491 |
- virtual/pkgconfig |
492 |
- >=sys-devel/binutils-2.20.1-r1 |
493 |
- static? ( |
494 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
495 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
496 |
- >=sys-apps/util-linux-2.16[static-libs] |
497 |
- )" |
498 |
- |
499 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
500 |
- |
501 |
-pkg_setup() { |
502 |
- local CONFIG_CHECK="~SYSVIPC" |
503 |
- |
504 |
- if use udev; then |
505 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
506 |
- if linux_config_exists; then |
507 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
508 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
509 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
510 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
511 |
- fi |
512 |
- fi |
513 |
- fi |
514 |
- |
515 |
- check_extra_config |
516 |
- |
517 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
518 |
- if use static; then |
519 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
520 |
- elog "their static versions. If you need the static binaries," |
521 |
- elog "you must append .static to the filename!" |
522 |
- fi |
523 |
-} |
524 |
- |
525 |
-src_prepare() { |
526 |
- # Gentoo specific modification(s): |
527 |
- epatch "${FILESDIR}"/${PN}-2.02.108-example.conf.in.patch |
528 |
- |
529 |
- sed -i \ |
530 |
- -e "1iAR = $(tc-getAR)" \ |
531 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
532 |
- make.tmpl.in || die #444082 |
533 |
- |
534 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
535 |
- |
536 |
- if use udev && ! use device-mapper-only; then |
537 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
538 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
539 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
540 |
- elog "if it was previously disabled." |
541 |
- fi |
542 |
- |
543 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
544 |
- |
545 |
- # For upstream -- review and forward: |
546 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
547 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
548 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
549 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
550 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
551 |
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905 |
552 |
- epatch "${FILESDIR}"/${PN}-2.02.108-static-pkgconfig-libs.patch #370217, #439414 + blkid |
553 |
- epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450 |
554 |
- |
555 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
556 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
557 |
- |
558 |
- eautoreconf |
559 |
-} |
560 |
- |
561 |
-src_configure() { |
562 |
- filter-flags -flto |
563 |
- local myconf |
564 |
- local buildmode |
565 |
- |
566 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
567 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
568 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
569 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
570 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
571 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
572 |
- |
573 |
- # Most of this package does weird stuff. |
574 |
- # The build options are tristate, and --without is NOT supported |
575 |
- # options: 'none', 'internal', 'shared' |
576 |
- if use static; then |
577 |
- buildmode="internal" |
578 |
- # This only causes the .static versions to become available |
579 |
- myconf="${myconf} --enable-static_link" |
580 |
- else |
581 |
- buildmode="shared" |
582 |
- fi |
583 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
584 |
- |
585 |
- # dmeventd requires mirrors to be internal, and snapshot available |
586 |
- # so we cannot disable them |
587 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
588 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
589 |
- if use thin; then |
590 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
591 |
- local texec |
592 |
- for texec in check dump repair restore; do |
593 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
594 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
595 |
- done |
596 |
- else |
597 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
598 |
- fi |
599 |
- |
600 |
- if use lvm1; then |
601 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
602 |
- else |
603 |
- myconf="${myconf} --with-lvm1=none" |
604 |
- fi |
605 |
- |
606 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
607 |
- use hppa && myconf="${myconf} --disable-o_direct" |
608 |
- |
609 |
- if use clvm; then |
610 |
- myconf="${myconf} --with-cluster=${buildmode}" |
611 |
- # 4-state! Make sure we get it right, per bug 210879 |
612 |
- # Valid options are: none, cman, gulm, all |
613 |
- # |
614 |
- # 2009/02: |
615 |
- # gulm is removed now, now dual-state: |
616 |
- # cman, none |
617 |
- # all still exists, but is not needed |
618 |
- # |
619 |
- # 2009/07: |
620 |
- # TODO: add corosync and re-enable ALL |
621 |
- local clvmd="" |
622 |
- use cman && clvmd="cman" |
623 |
- #clvmd="${clvmd/cmangulm/all}" |
624 |
- [ -z "${clvmd}" ] && clvmd="none" |
625 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
626 |
- myconf="${myconf} --with-pool=${buildmode}" |
627 |
- else |
628 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
629 |
- fi |
630 |
- |
631 |
- econf \ |
632 |
- $(use_enable readline) \ |
633 |
- $(use_enable selinux) \ |
634 |
- --enable-pkgconfig \ |
635 |
- --with-confdir="${EPREFIX}"/etc \ |
636 |
- --exec-prefix="${EPREFIX}" \ |
637 |
- --sbindir="${EPREFIX}/sbin" \ |
638 |
- --with-staticdir="${EPREFIX}"/sbin \ |
639 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
640 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
641 |
- --with-default-dm-run-dir=/run \ |
642 |
- --with-default-run-dir=/run/lvm \ |
643 |
- --with-default-locking-dir=/run/lock/lvm \ |
644 |
- --with-default-pid-dir=/run \ |
645 |
- $(use_enable udev udev_rules) \ |
646 |
- $(use_enable udev udev_sync) \ |
647 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
648 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
649 |
- "$(systemd_with_unitdir)" \ |
650 |
- ${myconf} \ |
651 |
- CLDFLAGS="${LDFLAGS}" |
652 |
-} |
653 |
- |
654 |
-src_compile() { |
655 |
- pushd include >/dev/null |
656 |
- emake |
657 |
- popd >/dev/null |
658 |
- |
659 |
- if use device-mapper-only ; then |
660 |
- emake device-mapper |
661 |
- else |
662 |
- emake |
663 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
664 |
- fi |
665 |
-} |
666 |
- |
667 |
-src_install() { |
668 |
- local inst |
669 |
- INSTALL_TARGETS="install install_systemd_units install_systemd_generators install_tmpfiles_configuration" |
670 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
671 |
- for inst in ${INSTALL_TARGETS}; do |
672 |
- emake DESTDIR="${D}" ${inst} |
673 |
- done |
674 |
- |
675 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
676 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
677 |
- |
678 |
- if use !device-mapper-only ; then |
679 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
680 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
681 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
682 |
- |
683 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
684 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
685 |
- fi |
686 |
- |
687 |
- if use clvm; then |
688 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
689 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
690 |
- fi |
691 |
- |
692 |
- if use static-libs; then |
693 |
- dolib.a libdm/ioctl/libdevmapper.a |
694 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
695 |
- #gen_usr_ldscript libdevmapper.so |
696 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
697 |
- #gen_usr_ldscript libdevmapper-event.so |
698 |
- else |
699 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
700 |
- fi |
701 |
- |
702 |
- if use lvm2create_initrd; then |
703 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
704 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
705 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
706 |
- fi |
707 |
- |
708 |
- insinto /etc |
709 |
- doins "${FILESDIR}"/dmtab |
710 |
- |
711 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
712 |
-} |
713 |
- |
714 |
-pkg_postinst() { |
715 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
716 |
- ewarn "# rc-update add lvm boot" |
717 |
- ewarn |
718 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
719 |
- ewarn "to enable lvm autoactivation and metadata caching." |
720 |
-} |
721 |
- |
722 |
-src_test() { |
723 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
724 |
- einfo "run tests, compile the package and see ${S}/tests" |
725 |
-} |
726 |
|
727 |
diff --git a/sys-fs/lvm2/lvm2-2.02.116-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.116-r2.ebuild |
728 |
deleted file mode 100644 |
729 |
index b75896fd51a..00000000000 |
730 |
--- a/sys-fs/lvm2/lvm2-2.02.116-r2.ebuild |
731 |
+++ /dev/null |
732 |
@@ -1,274 +0,0 @@ |
733 |
-# Copyright 1999-2016 Gentoo Foundation |
734 |
-# Distributed under the terms of the GNU General Public License v2 |
735 |
- |
736 |
-EAPI=5 |
737 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
738 |
- |
739 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
740 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
741 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
742 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
743 |
- |
744 |
-LICENSE="GPL-2" |
745 |
-SLOT="0" |
746 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
747 |
-IUSE="readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" |
748 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin ) |
749 |
- systemd? ( udev ) |
750 |
- clvm? ( !systemd )" |
751 |
- |
752 |
-DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) |
753 |
- readline? ( sys-libs/readline:0= ) |
754 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
755 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
756 |
-# be available -- thus, pull in recent enough baselayout for /run. |
757 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
758 |
-RDEPEND="${DEPEND_COMMON} |
759 |
- >=sys-apps/baselayout-2.2 |
760 |
- !<sys-apps/openrc-0.11 |
761 |
- !<sys-fs/cryptsetup-1.1.2 |
762 |
- !!sys-fs/clvm |
763 |
- !!sys-fs/lvm-user |
764 |
- >=sys-apps/util-linux-2.16 |
765 |
- lvm2create_initrd? ( sys-apps/makedev ) |
766 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
767 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
768 |
-# USE 'static' currently only works with eudev, bug 520450 |
769 |
-DEPEND="${DEPEND_COMMON} |
770 |
- virtual/pkgconfig |
771 |
- >=sys-devel/binutils-2.20.1-r1 |
772 |
- static? ( |
773 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
774 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
775 |
- >=sys-apps/util-linux-2.16[static-libs] |
776 |
- )" |
777 |
- |
778 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
779 |
- |
780 |
-pkg_setup() { |
781 |
- local CONFIG_CHECK="~SYSVIPC" |
782 |
- |
783 |
- if use udev; then |
784 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
785 |
- if linux_config_exists; then |
786 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
787 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
788 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
789 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
790 |
- fi |
791 |
- fi |
792 |
- fi |
793 |
- |
794 |
- check_extra_config |
795 |
- |
796 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
797 |
- if use static; then |
798 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
799 |
- elog "their static versions. If you need the static binaries," |
800 |
- elog "you must append .static to the filename!" |
801 |
- fi |
802 |
-} |
803 |
- |
804 |
-src_prepare() { |
805 |
- # Gentoo specific modification(s): |
806 |
- epatch "${FILESDIR}"/${PN}-2.02.108-example.conf.in.patch |
807 |
- |
808 |
- sed -i \ |
809 |
- -e "1iAR = $(tc-getAR)" \ |
810 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
811 |
- make.tmpl.in || die #444082 |
812 |
- |
813 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
814 |
- |
815 |
- if use udev && ! use device-mapper-only; then |
816 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
817 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
818 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
819 |
- elog "if it was previously disabled." |
820 |
- fi |
821 |
- |
822 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
823 |
- |
824 |
- # For upstream -- review and forward: |
825 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
826 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
827 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
828 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
829 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
830 |
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905 |
831 |
- epatch "${FILESDIR}"/${PN}-2.02.108-static-pkgconfig-libs.patch #370217, #439414 + blkid |
832 |
- epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450 |
833 |
- |
834 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
835 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
836 |
- |
837 |
- eautoreconf |
838 |
-} |
839 |
- |
840 |
-src_configure() { |
841 |
- filter-flags -flto |
842 |
- local myconf |
843 |
- local buildmode |
844 |
- |
845 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
846 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
847 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
848 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
849 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
850 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
851 |
- |
852 |
- # Most of this package does weird stuff. |
853 |
- # The build options are tristate, and --without is NOT supported |
854 |
- # options: 'none', 'internal', 'shared' |
855 |
- if use static; then |
856 |
- buildmode="internal" |
857 |
- # This only causes the .static versions to become available |
858 |
- myconf="${myconf} --enable-static_link" |
859 |
- else |
860 |
- buildmode="shared" |
861 |
- fi |
862 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
863 |
- |
864 |
- # dmeventd requires mirrors to be internal, and snapshot available |
865 |
- # so we cannot disable them |
866 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
867 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
868 |
- if use thin; then |
869 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
870 |
- local texec |
871 |
- for texec in check dump repair restore; do |
872 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
873 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
874 |
- done |
875 |
- else |
876 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
877 |
- fi |
878 |
- |
879 |
- if use lvm1; then |
880 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
881 |
- else |
882 |
- myconf="${myconf} --with-lvm1=none" |
883 |
- fi |
884 |
- |
885 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
886 |
- use hppa && myconf="${myconf} --disable-o_direct" |
887 |
- |
888 |
- if use clvm; then |
889 |
- myconf="${myconf} --with-cluster=${buildmode}" |
890 |
- # 4-state! Make sure we get it right, per bug 210879 |
891 |
- # Valid options are: none, cman, gulm, all |
892 |
- # |
893 |
- # 2009/02: |
894 |
- # gulm is removed now, now dual-state: |
895 |
- # cman, none |
896 |
- # all still exists, but is not needed |
897 |
- # |
898 |
- # 2009/07: |
899 |
- # TODO: add corosync and re-enable ALL |
900 |
- local clvmd="" |
901 |
- use cman && clvmd="cman" |
902 |
- #clvmd="${clvmd/cmangulm/all}" |
903 |
- [ -z "${clvmd}" ] && clvmd="none" |
904 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
905 |
- myconf="${myconf} --with-pool=${buildmode}" |
906 |
- else |
907 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
908 |
- fi |
909 |
- |
910 |
- econf \ |
911 |
- $(use_enable readline) \ |
912 |
- $(use_enable selinux) \ |
913 |
- --enable-pkgconfig \ |
914 |
- --with-confdir="${EPREFIX}"/etc \ |
915 |
- --exec-prefix="${EPREFIX}" \ |
916 |
- --sbindir="${EPREFIX}/sbin" \ |
917 |
- --with-staticdir="${EPREFIX}"/sbin \ |
918 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
919 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
920 |
- --with-default-dm-run-dir=/run \ |
921 |
- --with-default-run-dir=/run/lvm \ |
922 |
- --with-default-locking-dir=/run/lock/lvm \ |
923 |
- --with-default-pid-dir=/run \ |
924 |
- $(use_enable udev udev_rules) \ |
925 |
- $(use_enable udev udev_sync) \ |
926 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
927 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
928 |
- "$(systemd_with_unitdir)" \ |
929 |
- ${myconf} \ |
930 |
- CLDFLAGS="${LDFLAGS}" |
931 |
-} |
932 |
- |
933 |
-src_compile() { |
934 |
- pushd include >/dev/null |
935 |
- emake |
936 |
- popd >/dev/null |
937 |
- |
938 |
- if use device-mapper-only ; then |
939 |
- emake device-mapper |
940 |
- else |
941 |
- emake |
942 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
943 |
- fi |
944 |
-} |
945 |
- |
946 |
-src_install() { |
947 |
- local inst |
948 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
949 |
- # install systemd related files only when requested, bug #522430 |
950 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
951 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
952 |
- for inst in ${INSTALL_TARGETS}; do |
953 |
- emake DESTDIR="${D}" ${inst} |
954 |
- done |
955 |
- |
956 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
957 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
958 |
- |
959 |
- if use !device-mapper-only ; then |
960 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
961 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
962 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
963 |
- |
964 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
965 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
966 |
- fi |
967 |
- |
968 |
- if use clvm; then |
969 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
970 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
971 |
- fi |
972 |
- |
973 |
- if use static-libs; then |
974 |
- dolib.a libdm/ioctl/libdevmapper.a |
975 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
976 |
- #gen_usr_ldscript libdevmapper.so |
977 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
978 |
- #gen_usr_ldscript libdevmapper-event.so |
979 |
- else |
980 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
981 |
- fi |
982 |
- |
983 |
- if use lvm2create_initrd; then |
984 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
985 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
986 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
987 |
- fi |
988 |
- |
989 |
- insinto /etc |
990 |
- doins "${FILESDIR}"/dmtab |
991 |
- |
992 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
993 |
-} |
994 |
- |
995 |
-pkg_postinst() { |
996 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
997 |
- ewarn "# rc-update add lvm boot" |
998 |
- ewarn |
999 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1000 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1001 |
-} |
1002 |
- |
1003 |
-src_test() { |
1004 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1005 |
- einfo "run tests, compile the package and see ${S}/tests" |
1006 |
-} |
1007 |
|
1008 |
diff --git a/sys-fs/lvm2/lvm2-2.02.116-r4.ebuild b/sys-fs/lvm2/lvm2-2.02.116-r4.ebuild |
1009 |
deleted file mode 100644 |
1010 |
index a57c5a4e6c5..00000000000 |
1011 |
--- a/sys-fs/lvm2/lvm2-2.02.116-r4.ebuild |
1012 |
+++ /dev/null |
1013 |
@@ -1,281 +0,0 @@ |
1014 |
-# Copyright 1999-2016 Gentoo Foundation |
1015 |
-# Distributed under the terms of the GNU General Public License v2 |
1016 |
- |
1017 |
-EAPI=5 |
1018 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1019 |
- |
1020 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1021 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1022 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1023 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1024 |
- |
1025 |
-LICENSE="GPL-2" |
1026 |
-SLOT="0" |
1027 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
1028 |
-IUSE="readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" |
1029 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin ) |
1030 |
- systemd? ( udev ) |
1031 |
- clvm? ( !systemd )" |
1032 |
- |
1033 |
-DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) |
1034 |
- readline? ( sys-libs/readline:0= ) |
1035 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
1036 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1037 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1038 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1039 |
-RDEPEND="${DEPEND_COMMON} |
1040 |
- >=sys-apps/baselayout-2.2 |
1041 |
- !<sys-apps/openrc-0.11 |
1042 |
- !<sys-fs/cryptsetup-1.1.2 |
1043 |
- !!sys-fs/clvm |
1044 |
- !!sys-fs/lvm-user |
1045 |
- >=sys-apps/util-linux-2.16 |
1046 |
- lvm2create_initrd? ( |
1047 |
- app-arch/cpio |
1048 |
- sys-apps/makedev |
1049 |
- ) |
1050 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1051 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1052 |
-# USE 'static' currently only works with eudev, bug 520450 |
1053 |
-DEPEND="${DEPEND_COMMON} |
1054 |
- virtual/pkgconfig |
1055 |
- >=sys-devel/binutils-2.20.1-r1 |
1056 |
- static? ( |
1057 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1058 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1059 |
- >=sys-apps/util-linux-2.16[static-libs] |
1060 |
- )" |
1061 |
- |
1062 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
1063 |
- |
1064 |
-pkg_setup() { |
1065 |
- local CONFIG_CHECK="~SYSVIPC" |
1066 |
- |
1067 |
- if use udev; then |
1068 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1069 |
- if linux_config_exists; then |
1070 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1071 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
1072 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1073 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1074 |
- fi |
1075 |
- fi |
1076 |
- fi |
1077 |
- |
1078 |
- check_extra_config |
1079 |
- |
1080 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1081 |
- if use static; then |
1082 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1083 |
- elog "their static versions. If you need the static binaries," |
1084 |
- elog "you must append .static to the filename!" |
1085 |
- fi |
1086 |
-} |
1087 |
- |
1088 |
-src_prepare() { |
1089 |
- # Gentoo specific modification(s): |
1090 |
- epatch "${FILESDIR}"/${PN}-2.02.108-example.conf.in.patch |
1091 |
- |
1092 |
- sed -i \ |
1093 |
- -e "1iAR = $(tc-getAR)" \ |
1094 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1095 |
- make.tmpl.in || die #444082 |
1096 |
- |
1097 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
1098 |
- |
1099 |
- if use udev && ! use device-mapper-only; then |
1100 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1101 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1102 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1103 |
- elog "if it was previously disabled." |
1104 |
- fi |
1105 |
- |
1106 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1107 |
- |
1108 |
- # For upstream -- review and forward: |
1109 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1110 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1111 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1112 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1113 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
1114 |
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905 |
1115 |
- epatch "${FILESDIR}"/${PN}-2.02.108-static-pkgconfig-libs.patch #370217, #439414 + blkid |
1116 |
- epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450 |
1117 |
- |
1118 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
1119 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
1120 |
- |
1121 |
- eautoreconf |
1122 |
-} |
1123 |
- |
1124 |
-src_configure() { |
1125 |
- filter-flags -flto |
1126 |
- local myconf |
1127 |
- local buildmode |
1128 |
- |
1129 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
1130 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
1131 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
1132 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
1133 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
1134 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
1135 |
- |
1136 |
- # Most of this package does weird stuff. |
1137 |
- # The build options are tristate, and --without is NOT supported |
1138 |
- # options: 'none', 'internal', 'shared' |
1139 |
- if use static; then |
1140 |
- buildmode="internal" |
1141 |
- # This only causes the .static versions to become available |
1142 |
- myconf="${myconf} --enable-static_link" |
1143 |
- else |
1144 |
- buildmode="shared" |
1145 |
- fi |
1146 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
1147 |
- |
1148 |
- # dmeventd requires mirrors to be internal, and snapshot available |
1149 |
- # so we cannot disable them |
1150 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
1151 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
1152 |
- if use thin; then |
1153 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
1154 |
- local texec |
1155 |
- for texec in check dump repair restore; do |
1156 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
1157 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
1158 |
- done |
1159 |
- else |
1160 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
1161 |
- fi |
1162 |
- |
1163 |
- if use lvm1; then |
1164 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
1165 |
- else |
1166 |
- myconf="${myconf} --with-lvm1=none" |
1167 |
- fi |
1168 |
- |
1169 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1170 |
- use hppa && myconf="${myconf} --disable-o_direct" |
1171 |
- |
1172 |
- if use clvm; then |
1173 |
- myconf="${myconf} --with-cluster=${buildmode}" |
1174 |
- # 4-state! Make sure we get it right, per bug 210879 |
1175 |
- # Valid options are: none, cman, gulm, all |
1176 |
- # |
1177 |
- # 2009/02: |
1178 |
- # gulm is removed now, now dual-state: |
1179 |
- # cman, none |
1180 |
- # all still exists, but is not needed |
1181 |
- # |
1182 |
- # 2009/07: |
1183 |
- # TODO: add corosync and re-enable ALL |
1184 |
- local clvmd="" |
1185 |
- use cman && clvmd="cman" |
1186 |
- #clvmd="${clvmd/cmangulm/all}" |
1187 |
- [ -z "${clvmd}" ] && clvmd="none" |
1188 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
1189 |
- myconf="${myconf} --with-pool=${buildmode}" |
1190 |
- else |
1191 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
1192 |
- fi |
1193 |
- |
1194 |
- econf \ |
1195 |
- $(use_enable readline) \ |
1196 |
- $(use_enable selinux) \ |
1197 |
- --enable-pkgconfig \ |
1198 |
- --with-confdir="${EPREFIX}"/etc \ |
1199 |
- --exec-prefix="${EPREFIX}" \ |
1200 |
- --sbindir="${EPREFIX}/sbin" \ |
1201 |
- --with-staticdir="${EPREFIX}"/sbin \ |
1202 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
1203 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1204 |
- --with-default-dm-run-dir=/run \ |
1205 |
- --with-default-run-dir=/run/lvm \ |
1206 |
- --with-default-locking-dir=/run/lock/lvm \ |
1207 |
- --with-default-pid-dir=/run \ |
1208 |
- $(use_enable udev udev_rules) \ |
1209 |
- $(use_enable udev udev_sync) \ |
1210 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
1211 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
1212 |
- "$(systemd_with_unitdir)" \ |
1213 |
- ${myconf} \ |
1214 |
- CLDFLAGS="${LDFLAGS}" |
1215 |
-} |
1216 |
- |
1217 |
-src_compile() { |
1218 |
- pushd include >/dev/null |
1219 |
- emake |
1220 |
- popd >/dev/null |
1221 |
- |
1222 |
- if use device-mapper-only ; then |
1223 |
- emake device-mapper |
1224 |
- else |
1225 |
- emake |
1226 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1227 |
- fi |
1228 |
-} |
1229 |
- |
1230 |
-src_install() { |
1231 |
- local inst |
1232 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
1233 |
- # install systemd related files only when requested, bug #522430 |
1234 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
1235 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
1236 |
- for inst in ${INSTALL_TARGETS}; do |
1237 |
- emake DESTDIR="${D}" ${inst} |
1238 |
- done |
1239 |
- |
1240 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1241 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1242 |
- |
1243 |
- if use !device-mapper-only ; then |
1244 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
1245 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r4 lvm |
1246 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
1247 |
- |
1248 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1249 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1250 |
- fi |
1251 |
- |
1252 |
- if use clvm; then |
1253 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
1254 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
1255 |
- fi |
1256 |
- |
1257 |
- if use static-libs; then |
1258 |
- dolib.a libdm/ioctl/libdevmapper.a |
1259 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1260 |
- #gen_usr_ldscript libdevmapper.so |
1261 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1262 |
- #gen_usr_ldscript libdevmapper-event.so |
1263 |
- else |
1264 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1265 |
- fi |
1266 |
- |
1267 |
- if use lvm2create_initrd; then |
1268 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1269 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1270 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1271 |
- fi |
1272 |
- |
1273 |
- insinto /etc |
1274 |
- doins "${FILESDIR}"/dmtab |
1275 |
- |
1276 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1277 |
-} |
1278 |
- |
1279 |
-pkg_postinst() { |
1280 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1281 |
- ewarn "# rc-update add lvm boot" |
1282 |
- ewarn |
1283 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1284 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1285 |
- ewarn |
1286 |
- ewarn "After enabling or disabling lvmetad in /etc/lvm/lvm.conf you must" |
1287 |
- ewarn "run the following to update the init script dependencies: " |
1288 |
- ewarn "# rc-update -u" |
1289 |
-} |
1290 |
- |
1291 |
-src_test() { |
1292 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1293 |
- einfo "run tests, compile the package and see ${S}/tests" |
1294 |
-} |
1295 |
|
1296 |
diff --git a/sys-fs/lvm2/lvm2-2.02.116-r5.ebuild b/sys-fs/lvm2/lvm2-2.02.116-r5.ebuild |
1297 |
deleted file mode 100644 |
1298 |
index edc9aaf28c1..00000000000 |
1299 |
--- a/sys-fs/lvm2/lvm2-2.02.116-r5.ebuild |
1300 |
+++ /dev/null |
1301 |
@@ -1,290 +0,0 @@ |
1302 |
-# Copyright 1999-2016 Gentoo Foundation |
1303 |
-# Distributed under the terms of the GNU General Public License v2 |
1304 |
- |
1305 |
-EAPI=5 |
1306 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1307 |
- |
1308 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1309 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1310 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1311 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1312 |
- |
1313 |
-LICENSE="GPL-2" |
1314 |
-SLOT="0" |
1315 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
1316 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
1317 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
1318 |
- systemd? ( udev ) |
1319 |
- clvm? ( !systemd )" |
1320 |
- |
1321 |
-DEPEND_COMMON=" |
1322 |
- clvm? ( |
1323 |
- cman? ( =sys-cluster/cman-3* ) |
1324 |
- corosync? ( sys-cluster/corosync ) |
1325 |
- openais? ( sys-cluster/openais ) |
1326 |
- =sys-cluster/libdlm-3* |
1327 |
- ) |
1328 |
- |
1329 |
- readline? ( sys-libs/readline:0= ) |
1330 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
1331 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1332 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1333 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1334 |
-RDEPEND="${DEPEND_COMMON} |
1335 |
- >=sys-apps/baselayout-2.2 |
1336 |
- !<sys-apps/openrc-0.11 |
1337 |
- !<sys-fs/cryptsetup-1.1.2 |
1338 |
- !!sys-fs/clvm |
1339 |
- !!sys-fs/lvm-user |
1340 |
- >=sys-apps/util-linux-2.16 |
1341 |
- lvm2create_initrd? ( |
1342 |
- app-arch/cpio |
1343 |
- sys-apps/makedev |
1344 |
- ) |
1345 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1346 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1347 |
-# USE 'static' currently only works with eudev, bug 520450 |
1348 |
-DEPEND="${DEPEND_COMMON} |
1349 |
- virtual/pkgconfig |
1350 |
- >=sys-devel/binutils-2.20.1-r1 |
1351 |
- static? ( |
1352 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1353 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1354 |
- >=sys-apps/util-linux-2.16[static-libs] |
1355 |
- )" |
1356 |
- |
1357 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
1358 |
- |
1359 |
-pkg_setup() { |
1360 |
- local CONFIG_CHECK="~SYSVIPC" |
1361 |
- |
1362 |
- if use udev; then |
1363 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1364 |
- if linux_config_exists; then |
1365 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1366 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
1367 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1368 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1369 |
- fi |
1370 |
- fi |
1371 |
- fi |
1372 |
- |
1373 |
- check_extra_config |
1374 |
- |
1375 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1376 |
- if use static; then |
1377 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1378 |
- elog "their static versions. If you need the static binaries," |
1379 |
- elog "you must append .static to the filename!" |
1380 |
- fi |
1381 |
-} |
1382 |
- |
1383 |
-src_prepare() { |
1384 |
- # Gentoo specific modification(s): |
1385 |
- epatch "${FILESDIR}"/${PN}-2.02.108-example.conf.in.patch |
1386 |
- |
1387 |
- sed -i \ |
1388 |
- -e "1iAR = $(tc-getAR)" \ |
1389 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1390 |
- make.tmpl.in || die #444082 |
1391 |
- |
1392 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
1393 |
- |
1394 |
- if use udev && ! use device-mapper-only; then |
1395 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1396 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1397 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1398 |
- elog "if it was previously disabled." |
1399 |
- fi |
1400 |
- |
1401 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1402 |
- |
1403 |
- # For upstream -- review and forward: |
1404 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1405 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1406 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1407 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1408 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
1409 |
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905 |
1410 |
- epatch "${FILESDIR}"/${PN}-2.02.108-static-pkgconfig-libs.patch #370217, #439414 + blkid |
1411 |
- epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450 |
1412 |
- |
1413 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
1414 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
1415 |
- |
1416 |
- eautoreconf |
1417 |
-} |
1418 |
- |
1419 |
-src_configure() { |
1420 |
- filter-flags -flto |
1421 |
- local myconf |
1422 |
- local buildmode |
1423 |
- |
1424 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
1425 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
1426 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
1427 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
1428 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
1429 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
1430 |
- |
1431 |
- # Most of this package does weird stuff. |
1432 |
- # The build options are tristate, and --without is NOT supported |
1433 |
- # options: 'none', 'internal', 'shared' |
1434 |
- if use static; then |
1435 |
- buildmode="internal" |
1436 |
- # This only causes the .static versions to become available |
1437 |
- myconf="${myconf} --enable-static_link" |
1438 |
- else |
1439 |
- buildmode="shared" |
1440 |
- fi |
1441 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
1442 |
- |
1443 |
- # dmeventd requires mirrors to be internal, and snapshot available |
1444 |
- # so we cannot disable them |
1445 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
1446 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
1447 |
- if use thin; then |
1448 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
1449 |
- local texec |
1450 |
- for texec in check dump repair restore; do |
1451 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
1452 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
1453 |
- done |
1454 |
- else |
1455 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
1456 |
- fi |
1457 |
- |
1458 |
- if use lvm1; then |
1459 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
1460 |
- else |
1461 |
- myconf="${myconf} --with-lvm1=none" |
1462 |
- fi |
1463 |
- |
1464 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1465 |
- use hppa && myconf="${myconf} --disable-o_direct" |
1466 |
- |
1467 |
- if use clvm; then |
1468 |
- myconf="${myconf} --with-cluster=${buildmode}" |
1469 |
- # 4-state! Make sure we get it right, per bug 210879 |
1470 |
- # Valid options are: none, cman, gulm, all |
1471 |
- # |
1472 |
- # 2009/02: |
1473 |
- # gulm is removed now, now dual-state: |
1474 |
- # cman, none |
1475 |
- # all still exists, but is not needed |
1476 |
- # |
1477 |
- # 2009/07: |
1478 |
- # TODO: add corosync and re-enable ALL |
1479 |
- local clvmd="" |
1480 |
- use cman && clvmd="cman" |
1481 |
- #clvmd="${clvmd/cmangulm/all}" |
1482 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
1483 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
1484 |
- [ -z "${clvmd}" ] && clvmd="none" |
1485 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
1486 |
- myconf="${myconf} --with-pool=${buildmode}" |
1487 |
- else |
1488 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
1489 |
- fi |
1490 |
- |
1491 |
- econf \ |
1492 |
- $(use_enable readline) \ |
1493 |
- $(use_enable selinux) \ |
1494 |
- --enable-pkgconfig \ |
1495 |
- --with-confdir="${EPREFIX}"/etc \ |
1496 |
- --exec-prefix="${EPREFIX}" \ |
1497 |
- --sbindir="${EPREFIX}/sbin" \ |
1498 |
- --with-staticdir="${EPREFIX}"/sbin \ |
1499 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
1500 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1501 |
- --with-default-dm-run-dir=/run \ |
1502 |
- --with-default-run-dir=/run/lvm \ |
1503 |
- --with-default-locking-dir=/run/lock/lvm \ |
1504 |
- --with-default-pid-dir=/run \ |
1505 |
- $(use_enable udev udev_rules) \ |
1506 |
- $(use_enable udev udev_sync) \ |
1507 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
1508 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
1509 |
- "$(systemd_with_unitdir)" \ |
1510 |
- ${myconf} \ |
1511 |
- CLDFLAGS="${LDFLAGS}" |
1512 |
-} |
1513 |
- |
1514 |
-src_compile() { |
1515 |
- pushd include >/dev/null |
1516 |
- emake |
1517 |
- popd >/dev/null |
1518 |
- |
1519 |
- if use device-mapper-only ; then |
1520 |
- emake device-mapper |
1521 |
- else |
1522 |
- emake |
1523 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1524 |
- fi |
1525 |
-} |
1526 |
- |
1527 |
-src_install() { |
1528 |
- local inst |
1529 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
1530 |
- # install systemd related files only when requested, bug #522430 |
1531 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
1532 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
1533 |
- for inst in ${INSTALL_TARGETS}; do |
1534 |
- emake DESTDIR="${D}" ${inst} |
1535 |
- done |
1536 |
- |
1537 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1538 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1539 |
- |
1540 |
- if use !device-mapper-only ; then |
1541 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
1542 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r4 lvm |
1543 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
1544 |
- |
1545 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1546 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1547 |
- fi |
1548 |
- |
1549 |
- if use clvm; then |
1550 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
1551 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
1552 |
- fi |
1553 |
- |
1554 |
- if use static-libs; then |
1555 |
- dolib.a libdm/ioctl/libdevmapper.a |
1556 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1557 |
- #gen_usr_ldscript libdevmapper.so |
1558 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1559 |
- #gen_usr_ldscript libdevmapper-event.so |
1560 |
- else |
1561 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1562 |
- fi |
1563 |
- |
1564 |
- if use lvm2create_initrd; then |
1565 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1566 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1567 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1568 |
- fi |
1569 |
- |
1570 |
- insinto /etc |
1571 |
- doins "${FILESDIR}"/dmtab |
1572 |
- |
1573 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1574 |
-} |
1575 |
- |
1576 |
-pkg_postinst() { |
1577 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1578 |
- ewarn "# rc-update add lvm boot" |
1579 |
- ewarn |
1580 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1581 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1582 |
- ewarn |
1583 |
- ewarn "After enabling or disabling lvmetad in /etc/lvm/lvm.conf you must" |
1584 |
- ewarn "run the following to update the init script dependencies: " |
1585 |
- ewarn "# rc-update -u" |
1586 |
-} |
1587 |
- |
1588 |
-src_test() { |
1589 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1590 |
- einfo "run tests, compile the package and see ${S}/tests" |
1591 |
-} |
1592 |
|
1593 |
diff --git a/sys-fs/lvm2/lvm2-2.02.116-r6.ebuild b/sys-fs/lvm2/lvm2-2.02.116-r6.ebuild |
1594 |
deleted file mode 100644 |
1595 |
index 7bfc87028dc..00000000000 |
1596 |
--- a/sys-fs/lvm2/lvm2-2.02.116-r6.ebuild |
1597 |
+++ /dev/null |
1598 |
@@ -1,290 +0,0 @@ |
1599 |
-# Copyright 1999-2016 Gentoo Foundation |
1600 |
-# Distributed under the terms of the GNU General Public License v2 |
1601 |
- |
1602 |
-EAPI=5 |
1603 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1604 |
- |
1605 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1606 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1607 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1608 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1609 |
- |
1610 |
-LICENSE="GPL-2" |
1611 |
-SLOT="0" |
1612 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
1613 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
1614 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
1615 |
- systemd? ( udev ) |
1616 |
- clvm? ( !systemd )" |
1617 |
- |
1618 |
-DEPEND_COMMON=" |
1619 |
- clvm? ( |
1620 |
- cman? ( =sys-cluster/cman-3* ) |
1621 |
- corosync? ( sys-cluster/corosync ) |
1622 |
- openais? ( sys-cluster/openais ) |
1623 |
- =sys-cluster/libdlm-3* |
1624 |
- ) |
1625 |
- |
1626 |
- readline? ( sys-libs/readline:0= ) |
1627 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
1628 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1629 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1630 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1631 |
-RDEPEND="${DEPEND_COMMON} |
1632 |
- >=sys-apps/baselayout-2.2 |
1633 |
- !<sys-apps/openrc-0.11 |
1634 |
- !<sys-fs/cryptsetup-1.1.2 |
1635 |
- !!sys-fs/clvm |
1636 |
- !!sys-fs/lvm-user |
1637 |
- >=sys-apps/util-linux-2.16 |
1638 |
- lvm2create_initrd? ( |
1639 |
- app-arch/cpio |
1640 |
- sys-apps/makedev |
1641 |
- ) |
1642 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1643 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1644 |
-# USE 'static' currently only works with eudev, bug 520450 |
1645 |
-DEPEND="${DEPEND_COMMON} |
1646 |
- virtual/pkgconfig |
1647 |
- >=sys-devel/binutils-2.20.1-r1 |
1648 |
- static? ( |
1649 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1650 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1651 |
- >=sys-apps/util-linux-2.16[static-libs] |
1652 |
- )" |
1653 |
- |
1654 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
1655 |
- |
1656 |
-pkg_setup() { |
1657 |
- local CONFIG_CHECK="~SYSVIPC" |
1658 |
- |
1659 |
- if use udev; then |
1660 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1661 |
- if linux_config_exists; then |
1662 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1663 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
1664 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1665 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1666 |
- fi |
1667 |
- fi |
1668 |
- fi |
1669 |
- |
1670 |
- check_extra_config |
1671 |
- |
1672 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1673 |
- if use static; then |
1674 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1675 |
- elog "their static versions. If you need the static binaries," |
1676 |
- elog "you must append .static to the filename!" |
1677 |
- fi |
1678 |
-} |
1679 |
- |
1680 |
-src_prepare() { |
1681 |
- # Gentoo specific modification(s): |
1682 |
- epatch "${FILESDIR}"/${PN}-2.02.108-example.conf.in.patch |
1683 |
- |
1684 |
- sed -i \ |
1685 |
- -e "1iAR = $(tc-getAR)" \ |
1686 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1687 |
- make.tmpl.in || die #444082 |
1688 |
- |
1689 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
1690 |
- |
1691 |
- if use udev && ! use device-mapper-only; then |
1692 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1693 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1694 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1695 |
- elog "if it was previously disabled." |
1696 |
- fi |
1697 |
- |
1698 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1699 |
- |
1700 |
- # For upstream -- review and forward: |
1701 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1702 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1703 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1704 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1705 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
1706 |
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905 |
1707 |
- epatch "${FILESDIR}"/${PN}-2.02.108-static-pkgconfig-libs.patch #370217, #439414 + blkid |
1708 |
- epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450 |
1709 |
- |
1710 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
1711 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
1712 |
- |
1713 |
- eautoreconf |
1714 |
-} |
1715 |
- |
1716 |
-src_configure() { |
1717 |
- filter-flags -flto |
1718 |
- local myconf |
1719 |
- local buildmode |
1720 |
- |
1721 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
1722 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
1723 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
1724 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
1725 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
1726 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
1727 |
- |
1728 |
- # Most of this package does weird stuff. |
1729 |
- # The build options are tristate, and --without is NOT supported |
1730 |
- # options: 'none', 'internal', 'shared' |
1731 |
- if use static; then |
1732 |
- buildmode="internal" |
1733 |
- # This only causes the .static versions to become available |
1734 |
- myconf="${myconf} --enable-static_link" |
1735 |
- else |
1736 |
- buildmode="shared" |
1737 |
- fi |
1738 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
1739 |
- |
1740 |
- # dmeventd requires mirrors to be internal, and snapshot available |
1741 |
- # so we cannot disable them |
1742 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
1743 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
1744 |
- if use thin; then |
1745 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
1746 |
- local texec |
1747 |
- for texec in check dump repair restore; do |
1748 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
1749 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
1750 |
- done |
1751 |
- else |
1752 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
1753 |
- fi |
1754 |
- |
1755 |
- if use lvm1; then |
1756 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
1757 |
- else |
1758 |
- myconf="${myconf} --with-lvm1=none" |
1759 |
- fi |
1760 |
- |
1761 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
1762 |
- use hppa && myconf="${myconf} --disable-o_direct" |
1763 |
- |
1764 |
- if use clvm; then |
1765 |
- myconf="${myconf} --with-cluster=${buildmode}" |
1766 |
- # 4-state! Make sure we get it right, per bug 210879 |
1767 |
- # Valid options are: none, cman, gulm, all |
1768 |
- # |
1769 |
- # 2009/02: |
1770 |
- # gulm is removed now, now dual-state: |
1771 |
- # cman, none |
1772 |
- # all still exists, but is not needed |
1773 |
- # |
1774 |
- # 2009/07: |
1775 |
- # TODO: add corosync and re-enable ALL |
1776 |
- local clvmd="" |
1777 |
- use cman && clvmd="cman" |
1778 |
- #clvmd="${clvmd/cmangulm/all}" |
1779 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
1780 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
1781 |
- [ -z "${clvmd}" ] && clvmd="none" |
1782 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
1783 |
- myconf="${myconf} --with-pool=${buildmode}" |
1784 |
- else |
1785 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
1786 |
- fi |
1787 |
- |
1788 |
- econf \ |
1789 |
- $(use_enable readline) \ |
1790 |
- $(use_enable selinux) \ |
1791 |
- --enable-pkgconfig \ |
1792 |
- --with-confdir="${EPREFIX}"/etc \ |
1793 |
- --exec-prefix="${EPREFIX}" \ |
1794 |
- --sbindir="${EPREFIX}/sbin" \ |
1795 |
- --with-staticdir="${EPREFIX}"/sbin \ |
1796 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
1797 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1798 |
- --with-default-dm-run-dir=/run \ |
1799 |
- --with-default-run-dir=/run/lvm \ |
1800 |
- --with-default-locking-dir=/run/lock/lvm \ |
1801 |
- --with-default-pid-dir=/run \ |
1802 |
- $(use_enable udev udev_rules) \ |
1803 |
- $(use_enable udev udev_sync) \ |
1804 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
1805 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
1806 |
- "$(systemd_with_unitdir)" \ |
1807 |
- ${myconf} \ |
1808 |
- CLDFLAGS="${LDFLAGS}" |
1809 |
-} |
1810 |
- |
1811 |
-src_compile() { |
1812 |
- pushd include >/dev/null |
1813 |
- emake |
1814 |
- popd >/dev/null |
1815 |
- |
1816 |
- if use device-mapper-only ; then |
1817 |
- emake device-mapper |
1818 |
- else |
1819 |
- emake |
1820 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
1821 |
- fi |
1822 |
-} |
1823 |
- |
1824 |
-src_install() { |
1825 |
- local inst |
1826 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
1827 |
- # install systemd related files only when requested, bug #522430 |
1828 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
1829 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
1830 |
- for inst in ${INSTALL_TARGETS}; do |
1831 |
- emake DESTDIR="${D}" ${inst} |
1832 |
- done |
1833 |
- |
1834 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
1835 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
1836 |
- |
1837 |
- if use !device-mapper-only ; then |
1838 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
1839 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r6 lvm |
1840 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
1841 |
- |
1842 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
1843 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
1844 |
- fi |
1845 |
- |
1846 |
- if use clvm; then |
1847 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
1848 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
1849 |
- fi |
1850 |
- |
1851 |
- if use static-libs; then |
1852 |
- dolib.a libdm/ioctl/libdevmapper.a |
1853 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
1854 |
- #gen_usr_ldscript libdevmapper.so |
1855 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
1856 |
- #gen_usr_ldscript libdevmapper-event.so |
1857 |
- else |
1858 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
1859 |
- fi |
1860 |
- |
1861 |
- if use lvm2create_initrd; then |
1862 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
1863 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
1864 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
1865 |
- fi |
1866 |
- |
1867 |
- insinto /etc |
1868 |
- doins "${FILESDIR}"/dmtab |
1869 |
- |
1870 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
1871 |
-} |
1872 |
- |
1873 |
-pkg_postinst() { |
1874 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
1875 |
- ewarn "# rc-update add lvm boot" |
1876 |
- ewarn |
1877 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
1878 |
- ewarn "to enable lvm autoactivation and metadata caching." |
1879 |
- ewarn |
1880 |
- ewarn "After enabling or disabling lvmetad in /etc/lvm/lvm.conf you must" |
1881 |
- ewarn "run the following to update the init script dependencies: " |
1882 |
- ewarn "# rc-update -u" |
1883 |
-} |
1884 |
- |
1885 |
-src_test() { |
1886 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
1887 |
- einfo "run tests, compile the package and see ${S}/tests" |
1888 |
-} |
1889 |
|
1890 |
diff --git a/sys-fs/lvm2/lvm2-2.02.136-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.136-r1.ebuild |
1891 |
deleted file mode 100644 |
1892 |
index 850400f1e6d..00000000000 |
1893 |
--- a/sys-fs/lvm2/lvm2-2.02.136-r1.ebuild |
1894 |
+++ /dev/null |
1895 |
@@ -1,283 +0,0 @@ |
1896 |
-# Copyright 1999-2016 Gentoo Foundation |
1897 |
-# Distributed under the terms of the GNU General Public License v2 |
1898 |
- |
1899 |
-EAPI=5 |
1900 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
1901 |
- |
1902 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
1903 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
1904 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
1905 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
1906 |
- |
1907 |
-LICENSE="GPL-2" |
1908 |
-SLOT="0" |
1909 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
1910 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
1911 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
1912 |
- systemd? ( udev ) |
1913 |
- clvm? ( !systemd )" |
1914 |
- |
1915 |
-DEPEND_COMMON=" |
1916 |
- clvm? ( |
1917 |
- cman? ( =sys-cluster/cman-3* ) |
1918 |
- corosync? ( sys-cluster/corosync ) |
1919 |
- openais? ( sys-cluster/openais ) |
1920 |
- =sys-cluster/libdlm-3* |
1921 |
- ) |
1922 |
- |
1923 |
- readline? ( sys-libs/readline:0= ) |
1924 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
1925 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
1926 |
-# be available -- thus, pull in recent enough baselayout for /run. |
1927 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
1928 |
-RDEPEND="${DEPEND_COMMON} |
1929 |
- >=sys-apps/baselayout-2.2 |
1930 |
- !<sys-apps/openrc-0.11 |
1931 |
- !<sys-fs/cryptsetup-1.1.2 |
1932 |
- !!sys-fs/clvm |
1933 |
- !!sys-fs/lvm-user |
1934 |
- >=sys-apps/util-linux-2.16 |
1935 |
- lvm2create_initrd? ( sys-apps/makedev ) |
1936 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
1937 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
1938 |
-# USE 'static' currently only works with eudev, bug 520450 |
1939 |
-DEPEND="${DEPEND_COMMON} |
1940 |
- virtual/pkgconfig |
1941 |
- >=sys-devel/binutils-2.20.1-r1 |
1942 |
- static? ( |
1943 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
1944 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
1945 |
- >=sys-apps/util-linux-2.16[static-libs] |
1946 |
- )" |
1947 |
- |
1948 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
1949 |
- |
1950 |
-pkg_setup() { |
1951 |
- local CONFIG_CHECK="~SYSVIPC" |
1952 |
- |
1953 |
- if use udev; then |
1954 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
1955 |
- if linux_config_exists; then |
1956 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
1957 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
1958 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
1959 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
1960 |
- fi |
1961 |
- fi |
1962 |
- fi |
1963 |
- |
1964 |
- check_extra_config |
1965 |
- |
1966 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
1967 |
- if use static; then |
1968 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
1969 |
- elog "their static versions. If you need the static binaries," |
1970 |
- elog "you must append .static to the filename!" |
1971 |
- fi |
1972 |
-} |
1973 |
- |
1974 |
-src_prepare() { |
1975 |
- # Gentoo specific modification(s): |
1976 |
- epatch "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
1977 |
- |
1978 |
- sed -i \ |
1979 |
- -e "1iAR = $(tc-getAR)" \ |
1980 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
1981 |
- make.tmpl.in || die #444082 |
1982 |
- |
1983 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
1984 |
- |
1985 |
- if use udev && ! use device-mapper-only; then |
1986 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
1987 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
1988 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
1989 |
- elog "if it was previously disabled." |
1990 |
- fi |
1991 |
- |
1992 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
1993 |
- |
1994 |
- # For upstream -- review and forward: |
1995 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
1996 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
1997 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
1998 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
1999 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
2000 |
- epatch "${FILESDIR}"/${PN}-2.02.129-dynamic-static-ldflags.patch #332905 |
2001 |
- epatch "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
2002 |
- epatch "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
2003 |
- |
2004 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
2005 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
2006 |
- |
2007 |
- eautoreconf |
2008 |
-} |
2009 |
- |
2010 |
-src_configure() { |
2011 |
- filter-flags -flto |
2012 |
- local myconf |
2013 |
- local buildmode |
2014 |
- |
2015 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
2016 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
2017 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
2018 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
2019 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
2020 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
2021 |
- |
2022 |
- # Most of this package does weird stuff. |
2023 |
- # The build options are tristate, and --without is NOT supported |
2024 |
- # options: 'none', 'internal', 'shared' |
2025 |
- if use static; then |
2026 |
- buildmode="internal" |
2027 |
- # This only causes the .static versions to become available |
2028 |
- myconf="${myconf} --enable-static_link" |
2029 |
- else |
2030 |
- buildmode="shared" |
2031 |
- fi |
2032 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
2033 |
- |
2034 |
- # dmeventd requires mirrors to be internal, and snapshot available |
2035 |
- # so we cannot disable them |
2036 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
2037 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
2038 |
- if use thin; then |
2039 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
2040 |
- local texec |
2041 |
- for texec in check dump repair restore; do |
2042 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
2043 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
2044 |
- done |
2045 |
- else |
2046 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
2047 |
- fi |
2048 |
- |
2049 |
- if use lvm1; then |
2050 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
2051 |
- else |
2052 |
- myconf="${myconf} --with-lvm1=none" |
2053 |
- fi |
2054 |
- |
2055 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
2056 |
- use hppa && myconf="${myconf} --disable-o_direct" |
2057 |
- |
2058 |
- if use clvm; then |
2059 |
- myconf="${myconf} --with-cluster=${buildmode}" |
2060 |
- # 4-state! Make sure we get it right, per bug 210879 |
2061 |
- # Valid options are: none, cman, gulm, all |
2062 |
- # |
2063 |
- # 2009/02: |
2064 |
- # gulm is removed now, now dual-state: |
2065 |
- # cman, none |
2066 |
- # all still exists, but is not needed |
2067 |
- # |
2068 |
- # 2009/07: |
2069 |
- # TODO: add corosync and re-enable ALL |
2070 |
- local clvmd="" |
2071 |
- use cman && clvmd="cman" |
2072 |
- #clvmd="${clvmd/cmangulm/all}" |
2073 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
2074 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
2075 |
- [ -z "${clvmd}" ] && clvmd="none" |
2076 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
2077 |
- myconf="${myconf} --with-pool=${buildmode}" |
2078 |
- else |
2079 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
2080 |
- fi |
2081 |
- |
2082 |
- econf \ |
2083 |
- $(use_enable readline) \ |
2084 |
- $(use_enable selinux) \ |
2085 |
- --enable-pkgconfig \ |
2086 |
- --with-confdir="${EPREFIX}"/etc \ |
2087 |
- --exec-prefix="${EPREFIX}" \ |
2088 |
- --sbindir="${EPREFIX}/sbin" \ |
2089 |
- --with-staticdir="${EPREFIX}"/sbin \ |
2090 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
2091 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
2092 |
- --with-default-dm-run-dir=/run \ |
2093 |
- --with-default-run-dir=/run/lvm \ |
2094 |
- --with-default-locking-dir=/run/lock/lvm \ |
2095 |
- --with-default-pid-dir=/run \ |
2096 |
- $(use_enable udev udev_rules) \ |
2097 |
- $(use_enable udev udev_sync) \ |
2098 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
2099 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
2100 |
- "$(systemd_with_unitdir)" \ |
2101 |
- ${myconf} \ |
2102 |
- CLDFLAGS="${LDFLAGS}" |
2103 |
-} |
2104 |
- |
2105 |
-src_compile() { |
2106 |
- pushd include >/dev/null |
2107 |
- emake |
2108 |
- popd >/dev/null |
2109 |
- |
2110 |
- if use device-mapper-only ; then |
2111 |
- emake device-mapper |
2112 |
- else |
2113 |
- emake |
2114 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
2115 |
- fi |
2116 |
-} |
2117 |
- |
2118 |
-src_install() { |
2119 |
- local inst |
2120 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
2121 |
- # install systemd related files only when requested, bug #522430 |
2122 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
2123 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
2124 |
- for inst in ${INSTALL_TARGETS}; do |
2125 |
- emake DESTDIR="${D}" ${inst} |
2126 |
- done |
2127 |
- |
2128 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
2129 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
2130 |
- |
2131 |
- if use !device-mapper-only ; then |
2132 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
2133 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
2134 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
2135 |
- |
2136 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
2137 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
2138 |
- fi |
2139 |
- |
2140 |
- if use clvm; then |
2141 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
2142 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
2143 |
- fi |
2144 |
- |
2145 |
- if use static-libs; then |
2146 |
- dolib.a libdm/ioctl/libdevmapper.a |
2147 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
2148 |
- #gen_usr_ldscript libdevmapper.so |
2149 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
2150 |
- #gen_usr_ldscript libdevmapper-event.so |
2151 |
- else |
2152 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
2153 |
- fi |
2154 |
- |
2155 |
- if use lvm2create_initrd; then |
2156 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
2157 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
2158 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
2159 |
- fi |
2160 |
- |
2161 |
- insinto /etc |
2162 |
- doins "${FILESDIR}"/dmtab |
2163 |
- |
2164 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
2165 |
-} |
2166 |
- |
2167 |
-pkg_postinst() { |
2168 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
2169 |
- ewarn "# rc-update add lvm boot" |
2170 |
- ewarn |
2171 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
2172 |
- ewarn "to enable lvm autoactivation and metadata caching." |
2173 |
-} |
2174 |
- |
2175 |
-src_test() { |
2176 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
2177 |
- einfo "run tests, compile the package and see ${S}/tests" |
2178 |
-} |
2179 |
|
2180 |
diff --git a/sys-fs/lvm2/lvm2-2.02.136-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.136-r2.ebuild |
2181 |
deleted file mode 100644 |
2182 |
index 033673bad6d..00000000000 |
2183 |
--- a/sys-fs/lvm2/lvm2-2.02.136-r2.ebuild |
2184 |
+++ /dev/null |
2185 |
@@ -1,284 +0,0 @@ |
2186 |
-# Copyright 1999-2016 Gentoo Foundation |
2187 |
-# Distributed under the terms of the GNU General Public License v2 |
2188 |
- |
2189 |
-EAPI=5 |
2190 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
2191 |
- |
2192 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
2193 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
2194 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
2195 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
2196 |
- |
2197 |
-LICENSE="GPL-2" |
2198 |
-SLOT="0" |
2199 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
2200 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
2201 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
2202 |
- systemd? ( udev ) |
2203 |
- clvm? ( !systemd )" |
2204 |
- |
2205 |
-DEPEND_COMMON=" |
2206 |
- clvm? ( |
2207 |
- cman? ( =sys-cluster/cman-3* ) |
2208 |
- corosync? ( sys-cluster/corosync ) |
2209 |
- openais? ( sys-cluster/openais ) |
2210 |
- =sys-cluster/libdlm-3* |
2211 |
- ) |
2212 |
- |
2213 |
- readline? ( sys-libs/readline:0= ) |
2214 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
2215 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
2216 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
2217 |
-# be available -- thus, pull in recent enough baselayout for /run. |
2218 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
2219 |
-RDEPEND="${DEPEND_COMMON} |
2220 |
- >=sys-apps/baselayout-2.2 |
2221 |
- !<sys-apps/openrc-0.11 |
2222 |
- !<sys-fs/cryptsetup-1.1.2 |
2223 |
- !!sys-fs/clvm |
2224 |
- !!sys-fs/lvm-user |
2225 |
- >=sys-apps/util-linux-2.16 |
2226 |
- lvm2create_initrd? ( sys-apps/makedev ) |
2227 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
2228 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
2229 |
-# USE 'static' currently only works with eudev, bug 520450 |
2230 |
-DEPEND="${DEPEND_COMMON} |
2231 |
- virtual/pkgconfig |
2232 |
- >=sys-devel/binutils-2.20.1-r1 |
2233 |
- static? ( |
2234 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
2235 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
2236 |
- >=sys-apps/util-linux-2.16[static-libs] |
2237 |
- )" |
2238 |
- |
2239 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
2240 |
- |
2241 |
-pkg_setup() { |
2242 |
- local CONFIG_CHECK="~SYSVIPC" |
2243 |
- |
2244 |
- if use udev; then |
2245 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
2246 |
- if linux_config_exists; then |
2247 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
2248 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
2249 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
2250 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
2251 |
- fi |
2252 |
- fi |
2253 |
- fi |
2254 |
- |
2255 |
- check_extra_config |
2256 |
- |
2257 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
2258 |
- if use static; then |
2259 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
2260 |
- elog "their static versions. If you need the static binaries," |
2261 |
- elog "you must append .static to the filename!" |
2262 |
- fi |
2263 |
-} |
2264 |
- |
2265 |
-src_prepare() { |
2266 |
- # Gentoo specific modification(s): |
2267 |
- epatch "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
2268 |
- |
2269 |
- sed -i \ |
2270 |
- -e "1iAR = $(tc-getAR)" \ |
2271 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
2272 |
- make.tmpl.in || die #444082 |
2273 |
- |
2274 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
2275 |
- |
2276 |
- if use udev && ! use device-mapper-only; then |
2277 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
2278 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
2279 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
2280 |
- elog "if it was previously disabled." |
2281 |
- fi |
2282 |
- |
2283 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
2284 |
- |
2285 |
- # For upstream -- review and forward: |
2286 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
2287 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
2288 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
2289 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
2290 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
2291 |
- epatch "${FILESDIR}"/${PN}-2.02.129-dynamic-static-ldflags.patch #332905 |
2292 |
- epatch "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
2293 |
- epatch "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
2294 |
- |
2295 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
2296 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
2297 |
- |
2298 |
- eautoreconf |
2299 |
-} |
2300 |
- |
2301 |
-src_configure() { |
2302 |
- filter-flags -flto |
2303 |
- local myconf |
2304 |
- local buildmode |
2305 |
- |
2306 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
2307 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
2308 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
2309 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
2310 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
2311 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
2312 |
- |
2313 |
- # Most of this package does weird stuff. |
2314 |
- # The build options are tristate, and --without is NOT supported |
2315 |
- # options: 'none', 'internal', 'shared' |
2316 |
- if use static; then |
2317 |
- buildmode="internal" |
2318 |
- # This only causes the .static versions to become available |
2319 |
- myconf="${myconf} --enable-static_link" |
2320 |
- else |
2321 |
- buildmode="shared" |
2322 |
- fi |
2323 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
2324 |
- |
2325 |
- # dmeventd requires mirrors to be internal, and snapshot available |
2326 |
- # so we cannot disable them |
2327 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
2328 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
2329 |
- if use thin; then |
2330 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
2331 |
- local texec |
2332 |
- for texec in check dump repair restore; do |
2333 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
2334 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
2335 |
- done |
2336 |
- else |
2337 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
2338 |
- fi |
2339 |
- |
2340 |
- if use lvm1; then |
2341 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
2342 |
- else |
2343 |
- myconf="${myconf} --with-lvm1=none" |
2344 |
- fi |
2345 |
- |
2346 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
2347 |
- use hppa && myconf="${myconf} --disable-o_direct" |
2348 |
- |
2349 |
- if use clvm; then |
2350 |
- myconf="${myconf} --with-cluster=${buildmode}" |
2351 |
- # 4-state! Make sure we get it right, per bug 210879 |
2352 |
- # Valid options are: none, cman, gulm, all |
2353 |
- # |
2354 |
- # 2009/02: |
2355 |
- # gulm is removed now, now dual-state: |
2356 |
- # cman, none |
2357 |
- # all still exists, but is not needed |
2358 |
- # |
2359 |
- # 2009/07: |
2360 |
- # TODO: add corosync and re-enable ALL |
2361 |
- local clvmd="" |
2362 |
- use cman && clvmd="cman" |
2363 |
- #clvmd="${clvmd/cmangulm/all}" |
2364 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
2365 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
2366 |
- [ -z "${clvmd}" ] && clvmd="none" |
2367 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
2368 |
- myconf="${myconf} --with-pool=${buildmode}" |
2369 |
- else |
2370 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
2371 |
- fi |
2372 |
- |
2373 |
- econf \ |
2374 |
- $(use_enable readline) \ |
2375 |
- $(use_enable selinux) \ |
2376 |
- --enable-pkgconfig \ |
2377 |
- --with-confdir="${EPREFIX}"/etc \ |
2378 |
- --exec-prefix="${EPREFIX}" \ |
2379 |
- --sbindir="${EPREFIX}/sbin" \ |
2380 |
- --with-staticdir="${EPREFIX}"/sbin \ |
2381 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
2382 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
2383 |
- --with-default-dm-run-dir=/run \ |
2384 |
- --with-default-run-dir=/run/lvm \ |
2385 |
- --with-default-locking-dir=/run/lock/lvm \ |
2386 |
- --with-default-pid-dir=/run \ |
2387 |
- $(use_enable udev udev_rules) \ |
2388 |
- $(use_enable udev udev_sync) \ |
2389 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
2390 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
2391 |
- "$(systemd_with_unitdir)" \ |
2392 |
- ${myconf} \ |
2393 |
- CLDFLAGS="${LDFLAGS}" |
2394 |
-} |
2395 |
- |
2396 |
-src_compile() { |
2397 |
- pushd include >/dev/null |
2398 |
- emake |
2399 |
- popd >/dev/null |
2400 |
- |
2401 |
- if use device-mapper-only ; then |
2402 |
- emake device-mapper |
2403 |
- else |
2404 |
- emake |
2405 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
2406 |
- fi |
2407 |
-} |
2408 |
- |
2409 |
-src_install() { |
2410 |
- local inst |
2411 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
2412 |
- # install systemd related files only when requested, bug #522430 |
2413 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
2414 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
2415 |
- for inst in ${INSTALL_TARGETS}; do |
2416 |
- emake DESTDIR="${D}" ${inst} |
2417 |
- done |
2418 |
- |
2419 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
2420 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
2421 |
- |
2422 |
- if use !device-mapper-only ; then |
2423 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
2424 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r6 lvm |
2425 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
2426 |
- |
2427 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
2428 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
2429 |
- fi |
2430 |
- |
2431 |
- if use clvm; then |
2432 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
2433 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
2434 |
- fi |
2435 |
- |
2436 |
- if use static-libs; then |
2437 |
- dolib.a libdm/ioctl/libdevmapper.a |
2438 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
2439 |
- #gen_usr_ldscript libdevmapper.so |
2440 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
2441 |
- #gen_usr_ldscript libdevmapper-event.so |
2442 |
- else |
2443 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
2444 |
- fi |
2445 |
- |
2446 |
- if use lvm2create_initrd; then |
2447 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
2448 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
2449 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
2450 |
- fi |
2451 |
- |
2452 |
- insinto /etc |
2453 |
- doins "${FILESDIR}"/dmtab |
2454 |
- |
2455 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
2456 |
-} |
2457 |
- |
2458 |
-pkg_postinst() { |
2459 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
2460 |
- ewarn "# rc-update add lvm boot" |
2461 |
- ewarn |
2462 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
2463 |
- ewarn "to enable lvm autoactivation and metadata caching." |
2464 |
-} |
2465 |
- |
2466 |
-src_test() { |
2467 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
2468 |
- einfo "run tests, compile the package and see ${S}/tests" |
2469 |
-} |
2470 |
|
2471 |
diff --git a/sys-fs/lvm2/lvm2-2.02.136.ebuild b/sys-fs/lvm2/lvm2-2.02.136.ebuild |
2472 |
deleted file mode 100644 |
2473 |
index 27ff76be110..00000000000 |
2474 |
--- a/sys-fs/lvm2/lvm2-2.02.136.ebuild |
2475 |
+++ /dev/null |
2476 |
@@ -1,274 +0,0 @@ |
2477 |
-# Copyright 1999-2016 Gentoo Foundation |
2478 |
-# Distributed under the terms of the GNU General Public License v2 |
2479 |
- |
2480 |
-EAPI=5 |
2481 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
2482 |
- |
2483 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
2484 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
2485 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
2486 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
2487 |
- |
2488 |
-LICENSE="GPL-2" |
2489 |
-SLOT="0" |
2490 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
2491 |
-IUSE="readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" |
2492 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin ) |
2493 |
- systemd? ( udev ) |
2494 |
- clvm? ( !systemd )" |
2495 |
- |
2496 |
-DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) |
2497 |
- readline? ( sys-libs/readline:0= ) |
2498 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
2499 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
2500 |
-# be available -- thus, pull in recent enough baselayout for /run. |
2501 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
2502 |
-RDEPEND="${DEPEND_COMMON} |
2503 |
- >=sys-apps/baselayout-2.2 |
2504 |
- !<sys-apps/openrc-0.11 |
2505 |
- !<sys-fs/cryptsetup-1.1.2 |
2506 |
- !!sys-fs/clvm |
2507 |
- !!sys-fs/lvm-user |
2508 |
- >=sys-apps/util-linux-2.16 |
2509 |
- lvm2create_initrd? ( sys-apps/makedev ) |
2510 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
2511 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
2512 |
-# USE 'static' currently only works with eudev, bug 520450 |
2513 |
-DEPEND="${DEPEND_COMMON} |
2514 |
- virtual/pkgconfig |
2515 |
- >=sys-devel/binutils-2.20.1-r1 |
2516 |
- static? ( |
2517 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
2518 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
2519 |
- >=sys-apps/util-linux-2.16[static-libs] |
2520 |
- )" |
2521 |
- |
2522 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
2523 |
- |
2524 |
-pkg_setup() { |
2525 |
- local CONFIG_CHECK="~SYSVIPC" |
2526 |
- |
2527 |
- if use udev; then |
2528 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
2529 |
- if linux_config_exists; then |
2530 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
2531 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
2532 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
2533 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
2534 |
- fi |
2535 |
- fi |
2536 |
- fi |
2537 |
- |
2538 |
- check_extra_config |
2539 |
- |
2540 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
2541 |
- if use static; then |
2542 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
2543 |
- elog "their static versions. If you need the static binaries," |
2544 |
- elog "you must append .static to the filename!" |
2545 |
- fi |
2546 |
-} |
2547 |
- |
2548 |
-src_prepare() { |
2549 |
- # Gentoo specific modification(s): |
2550 |
- epatch "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
2551 |
- |
2552 |
- sed -i \ |
2553 |
- -e "1iAR = $(tc-getAR)" \ |
2554 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
2555 |
- make.tmpl.in || die #444082 |
2556 |
- |
2557 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
2558 |
- |
2559 |
- if use udev && ! use device-mapper-only; then |
2560 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
2561 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
2562 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
2563 |
- elog "if it was previously disabled." |
2564 |
- fi |
2565 |
- |
2566 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
2567 |
- |
2568 |
- # For upstream -- review and forward: |
2569 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
2570 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
2571 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
2572 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
2573 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
2574 |
- epatch "${FILESDIR}"/${PN}-2.02.129-dynamic-static-ldflags.patch #332905 |
2575 |
- epatch "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
2576 |
- epatch "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
2577 |
- |
2578 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
2579 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
2580 |
- |
2581 |
- eautoreconf |
2582 |
-} |
2583 |
- |
2584 |
-src_configure() { |
2585 |
- filter-flags -flto |
2586 |
- local myconf |
2587 |
- local buildmode |
2588 |
- |
2589 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
2590 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
2591 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
2592 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
2593 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
2594 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
2595 |
- |
2596 |
- # Most of this package does weird stuff. |
2597 |
- # The build options are tristate, and --without is NOT supported |
2598 |
- # options: 'none', 'internal', 'shared' |
2599 |
- if use static; then |
2600 |
- buildmode="internal" |
2601 |
- # This only causes the .static versions to become available |
2602 |
- myconf="${myconf} --enable-static_link" |
2603 |
- else |
2604 |
- buildmode="shared" |
2605 |
- fi |
2606 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
2607 |
- |
2608 |
- # dmeventd requires mirrors to be internal, and snapshot available |
2609 |
- # so we cannot disable them |
2610 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
2611 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
2612 |
- if use thin; then |
2613 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
2614 |
- local texec |
2615 |
- for texec in check dump repair restore; do |
2616 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
2617 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
2618 |
- done |
2619 |
- else |
2620 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
2621 |
- fi |
2622 |
- |
2623 |
- if use lvm1; then |
2624 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
2625 |
- else |
2626 |
- myconf="${myconf} --with-lvm1=none" |
2627 |
- fi |
2628 |
- |
2629 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
2630 |
- use hppa && myconf="${myconf} --disable-o_direct" |
2631 |
- |
2632 |
- if use clvm; then |
2633 |
- myconf="${myconf} --with-cluster=${buildmode}" |
2634 |
- # 4-state! Make sure we get it right, per bug 210879 |
2635 |
- # Valid options are: none, cman, gulm, all |
2636 |
- # |
2637 |
- # 2009/02: |
2638 |
- # gulm is removed now, now dual-state: |
2639 |
- # cman, none |
2640 |
- # all still exists, but is not needed |
2641 |
- # |
2642 |
- # 2009/07: |
2643 |
- # TODO: add corosync and re-enable ALL |
2644 |
- local clvmd="" |
2645 |
- use cman && clvmd="cman" |
2646 |
- #clvmd="${clvmd/cmangulm/all}" |
2647 |
- [ -z "${clvmd}" ] && clvmd="none" |
2648 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
2649 |
- myconf="${myconf} --with-pool=${buildmode}" |
2650 |
- else |
2651 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
2652 |
- fi |
2653 |
- |
2654 |
- econf \ |
2655 |
- $(use_enable readline) \ |
2656 |
- $(use_enable selinux) \ |
2657 |
- --enable-pkgconfig \ |
2658 |
- --with-confdir="${EPREFIX}"/etc \ |
2659 |
- --exec-prefix="${EPREFIX}" \ |
2660 |
- --sbindir="${EPREFIX}/sbin" \ |
2661 |
- --with-staticdir="${EPREFIX}"/sbin \ |
2662 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
2663 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
2664 |
- --with-default-dm-run-dir=/run \ |
2665 |
- --with-default-run-dir=/run/lvm \ |
2666 |
- --with-default-locking-dir=/run/lock/lvm \ |
2667 |
- --with-default-pid-dir=/run \ |
2668 |
- $(use_enable udev udev_rules) \ |
2669 |
- $(use_enable udev udev_sync) \ |
2670 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
2671 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
2672 |
- "$(systemd_with_unitdir)" \ |
2673 |
- ${myconf} \ |
2674 |
- CLDFLAGS="${LDFLAGS}" |
2675 |
-} |
2676 |
- |
2677 |
-src_compile() { |
2678 |
- pushd include >/dev/null |
2679 |
- emake |
2680 |
- popd >/dev/null |
2681 |
- |
2682 |
- if use device-mapper-only ; then |
2683 |
- emake device-mapper |
2684 |
- else |
2685 |
- emake |
2686 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
2687 |
- fi |
2688 |
-} |
2689 |
- |
2690 |
-src_install() { |
2691 |
- local inst |
2692 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
2693 |
- # install systemd related files only when requested, bug #522430 |
2694 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
2695 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
2696 |
- for inst in ${INSTALL_TARGETS}; do |
2697 |
- emake DESTDIR="${D}" ${inst} |
2698 |
- done |
2699 |
- |
2700 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
2701 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
2702 |
- |
2703 |
- if use !device-mapper-only ; then |
2704 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
2705 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
2706 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
2707 |
- |
2708 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
2709 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
2710 |
- fi |
2711 |
- |
2712 |
- if use clvm; then |
2713 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
2714 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
2715 |
- fi |
2716 |
- |
2717 |
- if use static-libs; then |
2718 |
- dolib.a libdm/ioctl/libdevmapper.a |
2719 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
2720 |
- #gen_usr_ldscript libdevmapper.so |
2721 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
2722 |
- #gen_usr_ldscript libdevmapper-event.so |
2723 |
- else |
2724 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
2725 |
- fi |
2726 |
- |
2727 |
- if use lvm2create_initrd; then |
2728 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
2729 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
2730 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
2731 |
- fi |
2732 |
- |
2733 |
- insinto /etc |
2734 |
- doins "${FILESDIR}"/dmtab |
2735 |
- |
2736 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
2737 |
-} |
2738 |
- |
2739 |
-pkg_postinst() { |
2740 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
2741 |
- ewarn "# rc-update add lvm boot" |
2742 |
- ewarn |
2743 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
2744 |
- ewarn "to enable lvm autoactivation and metadata caching." |
2745 |
-} |
2746 |
- |
2747 |
-src_test() { |
2748 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
2749 |
- einfo "run tests, compile the package and see ${S}/tests" |
2750 |
-} |
2751 |
|
2752 |
diff --git a/sys-fs/lvm2/lvm2-2.02.139-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.139-r1.ebuild |
2753 |
deleted file mode 100644 |
2754 |
index f53818cede0..00000000000 |
2755 |
--- a/sys-fs/lvm2/lvm2-2.02.139-r1.ebuild |
2756 |
+++ /dev/null |
2757 |
@@ -1,284 +0,0 @@ |
2758 |
-# Copyright 1999-2016 Gentoo Foundation |
2759 |
-# Distributed under the terms of the GNU General Public License v2 |
2760 |
- |
2761 |
-EAPI=5 |
2762 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
2763 |
- |
2764 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
2765 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
2766 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
2767 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
2768 |
- |
2769 |
-LICENSE="GPL-2" |
2770 |
-SLOT="0" |
2771 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
2772 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
2773 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
2774 |
- systemd? ( udev ) |
2775 |
- clvm? ( !systemd )" |
2776 |
- |
2777 |
-DEPEND_COMMON=" |
2778 |
- clvm? ( |
2779 |
- cman? ( =sys-cluster/cman-3* ) |
2780 |
- corosync? ( sys-cluster/corosync ) |
2781 |
- openais? ( sys-cluster/openais ) |
2782 |
- =sys-cluster/libdlm-3* |
2783 |
- ) |
2784 |
- |
2785 |
- readline? ( sys-libs/readline:0= ) |
2786 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
2787 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
2788 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
2789 |
-# be available -- thus, pull in recent enough baselayout for /run. |
2790 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
2791 |
-RDEPEND="${DEPEND_COMMON} |
2792 |
- >=sys-apps/baselayout-2.2 |
2793 |
- !<sys-apps/openrc-0.11 |
2794 |
- !<sys-fs/cryptsetup-1.1.2 |
2795 |
- !!sys-fs/clvm |
2796 |
- !!sys-fs/lvm-user |
2797 |
- >=sys-apps/util-linux-2.16 |
2798 |
- lvm2create_initrd? ( sys-apps/makedev ) |
2799 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
2800 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
2801 |
-# USE 'static' currently only works with eudev, bug 520450 |
2802 |
-DEPEND="${DEPEND_COMMON} |
2803 |
- virtual/pkgconfig |
2804 |
- >=sys-devel/binutils-2.20.1-r1 |
2805 |
- static? ( |
2806 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
2807 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
2808 |
- >=sys-apps/util-linux-2.16[static-libs] |
2809 |
- )" |
2810 |
- |
2811 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
2812 |
- |
2813 |
-pkg_setup() { |
2814 |
- local CONFIG_CHECK="~SYSVIPC" |
2815 |
- |
2816 |
- if use udev; then |
2817 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
2818 |
- if linux_config_exists; then |
2819 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
2820 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
2821 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
2822 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
2823 |
- fi |
2824 |
- fi |
2825 |
- fi |
2826 |
- |
2827 |
- check_extra_config |
2828 |
- |
2829 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
2830 |
- if use static; then |
2831 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
2832 |
- elog "their static versions. If you need the static binaries," |
2833 |
- elog "you must append .static to the filename!" |
2834 |
- fi |
2835 |
-} |
2836 |
- |
2837 |
-src_prepare() { |
2838 |
- # Gentoo specific modification(s): |
2839 |
- epatch "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
2840 |
- |
2841 |
- sed -i \ |
2842 |
- -e "1iAR = $(tc-getAR)" \ |
2843 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
2844 |
- make.tmpl.in || die #444082 |
2845 |
- |
2846 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
2847 |
- |
2848 |
- if use udev && ! use device-mapper-only; then |
2849 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
2850 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
2851 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
2852 |
- elog "if it was previously disabled." |
2853 |
- fi |
2854 |
- |
2855 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
2856 |
- |
2857 |
- # For upstream -- review and forward: |
2858 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
2859 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
2860 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
2861 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
2862 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
2863 |
- epatch "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
2864 |
- epatch "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
2865 |
- epatch "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
2866 |
- |
2867 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
2868 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
2869 |
- |
2870 |
- eautoreconf |
2871 |
-} |
2872 |
- |
2873 |
-src_configure() { |
2874 |
- filter-flags -flto |
2875 |
- local myconf |
2876 |
- local buildmode |
2877 |
- |
2878 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
2879 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
2880 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
2881 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
2882 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
2883 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
2884 |
- |
2885 |
- # Most of this package does weird stuff. |
2886 |
- # The build options are tristate, and --without is NOT supported |
2887 |
- # options: 'none', 'internal', 'shared' |
2888 |
- if use static; then |
2889 |
- buildmode="internal" |
2890 |
- # This only causes the .static versions to become available |
2891 |
- myconf="${myconf} --enable-static_link" |
2892 |
- else |
2893 |
- buildmode="shared" |
2894 |
- fi |
2895 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
2896 |
- |
2897 |
- # dmeventd requires mirrors to be internal, and snapshot available |
2898 |
- # so we cannot disable them |
2899 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
2900 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
2901 |
- if use thin; then |
2902 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
2903 |
- local texec |
2904 |
- for texec in check dump repair restore; do |
2905 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
2906 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
2907 |
- done |
2908 |
- else |
2909 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
2910 |
- fi |
2911 |
- |
2912 |
- if use lvm1; then |
2913 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
2914 |
- else |
2915 |
- myconf="${myconf} --with-lvm1=none" |
2916 |
- fi |
2917 |
- |
2918 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
2919 |
- use hppa && myconf="${myconf} --disable-o_direct" |
2920 |
- |
2921 |
- if use clvm; then |
2922 |
- myconf="${myconf} --with-cluster=${buildmode}" |
2923 |
- # 4-state! Make sure we get it right, per bug 210879 |
2924 |
- # Valid options are: none, cman, gulm, all |
2925 |
- # |
2926 |
- # 2009/02: |
2927 |
- # gulm is removed now, now dual-state: |
2928 |
- # cman, none |
2929 |
- # all still exists, but is not needed |
2930 |
- # |
2931 |
- # 2009/07: |
2932 |
- # TODO: add corosync and re-enable ALL |
2933 |
- local clvmd="" |
2934 |
- use cman && clvmd="cman" |
2935 |
- #clvmd="${clvmd/cmangulm/all}" |
2936 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
2937 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
2938 |
- [ -z "${clvmd}" ] && clvmd="none" |
2939 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
2940 |
- myconf="${myconf} --with-pool=${buildmode}" |
2941 |
- else |
2942 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
2943 |
- fi |
2944 |
- |
2945 |
- econf \ |
2946 |
- $(use_enable readline) \ |
2947 |
- $(use_enable selinux) \ |
2948 |
- --enable-pkgconfig \ |
2949 |
- --with-confdir="${EPREFIX}"/etc \ |
2950 |
- --exec-prefix="${EPREFIX}" \ |
2951 |
- --sbindir="${EPREFIX}/sbin" \ |
2952 |
- --with-staticdir="${EPREFIX}"/sbin \ |
2953 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
2954 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
2955 |
- --with-default-dm-run-dir=/run \ |
2956 |
- --with-default-run-dir=/run/lvm \ |
2957 |
- --with-default-locking-dir=/run/lock/lvm \ |
2958 |
- --with-default-pid-dir=/run \ |
2959 |
- $(use_enable udev udev_rules) \ |
2960 |
- $(use_enable udev udev_sync) \ |
2961 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
2962 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
2963 |
- "$(systemd_with_unitdir)" \ |
2964 |
- ${myconf} \ |
2965 |
- CLDFLAGS="${LDFLAGS}" |
2966 |
-} |
2967 |
- |
2968 |
-src_compile() { |
2969 |
- pushd include >/dev/null |
2970 |
- emake |
2971 |
- popd >/dev/null |
2972 |
- |
2973 |
- if use device-mapper-only ; then |
2974 |
- emake device-mapper |
2975 |
- else |
2976 |
- emake |
2977 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
2978 |
- fi |
2979 |
-} |
2980 |
- |
2981 |
-src_install() { |
2982 |
- local inst |
2983 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
2984 |
- # install systemd related files only when requested, bug #522430 |
2985 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
2986 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
2987 |
- for inst in ${INSTALL_TARGETS}; do |
2988 |
- emake DESTDIR="${D}" ${inst} |
2989 |
- done |
2990 |
- |
2991 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
2992 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
2993 |
- |
2994 |
- if use !device-mapper-only ; then |
2995 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
2996 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r6 lvm |
2997 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
2998 |
- |
2999 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
3000 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
3001 |
- fi |
3002 |
- |
3003 |
- if use clvm; then |
3004 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
3005 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
3006 |
- fi |
3007 |
- |
3008 |
- if use static-libs; then |
3009 |
- dolib.a libdm/ioctl/libdevmapper.a |
3010 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
3011 |
- #gen_usr_ldscript libdevmapper.so |
3012 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
3013 |
- #gen_usr_ldscript libdevmapper-event.so |
3014 |
- else |
3015 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
3016 |
- fi |
3017 |
- |
3018 |
- if use lvm2create_initrd; then |
3019 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
3020 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
3021 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
3022 |
- fi |
3023 |
- |
3024 |
- insinto /etc |
3025 |
- doins "${FILESDIR}"/dmtab |
3026 |
- |
3027 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
3028 |
-} |
3029 |
- |
3030 |
-pkg_postinst() { |
3031 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
3032 |
- ewarn "# rc-update add lvm boot" |
3033 |
- ewarn |
3034 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
3035 |
- ewarn "to enable lvm autoactivation and metadata caching." |
3036 |
-} |
3037 |
- |
3038 |
-src_test() { |
3039 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
3040 |
- einfo "run tests, compile the package and see ${S}/tests" |
3041 |
-} |
3042 |
|
3043 |
diff --git a/sys-fs/lvm2/lvm2-2.02.139.ebuild b/sys-fs/lvm2/lvm2-2.02.139.ebuild |
3044 |
deleted file mode 100644 |
3045 |
index 6c0d688e3f0..00000000000 |
3046 |
--- a/sys-fs/lvm2/lvm2-2.02.139.ebuild |
3047 |
+++ /dev/null |
3048 |
@@ -1,283 +0,0 @@ |
3049 |
-# Copyright 1999-2016 Gentoo Foundation |
3050 |
-# Distributed under the terms of the GNU General Public License v2 |
3051 |
- |
3052 |
-EAPI=5 |
3053 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
3054 |
- |
3055 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
3056 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
3057 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
3058 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
3059 |
- |
3060 |
-LICENSE="GPL-2" |
3061 |
-SLOT="0" |
3062 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
3063 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
3064 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
3065 |
- systemd? ( udev ) |
3066 |
- clvm? ( !systemd )" |
3067 |
- |
3068 |
-DEPEND_COMMON=" |
3069 |
- clvm? ( |
3070 |
- cman? ( =sys-cluster/cman-3* ) |
3071 |
- corosync? ( sys-cluster/corosync ) |
3072 |
- openais? ( sys-cluster/openais ) |
3073 |
- =sys-cluster/libdlm-3* |
3074 |
- ) |
3075 |
- |
3076 |
- readline? ( sys-libs/readline:0= ) |
3077 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
3078 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
3079 |
-# be available -- thus, pull in recent enough baselayout for /run. |
3080 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
3081 |
-RDEPEND="${DEPEND_COMMON} |
3082 |
- >=sys-apps/baselayout-2.2 |
3083 |
- !<sys-apps/openrc-0.11 |
3084 |
- !<sys-fs/cryptsetup-1.1.2 |
3085 |
- !!sys-fs/clvm |
3086 |
- !!sys-fs/lvm-user |
3087 |
- >=sys-apps/util-linux-2.16 |
3088 |
- lvm2create_initrd? ( sys-apps/makedev ) |
3089 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
3090 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
3091 |
-# USE 'static' currently only works with eudev, bug 520450 |
3092 |
-DEPEND="${DEPEND_COMMON} |
3093 |
- virtual/pkgconfig |
3094 |
- >=sys-devel/binutils-2.20.1-r1 |
3095 |
- static? ( |
3096 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
3097 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
3098 |
- >=sys-apps/util-linux-2.16[static-libs] |
3099 |
- )" |
3100 |
- |
3101 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
3102 |
- |
3103 |
-pkg_setup() { |
3104 |
- local CONFIG_CHECK="~SYSVIPC" |
3105 |
- |
3106 |
- if use udev; then |
3107 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
3108 |
- if linux_config_exists; then |
3109 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
3110 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
3111 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
3112 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
3113 |
- fi |
3114 |
- fi |
3115 |
- fi |
3116 |
- |
3117 |
- check_extra_config |
3118 |
- |
3119 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
3120 |
- if use static; then |
3121 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
3122 |
- elog "their static versions. If you need the static binaries," |
3123 |
- elog "you must append .static to the filename!" |
3124 |
- fi |
3125 |
-} |
3126 |
- |
3127 |
-src_prepare() { |
3128 |
- # Gentoo specific modification(s): |
3129 |
- epatch "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
3130 |
- |
3131 |
- sed -i \ |
3132 |
- -e "1iAR = $(tc-getAR)" \ |
3133 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
3134 |
- make.tmpl.in || die #444082 |
3135 |
- |
3136 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
3137 |
- |
3138 |
- if use udev && ! use device-mapper-only; then |
3139 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
3140 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
3141 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
3142 |
- elog "if it was previously disabled." |
3143 |
- fi |
3144 |
- |
3145 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
3146 |
- |
3147 |
- # For upstream -- review and forward: |
3148 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
3149 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
3150 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
3151 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
3152 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
3153 |
- epatch "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
3154 |
- epatch "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
3155 |
- epatch "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
3156 |
- |
3157 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
3158 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
3159 |
- |
3160 |
- eautoreconf |
3161 |
-} |
3162 |
- |
3163 |
-src_configure() { |
3164 |
- filter-flags -flto |
3165 |
- local myconf |
3166 |
- local buildmode |
3167 |
- |
3168 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
3169 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
3170 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
3171 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
3172 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
3173 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
3174 |
- |
3175 |
- # Most of this package does weird stuff. |
3176 |
- # The build options are tristate, and --without is NOT supported |
3177 |
- # options: 'none', 'internal', 'shared' |
3178 |
- if use static; then |
3179 |
- buildmode="internal" |
3180 |
- # This only causes the .static versions to become available |
3181 |
- myconf="${myconf} --enable-static_link" |
3182 |
- else |
3183 |
- buildmode="shared" |
3184 |
- fi |
3185 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
3186 |
- |
3187 |
- # dmeventd requires mirrors to be internal, and snapshot available |
3188 |
- # so we cannot disable them |
3189 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
3190 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
3191 |
- if use thin; then |
3192 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
3193 |
- local texec |
3194 |
- for texec in check dump repair restore; do |
3195 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
3196 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
3197 |
- done |
3198 |
- else |
3199 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
3200 |
- fi |
3201 |
- |
3202 |
- if use lvm1; then |
3203 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
3204 |
- else |
3205 |
- myconf="${myconf} --with-lvm1=none" |
3206 |
- fi |
3207 |
- |
3208 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
3209 |
- use hppa && myconf="${myconf} --disable-o_direct" |
3210 |
- |
3211 |
- if use clvm; then |
3212 |
- myconf="${myconf} --with-cluster=${buildmode}" |
3213 |
- # 4-state! Make sure we get it right, per bug 210879 |
3214 |
- # Valid options are: none, cman, gulm, all |
3215 |
- # |
3216 |
- # 2009/02: |
3217 |
- # gulm is removed now, now dual-state: |
3218 |
- # cman, none |
3219 |
- # all still exists, but is not needed |
3220 |
- # |
3221 |
- # 2009/07: |
3222 |
- # TODO: add corosync and re-enable ALL |
3223 |
- local clvmd="" |
3224 |
- use cman && clvmd="cman" |
3225 |
- #clvmd="${clvmd/cmangulm/all}" |
3226 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
3227 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
3228 |
- [ -z "${clvmd}" ] && clvmd="none" |
3229 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
3230 |
- myconf="${myconf} --with-pool=${buildmode}" |
3231 |
- else |
3232 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
3233 |
- fi |
3234 |
- |
3235 |
- econf \ |
3236 |
- $(use_enable readline) \ |
3237 |
- $(use_enable selinux) \ |
3238 |
- --enable-pkgconfig \ |
3239 |
- --with-confdir="${EPREFIX}"/etc \ |
3240 |
- --exec-prefix="${EPREFIX}" \ |
3241 |
- --sbindir="${EPREFIX}/sbin" \ |
3242 |
- --with-staticdir="${EPREFIX}"/sbin \ |
3243 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
3244 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
3245 |
- --with-default-dm-run-dir=/run \ |
3246 |
- --with-default-run-dir=/run/lvm \ |
3247 |
- --with-default-locking-dir=/run/lock/lvm \ |
3248 |
- --with-default-pid-dir=/run \ |
3249 |
- $(use_enable udev udev_rules) \ |
3250 |
- $(use_enable udev udev_sync) \ |
3251 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
3252 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
3253 |
- "$(systemd_with_unitdir)" \ |
3254 |
- ${myconf} \ |
3255 |
- CLDFLAGS="${LDFLAGS}" |
3256 |
-} |
3257 |
- |
3258 |
-src_compile() { |
3259 |
- pushd include >/dev/null |
3260 |
- emake |
3261 |
- popd >/dev/null |
3262 |
- |
3263 |
- if use device-mapper-only ; then |
3264 |
- emake device-mapper |
3265 |
- else |
3266 |
- emake |
3267 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
3268 |
- fi |
3269 |
-} |
3270 |
- |
3271 |
-src_install() { |
3272 |
- local inst |
3273 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
3274 |
- # install systemd related files only when requested, bug #522430 |
3275 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
3276 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
3277 |
- for inst in ${INSTALL_TARGETS}; do |
3278 |
- emake DESTDIR="${D}" ${inst} |
3279 |
- done |
3280 |
- |
3281 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
3282 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
3283 |
- |
3284 |
- if use !device-mapper-only ; then |
3285 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
3286 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
3287 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
3288 |
- |
3289 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
3290 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
3291 |
- fi |
3292 |
- |
3293 |
- if use clvm; then |
3294 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
3295 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
3296 |
- fi |
3297 |
- |
3298 |
- if use static-libs; then |
3299 |
- dolib.a libdm/ioctl/libdevmapper.a |
3300 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
3301 |
- #gen_usr_ldscript libdevmapper.so |
3302 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
3303 |
- #gen_usr_ldscript libdevmapper-event.so |
3304 |
- else |
3305 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
3306 |
- fi |
3307 |
- |
3308 |
- if use lvm2create_initrd; then |
3309 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
3310 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
3311 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
3312 |
- fi |
3313 |
- |
3314 |
- insinto /etc |
3315 |
- doins "${FILESDIR}"/dmtab |
3316 |
- |
3317 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
3318 |
-} |
3319 |
- |
3320 |
-pkg_postinst() { |
3321 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
3322 |
- ewarn "# rc-update add lvm boot" |
3323 |
- ewarn |
3324 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
3325 |
- ewarn "to enable lvm autoactivation and metadata caching." |
3326 |
-} |
3327 |
- |
3328 |
-src_test() { |
3329 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
3330 |
- einfo "run tests, compile the package and see ${S}/tests" |
3331 |
-} |
3332 |
|
3333 |
diff --git a/sys-fs/lvm2/lvm2-2.02.145-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.145-r1.ebuild |
3334 |
deleted file mode 100644 |
3335 |
index cb4b2497860..00000000000 |
3336 |
--- a/sys-fs/lvm2/lvm2-2.02.145-r1.ebuild |
3337 |
+++ /dev/null |
3338 |
@@ -1,288 +0,0 @@ |
3339 |
-# Copyright 1999-2016 Gentoo Foundation |
3340 |
-# Distributed under the terms of the GNU General Public License v2 |
3341 |
- |
3342 |
-EAPI=6 |
3343 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
3344 |
- |
3345 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
3346 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
3347 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
3348 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
3349 |
- |
3350 |
-LICENSE="GPL-2" |
3351 |
-SLOT="0" |
3352 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
3353 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
3354 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
3355 |
- systemd? ( udev ) |
3356 |
- clvm? ( !systemd )" |
3357 |
- |
3358 |
-DEPEND_COMMON=" |
3359 |
- clvm? ( |
3360 |
- cman? ( =sys-cluster/cman-3* ) |
3361 |
- corosync? ( sys-cluster/corosync ) |
3362 |
- openais? ( sys-cluster/openais ) |
3363 |
- =sys-cluster/libdlm-3* |
3364 |
- ) |
3365 |
- |
3366 |
- readline? ( sys-libs/readline:0= ) |
3367 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
3368 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
3369 |
-# be available -- thus, pull in recent enough baselayout for /run. |
3370 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
3371 |
-RDEPEND="${DEPEND_COMMON} |
3372 |
- >=sys-apps/baselayout-2.2 |
3373 |
- !<sys-apps/openrc-0.11 |
3374 |
- !<sys-fs/cryptsetup-1.1.2 |
3375 |
- !!sys-fs/clvm |
3376 |
- !!sys-fs/lvm-user |
3377 |
- >=sys-apps/util-linux-2.16 |
3378 |
- lvm2create_initrd? ( sys-apps/makedev ) |
3379 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
3380 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
3381 |
-# USE 'static' currently only works with eudev, bug 520450 |
3382 |
-DEPEND="${DEPEND_COMMON} |
3383 |
- virtual/pkgconfig |
3384 |
- >=sys-devel/binutils-2.20.1-r1 |
3385 |
- sys-devel/autoconf-archive |
3386 |
- static? ( |
3387 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
3388 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
3389 |
- >=sys-apps/util-linux-2.16[static-libs] |
3390 |
- )" |
3391 |
- |
3392 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
3393 |
- |
3394 |
-PATCHES=( |
3395 |
- # Gentoo specific modification(s): |
3396 |
- "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
3397 |
- |
3398 |
- # For upstream -- review and forward: |
3399 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
3400 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
3401 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
3402 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
3403 |
- "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
3404 |
- "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
3405 |
- "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
3406 |
- "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
3407 |
-) |
3408 |
- |
3409 |
-pkg_setup() { |
3410 |
- local CONFIG_CHECK="~SYSVIPC" |
3411 |
- |
3412 |
- if use udev; then |
3413 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
3414 |
- if linux_config_exists; then |
3415 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
3416 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
3417 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
3418 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
3419 |
- fi |
3420 |
- fi |
3421 |
- fi |
3422 |
- |
3423 |
- check_extra_config |
3424 |
- |
3425 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
3426 |
- if use static; then |
3427 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
3428 |
- elog "their static versions. If you need the static binaries," |
3429 |
- elog "you must append .static to the filename!" |
3430 |
- fi |
3431 |
-} |
3432 |
- |
3433 |
-src_prepare() { |
3434 |
- default |
3435 |
- |
3436 |
- sed -i \ |
3437 |
- -e "1iAR = $(tc-getAR)" \ |
3438 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
3439 |
- make.tmpl.in || die #444082 |
3440 |
- |
3441 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
3442 |
- |
3443 |
- if use udev && ! use device-mapper-only; then |
3444 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
3445 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
3446 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
3447 |
- elog "if it was previously disabled." |
3448 |
- fi |
3449 |
- |
3450 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
3451 |
- |
3452 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
3453 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
3454 |
- |
3455 |
- eautoreconf |
3456 |
-} |
3457 |
- |
3458 |
-src_configure() { |
3459 |
- filter-flags -flto |
3460 |
- local myconf=() |
3461 |
- local buildmode |
3462 |
- |
3463 |
- myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
3464 |
- myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
3465 |
- myconf+=( $(use_enable !device-mapper-only applib) ) |
3466 |
- myconf+=( $(use_enable !device-mapper-only fsadm) ) |
3467 |
- myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
3468 |
- use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
3469 |
- |
3470 |
- # Most of this package does weird stuff. |
3471 |
- # The build options are tristate, and --without is NOT supported |
3472 |
- # options: 'none', 'internal', 'shared' |
3473 |
- if use static; then |
3474 |
- buildmode="internal" |
3475 |
- # This only causes the .static versions to become available |
3476 |
- myconf+=( --enable-static_link ) |
3477 |
- else |
3478 |
- buildmode="shared" |
3479 |
- fi |
3480 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
3481 |
- |
3482 |
- # dmeventd requires mirrors to be internal, and snapshot available |
3483 |
- # so we cannot disable them |
3484 |
- myconf+=( --with-mirrors=${dmbuildmode} ) |
3485 |
- myconf+=( --with-snapshots=${dmbuildmode} ) |
3486 |
- if use thin; then |
3487 |
- myconf+=( --with-thin=internal --with-cache=internal ) |
3488 |
- local texec |
3489 |
- for texec in check dump repair restore; do |
3490 |
- myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
3491 |
- myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
3492 |
- done |
3493 |
- else |
3494 |
- myconf+=( --with-thin=none --with-cache=none ) |
3495 |
- fi |
3496 |
- |
3497 |
- if use lvm1; then |
3498 |
- myconf+=( --with-lvm1=${buildmode} ) |
3499 |
- else |
3500 |
- myconf+=( --with-lvm1=none ) |
3501 |
- fi |
3502 |
- |
3503 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
3504 |
- use hppa && myconf+=( --disable-o_direct ) |
3505 |
- |
3506 |
- if use clvm; then |
3507 |
- myconf+=( --with-cluster=${buildmode} ) |
3508 |
- # 4-state! Make sure we get it right, per bug 210879 |
3509 |
- # Valid options are: none, cman, gulm, all |
3510 |
- # |
3511 |
- # 2009/02: |
3512 |
- # gulm is removed now, now dual-state: |
3513 |
- # cman, none |
3514 |
- # all still exists, but is not needed |
3515 |
- # |
3516 |
- # 2009/07: |
3517 |
- # TODO: add corosync and re-enable ALL |
3518 |
- local clvmd="" |
3519 |
- use cman && clvmd="cman" |
3520 |
- #clvmd="${clvmd/cmangulm/all}" |
3521 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
3522 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
3523 |
- [ -z "${clvmd}" ] && clvmd="none" |
3524 |
- myconf+=( --with-clvmd=${clvmd} ) |
3525 |
- myconf+=( --with-pool=${buildmode} ) |
3526 |
- else |
3527 |
- myconf+=( --with-clvmd=none --with-cluster=none ) |
3528 |
- fi |
3529 |
- |
3530 |
- econf \ |
3531 |
- $(use_enable readline) \ |
3532 |
- $(use_enable selinux) \ |
3533 |
- --enable-pkgconfig \ |
3534 |
- --with-confdir="${EPREFIX}"/etc \ |
3535 |
- --exec-prefix="${EPREFIX}" \ |
3536 |
- --sbindir="${EPREFIX}/sbin" \ |
3537 |
- --with-staticdir="${EPREFIX}"/sbin \ |
3538 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
3539 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
3540 |
- --with-default-dm-run-dir=/run \ |
3541 |
- --with-default-run-dir=/run/lvm \ |
3542 |
- --with-default-locking-dir=/run/lock/lvm \ |
3543 |
- --with-default-pid-dir=/run \ |
3544 |
- $(use_enable udev udev_rules) \ |
3545 |
- $(use_enable udev udev_sync) \ |
3546 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
3547 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
3548 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
3549 |
- ${myconf[@]} \ |
3550 |
- CLDFLAGS="${LDFLAGS}" |
3551 |
-} |
3552 |
- |
3553 |
-src_compile() { |
3554 |
- pushd include >/dev/null |
3555 |
- emake |
3556 |
- popd >/dev/null |
3557 |
- |
3558 |
- if use device-mapper-only ; then |
3559 |
- emake device-mapper |
3560 |
- else |
3561 |
- emake |
3562 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
3563 |
- fi |
3564 |
-} |
3565 |
- |
3566 |
-src_install() { |
3567 |
- local inst |
3568 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
3569 |
- # install systemd related files only when requested, bug #522430 |
3570 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
3571 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
3572 |
- for inst in ${INSTALL_TARGETS}; do |
3573 |
- emake DESTDIR="${D}" ${inst} |
3574 |
- done |
3575 |
- |
3576 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
3577 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
3578 |
- |
3579 |
- if use !device-mapper-only ; then |
3580 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
3581 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
3582 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
3583 |
- |
3584 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
3585 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
3586 |
- fi |
3587 |
- |
3588 |
- if use clvm; then |
3589 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
3590 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
3591 |
- fi |
3592 |
- |
3593 |
- if use static-libs; then |
3594 |
- dolib.a libdm/ioctl/libdevmapper.a |
3595 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
3596 |
- #gen_usr_ldscript libdevmapper.so |
3597 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
3598 |
- #gen_usr_ldscript libdevmapper-event.so |
3599 |
- else |
3600 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
3601 |
- fi |
3602 |
- |
3603 |
- if use lvm2create_initrd; then |
3604 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
3605 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
3606 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
3607 |
- fi |
3608 |
- |
3609 |
- insinto /etc |
3610 |
- doins "${FILESDIR}"/dmtab |
3611 |
- |
3612 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
3613 |
-} |
3614 |
- |
3615 |
-pkg_postinst() { |
3616 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
3617 |
- ewarn "# rc-update add lvm boot" |
3618 |
- ewarn |
3619 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
3620 |
- ewarn "to enable lvm autoactivation and metadata caching." |
3621 |
-} |
3622 |
- |
3623 |
-src_test() { |
3624 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
3625 |
- einfo "run tests, compile the package and see ${S}/tests" |
3626 |
-} |
3627 |
|
3628 |
diff --git a/sys-fs/lvm2/lvm2-2.02.145.ebuild b/sys-fs/lvm2/lvm2-2.02.145.ebuild |
3629 |
deleted file mode 100644 |
3630 |
index 342b7c91066..00000000000 |
3631 |
--- a/sys-fs/lvm2/lvm2-2.02.145.ebuild |
3632 |
+++ /dev/null |
3633 |
@@ -1,284 +0,0 @@ |
3634 |
-# Copyright 1999-2016 Gentoo Foundation |
3635 |
-# Distributed under the terms of the GNU General Public License v2 |
3636 |
- |
3637 |
-EAPI=5 |
3638 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
3639 |
- |
3640 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
3641 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
3642 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
3643 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
3644 |
- |
3645 |
-LICENSE="GPL-2" |
3646 |
-SLOT="0" |
3647 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
3648 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
3649 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
3650 |
- systemd? ( udev ) |
3651 |
- clvm? ( !systemd )" |
3652 |
- |
3653 |
-DEPEND_COMMON=" |
3654 |
- clvm? ( |
3655 |
- cman? ( =sys-cluster/cman-3* ) |
3656 |
- corosync? ( sys-cluster/corosync ) |
3657 |
- openais? ( sys-cluster/openais ) |
3658 |
- =sys-cluster/libdlm-3* |
3659 |
- ) |
3660 |
- |
3661 |
- readline? ( sys-libs/readline:0= ) |
3662 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
3663 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
3664 |
-# be available -- thus, pull in recent enough baselayout for /run. |
3665 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
3666 |
-RDEPEND="${DEPEND_COMMON} |
3667 |
- >=sys-apps/baselayout-2.2 |
3668 |
- !<sys-apps/openrc-0.11 |
3669 |
- !<sys-fs/cryptsetup-1.1.2 |
3670 |
- !!sys-fs/clvm |
3671 |
- !!sys-fs/lvm-user |
3672 |
- >=sys-apps/util-linux-2.16 |
3673 |
- lvm2create_initrd? ( sys-apps/makedev ) |
3674 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
3675 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
3676 |
-# USE 'static' currently only works with eudev, bug 520450 |
3677 |
-DEPEND="${DEPEND_COMMON} |
3678 |
- virtual/pkgconfig |
3679 |
- >=sys-devel/binutils-2.20.1-r1 |
3680 |
- sys-devel/autoconf-archive |
3681 |
- static? ( |
3682 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
3683 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
3684 |
- >=sys-apps/util-linux-2.16[static-libs] |
3685 |
- )" |
3686 |
- |
3687 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
3688 |
- |
3689 |
-pkg_setup() { |
3690 |
- local CONFIG_CHECK="~SYSVIPC" |
3691 |
- |
3692 |
- if use udev; then |
3693 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
3694 |
- if linux_config_exists; then |
3695 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
3696 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
3697 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
3698 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
3699 |
- fi |
3700 |
- fi |
3701 |
- fi |
3702 |
- |
3703 |
- check_extra_config |
3704 |
- |
3705 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
3706 |
- if use static; then |
3707 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
3708 |
- elog "their static versions. If you need the static binaries," |
3709 |
- elog "you must append .static to the filename!" |
3710 |
- fi |
3711 |
-} |
3712 |
- |
3713 |
-src_prepare() { |
3714 |
- # Gentoo specific modification(s): |
3715 |
- epatch "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
3716 |
- |
3717 |
- sed -i \ |
3718 |
- -e "1iAR = $(tc-getAR)" \ |
3719 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
3720 |
- make.tmpl.in || die #444082 |
3721 |
- |
3722 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
3723 |
- |
3724 |
- if use udev && ! use device-mapper-only; then |
3725 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
3726 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
3727 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
3728 |
- elog "if it was previously disabled." |
3729 |
- fi |
3730 |
- |
3731 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
3732 |
- |
3733 |
- # For upstream -- review and forward: |
3734 |
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
3735 |
- epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
3736 |
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
3737 |
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
3738 |
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
3739 |
- epatch "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
3740 |
- epatch "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
3741 |
- epatch "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
3742 |
- |
3743 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
3744 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
3745 |
- |
3746 |
- eautoreconf |
3747 |
-} |
3748 |
- |
3749 |
-src_configure() { |
3750 |
- filter-flags -flto |
3751 |
- local myconf |
3752 |
- local buildmode |
3753 |
- |
3754 |
- myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" |
3755 |
- myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" |
3756 |
- myconf="${myconf} $(use_enable !device-mapper-only applib)" |
3757 |
- myconf="${myconf} $(use_enable !device-mapper-only fsadm)" |
3758 |
- myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" |
3759 |
- use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" |
3760 |
- |
3761 |
- # Most of this package does weird stuff. |
3762 |
- # The build options are tristate, and --without is NOT supported |
3763 |
- # options: 'none', 'internal', 'shared' |
3764 |
- if use static; then |
3765 |
- buildmode="internal" |
3766 |
- # This only causes the .static versions to become available |
3767 |
- myconf="${myconf} --enable-static_link" |
3768 |
- else |
3769 |
- buildmode="shared" |
3770 |
- fi |
3771 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
3772 |
- |
3773 |
- # dmeventd requires mirrors to be internal, and snapshot available |
3774 |
- # so we cannot disable them |
3775 |
- myconf="${myconf} --with-mirrors=${dmbuildmode}" |
3776 |
- myconf="${myconf} --with-snapshots=${dmbuildmode}" |
3777 |
- if use thin; then |
3778 |
- myconf="${myconf} --with-thin=internal --with-cache=internal" |
3779 |
- local texec |
3780 |
- for texec in check dump repair restore; do |
3781 |
- myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" |
3782 |
- myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" |
3783 |
- done |
3784 |
- else |
3785 |
- myconf="${myconf} --with-thin=none --with-cache=none" |
3786 |
- fi |
3787 |
- |
3788 |
- if use lvm1; then |
3789 |
- myconf="${myconf} --with-lvm1=${buildmode}" |
3790 |
- else |
3791 |
- myconf="${myconf} --with-lvm1=none" |
3792 |
- fi |
3793 |
- |
3794 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
3795 |
- use hppa && myconf="${myconf} --disable-o_direct" |
3796 |
- |
3797 |
- if use clvm; then |
3798 |
- myconf="${myconf} --with-cluster=${buildmode}" |
3799 |
- # 4-state! Make sure we get it right, per bug 210879 |
3800 |
- # Valid options are: none, cman, gulm, all |
3801 |
- # |
3802 |
- # 2009/02: |
3803 |
- # gulm is removed now, now dual-state: |
3804 |
- # cman, none |
3805 |
- # all still exists, but is not needed |
3806 |
- # |
3807 |
- # 2009/07: |
3808 |
- # TODO: add corosync and re-enable ALL |
3809 |
- local clvmd="" |
3810 |
- use cman && clvmd="cman" |
3811 |
- #clvmd="${clvmd/cmangulm/all}" |
3812 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
3813 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
3814 |
- [ -z "${clvmd}" ] && clvmd="none" |
3815 |
- myconf="${myconf} --with-clvmd=${clvmd}" |
3816 |
- myconf="${myconf} --with-pool=${buildmode}" |
3817 |
- else |
3818 |
- myconf="${myconf} --with-clvmd=none --with-cluster=none" |
3819 |
- fi |
3820 |
- |
3821 |
- econf \ |
3822 |
- $(use_enable readline) \ |
3823 |
- $(use_enable selinux) \ |
3824 |
- --enable-pkgconfig \ |
3825 |
- --with-confdir="${EPREFIX}"/etc \ |
3826 |
- --exec-prefix="${EPREFIX}" \ |
3827 |
- --sbindir="${EPREFIX}/sbin" \ |
3828 |
- --with-staticdir="${EPREFIX}"/sbin \ |
3829 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
3830 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
3831 |
- --with-default-dm-run-dir=/run \ |
3832 |
- --with-default-run-dir=/run/lvm \ |
3833 |
- --with-default-locking-dir=/run/lock/lvm \ |
3834 |
- --with-default-pid-dir=/run \ |
3835 |
- $(use_enable udev udev_rules) \ |
3836 |
- $(use_enable udev udev_sync) \ |
3837 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
3838 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
3839 |
- "$(systemd_with_unitdir)" \ |
3840 |
- ${myconf} \ |
3841 |
- CLDFLAGS="${LDFLAGS}" |
3842 |
-} |
3843 |
- |
3844 |
-src_compile() { |
3845 |
- pushd include >/dev/null |
3846 |
- emake |
3847 |
- popd >/dev/null |
3848 |
- |
3849 |
- if use device-mapper-only ; then |
3850 |
- emake device-mapper |
3851 |
- else |
3852 |
- emake |
3853 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
3854 |
- fi |
3855 |
-} |
3856 |
- |
3857 |
-src_install() { |
3858 |
- local inst |
3859 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
3860 |
- # install systemd related files only when requested, bug #522430 |
3861 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
3862 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
3863 |
- for inst in ${INSTALL_TARGETS}; do |
3864 |
- emake DESTDIR="${D}" ${inst} |
3865 |
- done |
3866 |
- |
3867 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
3868 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
3869 |
- |
3870 |
- if use !device-mapper-only ; then |
3871 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
3872 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm |
3873 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
3874 |
- |
3875 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
3876 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad |
3877 |
- fi |
3878 |
- |
3879 |
- if use clvm; then |
3880 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
3881 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
3882 |
- fi |
3883 |
- |
3884 |
- if use static-libs; then |
3885 |
- dolib.a libdm/ioctl/libdevmapper.a |
3886 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
3887 |
- #gen_usr_ldscript libdevmapper.so |
3888 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
3889 |
- #gen_usr_ldscript libdevmapper-event.so |
3890 |
- else |
3891 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
3892 |
- fi |
3893 |
- |
3894 |
- if use lvm2create_initrd; then |
3895 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
3896 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
3897 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
3898 |
- fi |
3899 |
- |
3900 |
- insinto /etc |
3901 |
- doins "${FILESDIR}"/dmtab |
3902 |
- |
3903 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
3904 |
-} |
3905 |
- |
3906 |
-pkg_postinst() { |
3907 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
3908 |
- ewarn "# rc-update add lvm boot" |
3909 |
- ewarn |
3910 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
3911 |
- ewarn "to enable lvm autoactivation and metadata caching." |
3912 |
-} |
3913 |
- |
3914 |
-src_test() { |
3915 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
3916 |
- einfo "run tests, compile the package and see ${S}/tests" |
3917 |
-} |
3918 |
|
3919 |
diff --git a/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild |
3920 |
deleted file mode 100644 |
3921 |
index 52adb6bb332..00000000000 |
3922 |
--- a/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild |
3923 |
+++ /dev/null |
3924 |
@@ -1,298 +0,0 @@ |
3925 |
-# Copyright 1999-2018 Gentoo Foundation |
3926 |
-# Distributed under the terms of the GNU General Public License v2 |
3927 |
- |
3928 |
-EAPI=6 |
3929 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
3930 |
- |
3931 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
3932 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
3933 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
3934 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
3935 |
- |
3936 |
-LICENSE="GPL-2" |
3937 |
-SLOT="0" |
3938 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
3939 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais sanlock selinux +udev +thin device-mapper-only" |
3940 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !sanlock !thin ) |
3941 |
- systemd? ( udev ) |
3942 |
- clvm? ( !systemd )" |
3943 |
- |
3944 |
-DEPEND_COMMON=" |
3945 |
- clvm? ( |
3946 |
- cman? ( =sys-cluster/cman-3* ) |
3947 |
- corosync? ( sys-cluster/corosync ) |
3948 |
- openais? ( sys-cluster/openais ) |
3949 |
- =sys-cluster/libdlm-3* |
3950 |
- ) |
3951 |
- |
3952 |
- readline? ( sys-libs/readline:0= ) |
3953 |
- sanlock? ( sys-cluster/sanlock ) |
3954 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
3955 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
3956 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
3957 |
-# be available -- thus, pull in recent enough baselayout for /run. |
3958 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
3959 |
-RDEPEND="${DEPEND_COMMON} |
3960 |
- >=sys-apps/baselayout-2.2 |
3961 |
- !<sys-apps/openrc-0.11 |
3962 |
- !<sys-fs/cryptsetup-1.1.2 |
3963 |
- !!sys-fs/clvm |
3964 |
- !!sys-fs/lvm-user |
3965 |
- >=sys-apps/util-linux-2.16 |
3966 |
- lvm2create_initrd? ( sys-apps/makedev ) |
3967 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
3968 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
3969 |
-# USE 'static' currently only works with eudev, bug 520450 |
3970 |
-DEPEND="${DEPEND_COMMON} |
3971 |
- virtual/pkgconfig |
3972 |
- >=sys-devel/binutils-2.20.1-r1 |
3973 |
- sys-devel/autoconf-archive |
3974 |
- static? ( |
3975 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
3976 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
3977 |
- >=sys-apps/util-linux-2.16[static-libs] |
3978 |
- )" |
3979 |
- |
3980 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
3981 |
- |
3982 |
-PATCHES=( |
3983 |
- # Gentoo specific modification(s): |
3984 |
- "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
3985 |
- |
3986 |
- # For upstream -- review and forward: |
3987 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
3988 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
3989 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
3990 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
3991 |
- "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
3992 |
- "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
3993 |
- "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
3994 |
- "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
3995 |
- "${FILESDIR}"/${PN}-2.02.166-HPPA-no-O_DIRECT.patch #657446 |
3996 |
- #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
3997 |
-) |
3998 |
- |
3999 |
-pkg_setup() { |
4000 |
- local CONFIG_CHECK="~SYSVIPC" |
4001 |
- |
4002 |
- if use udev; then |
4003 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
4004 |
- if linux_config_exists; then |
4005 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
4006 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
4007 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
4008 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
4009 |
- fi |
4010 |
- fi |
4011 |
- fi |
4012 |
- |
4013 |
- check_extra_config |
4014 |
- |
4015 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
4016 |
- if use static; then |
4017 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
4018 |
- elog "their static versions. If you need the static binaries," |
4019 |
- elog "you must append .static to the filename!" |
4020 |
- fi |
4021 |
-} |
4022 |
- |
4023 |
-src_prepare() { |
4024 |
- default |
4025 |
- |
4026 |
- sed -i \ |
4027 |
- -e "1iAR = $(tc-getAR)" \ |
4028 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
4029 |
- make.tmpl.in || die #444082 |
4030 |
- |
4031 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
4032 |
- |
4033 |
- if use udev && ! use device-mapper-only; then |
4034 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
4035 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
4036 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
4037 |
- elog "if it was previously disabled." |
4038 |
- fi |
4039 |
- |
4040 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
4041 |
- |
4042 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
4043 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
4044 |
- |
4045 |
- eautoreconf |
4046 |
-} |
4047 |
- |
4048 |
-src_configure() { |
4049 |
- filter-flags -flto |
4050 |
- local myconf=() |
4051 |
- local buildmode |
4052 |
- |
4053 |
- myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
4054 |
- myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
4055 |
- myconf+=( $(use_enable !device-mapper-only applib) ) |
4056 |
- myconf+=( $(use_enable !device-mapper-only fsadm) ) |
4057 |
- myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
4058 |
- use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
4059 |
- |
4060 |
- # Most of this package does weird stuff. |
4061 |
- # The build options are tristate, and --without is NOT supported |
4062 |
- # options: 'none', 'internal', 'shared' |
4063 |
- if use static; then |
4064 |
- buildmode="internal" |
4065 |
- # This only causes the .static versions to become available |
4066 |
- myconf+=( --enable-static_link ) |
4067 |
- else |
4068 |
- buildmode="shared" |
4069 |
- fi |
4070 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
4071 |
- |
4072 |
- # dmeventd requires mirrors to be internal, and snapshot available |
4073 |
- # so we cannot disable them |
4074 |
- myconf+=( --with-mirrors=${dmbuildmode} ) |
4075 |
- myconf+=( --with-snapshots=${dmbuildmode} ) |
4076 |
- if use thin; then |
4077 |
- myconf+=( --with-thin=internal --with-cache=internal ) |
4078 |
- local texec |
4079 |
- for texec in check dump repair restore; do |
4080 |
- myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
4081 |
- myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
4082 |
- done |
4083 |
- else |
4084 |
- myconf+=( --with-thin=none --with-cache=none ) |
4085 |
- fi |
4086 |
- |
4087 |
- if use lvm1; then |
4088 |
- myconf+=( --with-lvm1=${buildmode} ) |
4089 |
- else |
4090 |
- myconf+=( --with-lvm1=none ) |
4091 |
- fi |
4092 |
- |
4093 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
4094 |
- use hppa && myconf+=( --disable-o_direct ) |
4095 |
- |
4096 |
- if use clvm; then |
4097 |
- myconf+=( --with-cluster=${buildmode} ) |
4098 |
- # 4-state! Make sure we get it right, per bug 210879 |
4099 |
- # Valid options are: none, cman, gulm, all |
4100 |
- # |
4101 |
- # 2009/02: |
4102 |
- # gulm is removed now, now dual-state: |
4103 |
- # cman, none |
4104 |
- # all still exists, but is not needed |
4105 |
- # |
4106 |
- # 2009/07: |
4107 |
- # TODO: add corosync and re-enable ALL |
4108 |
- local clvmd="" |
4109 |
- use cman && clvmd="cman" |
4110 |
- #clvmd="${clvmd/cmangulm/all}" |
4111 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
4112 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
4113 |
- [ -z "${clvmd}" ] && clvmd="none" |
4114 |
- myconf+=( --with-clvmd=${clvmd} ) |
4115 |
- myconf+=( --with-pool=${buildmode} ) |
4116 |
- |
4117 |
- else |
4118 |
- myconf+=( --with-clvmd=none --with-cluster=none ) |
4119 |
- fi |
4120 |
- |
4121 |
- econf \ |
4122 |
- $(use_enable readline) \ |
4123 |
- $(use_enable selinux) \ |
4124 |
- --enable-pkgconfig \ |
4125 |
- --with-confdir="${EPREFIX}"/etc \ |
4126 |
- --exec-prefix="${EPREFIX}" \ |
4127 |
- --sbindir="${EPREFIX}/sbin" \ |
4128 |
- --with-staticdir="${EPREFIX}"/sbin \ |
4129 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
4130 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
4131 |
- --with-default-dm-run-dir=/run \ |
4132 |
- --with-default-run-dir=/run/lvm \ |
4133 |
- --with-default-locking-dir=/run/lock/lvm \ |
4134 |
- --with-default-pid-dir=/run \ |
4135 |
- $(use_enable udev udev_rules) \ |
4136 |
- $(use_enable udev udev_sync) \ |
4137 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
4138 |
- $(use_enable sanlock lockd-sanlock) \ |
4139 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
4140 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
4141 |
- ${myconf[@]} \ |
4142 |
- CLDFLAGS="${LDFLAGS}" |
4143 |
-} |
4144 |
- |
4145 |
-src_compile() { |
4146 |
- pushd include >/dev/null |
4147 |
- emake |
4148 |
- popd >/dev/null |
4149 |
- |
4150 |
- if use device-mapper-only ; then |
4151 |
- emake device-mapper |
4152 |
- else |
4153 |
- emake |
4154 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
4155 |
- fi |
4156 |
-} |
4157 |
- |
4158 |
-src_install() { |
4159 |
- local inst |
4160 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
4161 |
- # install systemd related files only when requested, bug #522430 |
4162 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
4163 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
4164 |
- for inst in ${INSTALL_TARGETS}; do |
4165 |
- emake DESTDIR="${D}" ${inst} |
4166 |
- done |
4167 |
- |
4168 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
4169 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
4170 |
- |
4171 |
- if use !device-mapper-only ; then |
4172 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
4173 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.166-r2 lvm |
4174 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
4175 |
- |
4176 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
4177 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
4178 |
- fi |
4179 |
- |
4180 |
- if use sanlock; then |
4181 |
- newinitd "${FILESDIR}"/lvmlockd.initd-2.02.166-r1 lvmlockd |
4182 |
- fi |
4183 |
- |
4184 |
- if use clvm; then |
4185 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
4186 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
4187 |
- fi |
4188 |
- |
4189 |
- if use static-libs; then |
4190 |
- dolib.a libdm/ioctl/libdevmapper.a |
4191 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
4192 |
- #gen_usr_ldscript libdevmapper.so |
4193 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
4194 |
- #gen_usr_ldscript libdevmapper-event.so |
4195 |
- else |
4196 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
4197 |
- fi |
4198 |
- |
4199 |
- if use lvm2create_initrd; then |
4200 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
4201 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
4202 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
4203 |
- fi |
4204 |
- |
4205 |
- insinto /etc |
4206 |
- doins "${FILESDIR}"/dmtab |
4207 |
- |
4208 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
4209 |
-} |
4210 |
- |
4211 |
-pkg_postinst() { |
4212 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
4213 |
- ewarn "# rc-update add lvm boot" |
4214 |
- ewarn |
4215 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
4216 |
- ewarn "to enable lvm autoactivation and metadata caching." |
4217 |
-} |
4218 |
- |
4219 |
-src_test() { |
4220 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
4221 |
- einfo "run tests, compile the package and see ${S}/tests" |
4222 |
-} |
4223 |
|
4224 |
diff --git a/sys-fs/lvm2/lvm2-2.02.166.ebuild b/sys-fs/lvm2/lvm2-2.02.166.ebuild |
4225 |
deleted file mode 100644 |
4226 |
index b8cb4920dfd..00000000000 |
4227 |
--- a/sys-fs/lvm2/lvm2-2.02.166.ebuild |
4228 |
+++ /dev/null |
4229 |
@@ -1,291 +0,0 @@ |
4230 |
-# Copyright 1999-2018 Gentoo Foundation |
4231 |
-# Distributed under the terms of the GNU General Public License v2 |
4232 |
- |
4233 |
-EAPI=6 |
4234 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
4235 |
- |
4236 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
4237 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
4238 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
4239 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
4240 |
- |
4241 |
-LICENSE="GPL-2" |
4242 |
-SLOT="0" |
4243 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
4244 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais selinux +udev +thin device-mapper-only" |
4245 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !thin ) |
4246 |
- systemd? ( udev ) |
4247 |
- clvm? ( !systemd )" |
4248 |
- |
4249 |
-DEPEND_COMMON=" |
4250 |
- clvm? ( |
4251 |
- cman? ( =sys-cluster/cman-3* ) |
4252 |
- corosync? ( sys-cluster/corosync ) |
4253 |
- openais? ( sys-cluster/openais ) |
4254 |
- =sys-cluster/libdlm-3* |
4255 |
- ) |
4256 |
- |
4257 |
- readline? ( sys-libs/readline:0= ) |
4258 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
4259 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
4260 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
4261 |
-# be available -- thus, pull in recent enough baselayout for /run. |
4262 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
4263 |
-RDEPEND="${DEPEND_COMMON} |
4264 |
- >=sys-apps/baselayout-2.2 |
4265 |
- !<sys-apps/openrc-0.11 |
4266 |
- !<sys-fs/cryptsetup-1.1.2 |
4267 |
- !!sys-fs/clvm |
4268 |
- !!sys-fs/lvm-user |
4269 |
- >=sys-apps/util-linux-2.16 |
4270 |
- lvm2create_initrd? ( sys-apps/makedev ) |
4271 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
4272 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
4273 |
-# USE 'static' currently only works with eudev, bug 520450 |
4274 |
-DEPEND="${DEPEND_COMMON} |
4275 |
- virtual/pkgconfig |
4276 |
- >=sys-devel/binutils-2.20.1-r1 |
4277 |
- sys-devel/autoconf-archive |
4278 |
- static? ( |
4279 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
4280 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
4281 |
- >=sys-apps/util-linux-2.16[static-libs] |
4282 |
- )" |
4283 |
- |
4284 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
4285 |
- |
4286 |
-PATCHES=( |
4287 |
- # Gentoo specific modification(s): |
4288 |
- "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
4289 |
- |
4290 |
- # For upstream -- review and forward: |
4291 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
4292 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
4293 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
4294 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
4295 |
- "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
4296 |
- "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
4297 |
- "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
4298 |
- "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
4299 |
- "${FILESDIR}"/${PN}-2.02.166-HPPA-no-O_DIRECT.patch #657446 |
4300 |
- #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
4301 |
-) |
4302 |
- |
4303 |
-pkg_setup() { |
4304 |
- local CONFIG_CHECK="~SYSVIPC" |
4305 |
- |
4306 |
- if use udev; then |
4307 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
4308 |
- if linux_config_exists; then |
4309 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
4310 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
4311 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
4312 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
4313 |
- fi |
4314 |
- fi |
4315 |
- fi |
4316 |
- |
4317 |
- check_extra_config |
4318 |
- |
4319 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
4320 |
- if use static; then |
4321 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
4322 |
- elog "their static versions. If you need the static binaries," |
4323 |
- elog "you must append .static to the filename!" |
4324 |
- fi |
4325 |
-} |
4326 |
- |
4327 |
-src_prepare() { |
4328 |
- default |
4329 |
- |
4330 |
- sed -i \ |
4331 |
- -e "1iAR = $(tc-getAR)" \ |
4332 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
4333 |
- make.tmpl.in || die #444082 |
4334 |
- |
4335 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
4336 |
- |
4337 |
- if use udev && ! use device-mapper-only; then |
4338 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
4339 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
4340 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
4341 |
- elog "if it was previously disabled." |
4342 |
- fi |
4343 |
- |
4344 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
4345 |
- |
4346 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
4347 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
4348 |
- |
4349 |
- eautoreconf |
4350 |
-} |
4351 |
- |
4352 |
-src_configure() { |
4353 |
- filter-flags -flto |
4354 |
- local myconf=() |
4355 |
- local buildmode |
4356 |
- |
4357 |
- myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
4358 |
- myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
4359 |
- myconf+=( $(use_enable !device-mapper-only applib) ) |
4360 |
- myconf+=( $(use_enable !device-mapper-only fsadm) ) |
4361 |
- myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
4362 |
- use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
4363 |
- |
4364 |
- # Most of this package does weird stuff. |
4365 |
- # The build options are tristate, and --without is NOT supported |
4366 |
- # options: 'none', 'internal', 'shared' |
4367 |
- if use static; then |
4368 |
- buildmode="internal" |
4369 |
- # This only causes the .static versions to become available |
4370 |
- myconf+=( --enable-static_link ) |
4371 |
- else |
4372 |
- buildmode="shared" |
4373 |
- fi |
4374 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
4375 |
- |
4376 |
- # dmeventd requires mirrors to be internal, and snapshot available |
4377 |
- # so we cannot disable them |
4378 |
- myconf+=( --with-mirrors=${dmbuildmode} ) |
4379 |
- myconf+=( --with-snapshots=${dmbuildmode} ) |
4380 |
- if use thin; then |
4381 |
- myconf+=( --with-thin=internal --with-cache=internal ) |
4382 |
- local texec |
4383 |
- for texec in check dump repair restore; do |
4384 |
- myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
4385 |
- myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
4386 |
- done |
4387 |
- else |
4388 |
- myconf+=( --with-thin=none --with-cache=none ) |
4389 |
- fi |
4390 |
- |
4391 |
- if use lvm1; then |
4392 |
- myconf+=( --with-lvm1=${buildmode} ) |
4393 |
- else |
4394 |
- myconf+=( --with-lvm1=none ) |
4395 |
- fi |
4396 |
- |
4397 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
4398 |
- use hppa && myconf+=( --disable-o_direct ) |
4399 |
- |
4400 |
- if use clvm; then |
4401 |
- myconf+=( --with-cluster=${buildmode} ) |
4402 |
- # 4-state! Make sure we get it right, per bug 210879 |
4403 |
- # Valid options are: none, cman, gulm, all |
4404 |
- # |
4405 |
- # 2009/02: |
4406 |
- # gulm is removed now, now dual-state: |
4407 |
- # cman, none |
4408 |
- # all still exists, but is not needed |
4409 |
- # |
4410 |
- # 2009/07: |
4411 |
- # TODO: add corosync and re-enable ALL |
4412 |
- local clvmd="" |
4413 |
- use cman && clvmd="cman" |
4414 |
- #clvmd="${clvmd/cmangulm/all}" |
4415 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
4416 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
4417 |
- [ -z "${clvmd}" ] && clvmd="none" |
4418 |
- myconf+=( --with-clvmd=${clvmd} ) |
4419 |
- myconf+=( --with-pool=${buildmode} ) |
4420 |
- else |
4421 |
- myconf+=( --with-clvmd=none --with-cluster=none ) |
4422 |
- fi |
4423 |
- |
4424 |
- econf \ |
4425 |
- $(use_enable readline) \ |
4426 |
- $(use_enable selinux) \ |
4427 |
- --enable-pkgconfig \ |
4428 |
- --with-confdir="${EPREFIX}"/etc \ |
4429 |
- --exec-prefix="${EPREFIX}" \ |
4430 |
- --sbindir="${EPREFIX}/sbin" \ |
4431 |
- --with-staticdir="${EPREFIX}"/sbin \ |
4432 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
4433 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
4434 |
- --with-default-dm-run-dir=/run \ |
4435 |
- --with-default-run-dir=/run/lvm \ |
4436 |
- --with-default-locking-dir=/run/lock/lvm \ |
4437 |
- --with-default-pid-dir=/run \ |
4438 |
- $(use_enable udev udev_rules) \ |
4439 |
- $(use_enable udev udev_sync) \ |
4440 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
4441 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
4442 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
4443 |
- ${myconf[@]} \ |
4444 |
- CLDFLAGS="${LDFLAGS}" |
4445 |
-} |
4446 |
- |
4447 |
-src_compile() { |
4448 |
- pushd include >/dev/null |
4449 |
- emake |
4450 |
- popd >/dev/null |
4451 |
- |
4452 |
- if use device-mapper-only ; then |
4453 |
- emake device-mapper |
4454 |
- else |
4455 |
- emake |
4456 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
4457 |
- fi |
4458 |
-} |
4459 |
- |
4460 |
-src_install() { |
4461 |
- local inst |
4462 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
4463 |
- # install systemd related files only when requested, bug #522430 |
4464 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
4465 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
4466 |
- for inst in ${INSTALL_TARGETS}; do |
4467 |
- emake DESTDIR="${D}" ${inst} |
4468 |
- done |
4469 |
- |
4470 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
4471 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
4472 |
- |
4473 |
- if use !device-mapper-only ; then |
4474 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
4475 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.116-r6 lvm |
4476 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
4477 |
- |
4478 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
4479 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
4480 |
- fi |
4481 |
- |
4482 |
- if use clvm; then |
4483 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
4484 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
4485 |
- fi |
4486 |
- |
4487 |
- if use static-libs; then |
4488 |
- dolib.a libdm/ioctl/libdevmapper.a |
4489 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
4490 |
- #gen_usr_ldscript libdevmapper.so |
4491 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
4492 |
- #gen_usr_ldscript libdevmapper-event.so |
4493 |
- else |
4494 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
4495 |
- fi |
4496 |
- |
4497 |
- if use lvm2create_initrd; then |
4498 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
4499 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
4500 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
4501 |
- fi |
4502 |
- |
4503 |
- insinto /etc |
4504 |
- doins "${FILESDIR}"/dmtab |
4505 |
- |
4506 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
4507 |
-} |
4508 |
- |
4509 |
-pkg_postinst() { |
4510 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
4511 |
- ewarn "# rc-update add lvm boot" |
4512 |
- ewarn |
4513 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
4514 |
- ewarn "to enable lvm autoactivation and metadata caching." |
4515 |
-} |
4516 |
- |
4517 |
-src_test() { |
4518 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
4519 |
- einfo "run tests, compile the package and see ${S}/tests" |
4520 |
-} |
4521 |
|
4522 |
diff --git a/sys-fs/lvm2/lvm2-2.02.173.ebuild b/sys-fs/lvm2/lvm2-2.02.173.ebuild |
4523 |
deleted file mode 100644 |
4524 |
index 64a75336d32..00000000000 |
4525 |
--- a/sys-fs/lvm2/lvm2-2.02.173.ebuild |
4526 |
+++ /dev/null |
4527 |
@@ -1,299 +0,0 @@ |
4528 |
-# Copyright 1999-2018 Gentoo Foundation |
4529 |
-# Distributed under the terms of the GNU General Public License v2 |
4530 |
- |
4531 |
-EAPI=6 |
4532 |
-inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
4533 |
- |
4534 |
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
4535 |
-HOMEPAGE="https://sourceware.org/lvm2/" |
4536 |
-SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
4537 |
- ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
4538 |
- |
4539 |
-LICENSE="GPL-2" |
4540 |
-SLOT="0" |
4541 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
4542 |
-IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais sanlock selinux +udev +thin device-mapper-only" |
4543 |
-REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !sanlock !thin ) |
4544 |
- systemd? ( udev ) |
4545 |
- clvm? ( !systemd )" |
4546 |
- |
4547 |
-DEPEND_COMMON=" |
4548 |
- clvm? ( |
4549 |
- cman? ( =sys-cluster/cman-3* ) |
4550 |
- corosync? ( sys-cluster/corosync ) |
4551 |
- openais? ( sys-cluster/openais ) |
4552 |
- =sys-cluster/libdlm-3* |
4553 |
- ) |
4554 |
- |
4555 |
- readline? ( sys-libs/readline:0= ) |
4556 |
- sanlock? ( sys-cluster/sanlock ) |
4557 |
- systemd? ( >=sys-apps/systemd-205:0= ) |
4558 |
- udev? ( >=virtual/libudev-208:=[static-libs?] )" |
4559 |
-# /run is now required for locking during early boot. /var cannot be assumed to |
4560 |
-# be available -- thus, pull in recent enough baselayout for /run. |
4561 |
-# This version of LVM is incompatible with cryptsetup <1.1.2. |
4562 |
-RDEPEND="${DEPEND_COMMON} |
4563 |
- >=sys-apps/baselayout-2.2 |
4564 |
- !<sys-apps/openrc-0.11 |
4565 |
- !<sys-fs/cryptsetup-1.1.2 |
4566 |
- !!sys-fs/clvm |
4567 |
- !!sys-fs/lvm-user |
4568 |
- >=sys-apps/util-linux-2.16 |
4569 |
- lvm2create_initrd? ( sys-apps/makedev ) |
4570 |
- thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
4571 |
-# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
4572 |
-# USE 'static' currently only works with eudev, bug 520450 |
4573 |
-DEPEND="${DEPEND_COMMON} |
4574 |
- virtual/pkgconfig |
4575 |
- >=sys-devel/binutils-2.20.1-r1 |
4576 |
- sys-devel/autoconf-archive |
4577 |
- static? ( |
4578 |
- selinux? ( sys-libs/libselinux[static-libs] ) |
4579 |
- udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
4580 |
- >=sys-apps/util-linux-2.16[static-libs] |
4581 |
- )" |
4582 |
- |
4583 |
-S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
4584 |
- |
4585 |
-PATCHES=( |
4586 |
- # Gentoo specific modification(s): |
4587 |
- "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
4588 |
- |
4589 |
- # For upstream -- review and forward: |
4590 |
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
4591 |
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
4592 |
- "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
4593 |
- "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
4594 |
- "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
4595 |
- "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
4596 |
- "${FILESDIR}"/${PN}-2.02.172-static-pkgconfig-libs.patch #370217, #439414 + blkid |
4597 |
- "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
4598 |
- "${FILESDIR}"/${PN}-2.02.171-static-libm.patch #617756 |
4599 |
- "${FILESDIR}"/${PN}-2.02.166-HPPA-no-O_DIRECT.patch #657446 |
4600 |
- #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
4601 |
-) |
4602 |
- |
4603 |
-pkg_setup() { |
4604 |
- local CONFIG_CHECK="~SYSVIPC" |
4605 |
- |
4606 |
- if use udev; then |
4607 |
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
4608 |
- if linux_config_exists; then |
4609 |
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
4610 |
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
4611 |
- ewarn "It's recommended to set an empty value to the following kernel config option:" |
4612 |
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
4613 |
- fi |
4614 |
- fi |
4615 |
- fi |
4616 |
- |
4617 |
- check_extra_config |
4618 |
- |
4619 |
- # 1. Genkernel no longer copies /sbin/lvm blindly. |
4620 |
- if use static; then |
4621 |
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
4622 |
- elog "their static versions. If you need the static binaries," |
4623 |
- elog "you must append .static to the filename!" |
4624 |
- fi |
4625 |
-} |
4626 |
- |
4627 |
-src_prepare() { |
4628 |
- default |
4629 |
- |
4630 |
- sed -i \ |
4631 |
- -e "1iAR = $(tc-getAR)" \ |
4632 |
- -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
4633 |
- make.tmpl.in || die #444082 |
4634 |
- |
4635 |
- sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
4636 |
- |
4637 |
- if use udev && ! use device-mapper-only; then |
4638 |
- sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
4639 |
- elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
4640 |
- elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
4641 |
- elog "if it was previously disabled." |
4642 |
- fi |
4643 |
- |
4644 |
- sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
4645 |
- |
4646 |
- # Without thin-privision-tools, there is nothing to install for target install_man7: |
4647 |
- use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
4648 |
- |
4649 |
- eautoreconf |
4650 |
-} |
4651 |
- |
4652 |
-src_configure() { |
4653 |
- filter-flags -flto |
4654 |
- local myconf=() |
4655 |
- local buildmode |
4656 |
- |
4657 |
- myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
4658 |
- myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
4659 |
- myconf+=( $(use_enable !device-mapper-only applib) ) |
4660 |
- myconf+=( $(use_enable !device-mapper-only fsadm) ) |
4661 |
- myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
4662 |
- use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
4663 |
- |
4664 |
- # Most of this package does weird stuff. |
4665 |
- # The build options are tristate, and --without is NOT supported |
4666 |
- # options: 'none', 'internal', 'shared' |
4667 |
- if use static; then |
4668 |
- buildmode="internal" |
4669 |
- # This only causes the .static versions to become available |
4670 |
- myconf+=( --enable-static_link ) |
4671 |
- else |
4672 |
- buildmode="shared" |
4673 |
- fi |
4674 |
- dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
4675 |
- |
4676 |
- # dmeventd requires mirrors to be internal, and snapshot available |
4677 |
- # so we cannot disable them |
4678 |
- myconf+=( --with-mirrors=${dmbuildmode} ) |
4679 |
- myconf+=( --with-snapshots=${dmbuildmode} ) |
4680 |
- if use thin; then |
4681 |
- myconf+=( --with-thin=internal --with-cache=internal ) |
4682 |
- local texec |
4683 |
- for texec in check dump repair restore; do |
4684 |
- myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
4685 |
- myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
4686 |
- done |
4687 |
- else |
4688 |
- myconf+=( --with-thin=none --with-cache=none ) |
4689 |
- fi |
4690 |
- |
4691 |
- if use lvm1; then |
4692 |
- myconf+=( --with-lvm1=${buildmode} ) |
4693 |
- else |
4694 |
- myconf+=( --with-lvm1=none ) |
4695 |
- fi |
4696 |
- |
4697 |
- # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
4698 |
- use hppa && myconf+=( --disable-o_direct ) |
4699 |
- |
4700 |
- if use clvm; then |
4701 |
- myconf+=( --with-cluster=${buildmode} ) |
4702 |
- # 4-state! Make sure we get it right, per bug 210879 |
4703 |
- # Valid options are: none, cman, gulm, all |
4704 |
- # |
4705 |
- # 2009/02: |
4706 |
- # gulm is removed now, now dual-state: |
4707 |
- # cman, none |
4708 |
- # all still exists, but is not needed |
4709 |
- # |
4710 |
- # 2009/07: |
4711 |
- # TODO: add corosync and re-enable ALL |
4712 |
- local clvmd="" |
4713 |
- use cman && clvmd="cman" |
4714 |
- #clvmd="${clvmd/cmangulm/all}" |
4715 |
- use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
4716 |
- use openais && clvmd="${clvmd:+$clvmd,}openais" |
4717 |
- [ -z "${clvmd}" ] && clvmd="none" |
4718 |
- myconf+=( --with-clvmd=${clvmd} ) |
4719 |
- myconf+=( --with-pool=${buildmode} ) |
4720 |
- myconf+=( --enable-lvmlockd-dlm ) |
4721 |
- else |
4722 |
- myconf+=( --with-clvmd=none --with-cluster=none ) |
4723 |
- fi |
4724 |
- |
4725 |
- econf \ |
4726 |
- $(use_enable readline) \ |
4727 |
- $(use_enable selinux) \ |
4728 |
- --enable-pkgconfig \ |
4729 |
- --with-confdir="${EPREFIX}"/etc \ |
4730 |
- --exec-prefix="${EPREFIX}" \ |
4731 |
- --sbindir="${EPREFIX}/sbin" \ |
4732 |
- --with-staticdir="${EPREFIX}"/sbin \ |
4733 |
- --libdir="${EPREFIX}/$(get_libdir)" \ |
4734 |
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
4735 |
- --with-default-dm-run-dir=/run \ |
4736 |
- --with-default-run-dir=/run/lvm \ |
4737 |
- --with-default-locking-dir=/run/lock/lvm \ |
4738 |
- --with-default-pid-dir=/run \ |
4739 |
- $(use_enable udev udev_rules) \ |
4740 |
- $(use_enable udev udev_sync) \ |
4741 |
- $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
4742 |
- $(use_enable sanlock lvmlockd-sanlock) \ |
4743 |
- $(use_enable systemd udev-systemd-background-jobs) \ |
4744 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
4745 |
- ${myconf[@]} \ |
4746 |
- CLDFLAGS="${LDFLAGS}" |
4747 |
-} |
4748 |
- |
4749 |
-src_compile() { |
4750 |
- pushd include >/dev/null |
4751 |
- emake |
4752 |
- popd >/dev/null |
4753 |
- |
4754 |
- if use device-mapper-only ; then |
4755 |
- emake device-mapper |
4756 |
- else |
4757 |
- emake |
4758 |
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
4759 |
- fi |
4760 |
-} |
4761 |
- |
4762 |
-src_install() { |
4763 |
- local inst |
4764 |
- INSTALL_TARGETS="install install_tmpfiles_configuration" |
4765 |
- # install systemd related files only when requested, bug #522430 |
4766 |
- use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
4767 |
- use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
4768 |
- for inst in ${INSTALL_TARGETS}; do |
4769 |
- emake DESTDIR="${D}" ${inst} |
4770 |
- done |
4771 |
- |
4772 |
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
4773 |
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
4774 |
- |
4775 |
- if use !device-mapper-only ; then |
4776 |
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
4777 |
- newinitd "${FILESDIR}"/lvm.rc-2.02.172 lvm |
4778 |
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
4779 |
- |
4780 |
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
4781 |
- newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
4782 |
- fi |
4783 |
- |
4784 |
- if use sanlock; then |
4785 |
- newinitd "${FILESDIR}"/lvmlockd.initd-2.02.166-r1 lvmlockd |
4786 |
- fi |
4787 |
- |
4788 |
- if use clvm; then |
4789 |
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
4790 |
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
4791 |
- fi |
4792 |
- |
4793 |
- if use static-libs; then |
4794 |
- dolib.a libdm/ioctl/libdevmapper.a |
4795 |
- dolib.a libdaemon/client/libdaemonclient.a #462908 |
4796 |
- #gen_usr_ldscript libdevmapper.so |
4797 |
- dolib.a daemons/dmeventd/libdevmapper-event.a |
4798 |
- #gen_usr_ldscript libdevmapper-event.so |
4799 |
- else |
4800 |
- rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
4801 |
- fi |
4802 |
- |
4803 |
- if use lvm2create_initrd; then |
4804 |
- dosbin scripts/lvm2create_initrd/lvm2create_initrd |
4805 |
- doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
4806 |
- newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
4807 |
- fi |
4808 |
- |
4809 |
- insinto /etc |
4810 |
- doins "${FILESDIR}"/dmtab |
4811 |
- |
4812 |
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
4813 |
-} |
4814 |
- |
4815 |
-pkg_postinst() { |
4816 |
- ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
4817 |
- ewarn "# rc-update add lvm boot" |
4818 |
- ewarn |
4819 |
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
4820 |
- ewarn "to enable lvm autoactivation and metadata caching." |
4821 |
-} |
4822 |
- |
4823 |
-src_test() { |
4824 |
- einfo "Tests are disabled because of device-node mucking, if you want to" |
4825 |
- einfo "run tests, compile the package and see ${S}/tests" |
4826 |
-} |