1 |
commit: 90587f3c2d522952ea13a5616fbfb55d960b6314 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 25 22:07:15 2017 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Thu May 25 22:07:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=90587f3c |
7 |
|
8 |
sys-fs/lvm2: readd 2.02.166-r2 |
9 |
|
10 |
2.02.171 was masked. |
11 |
|
12 |
sys-fs/lvm2/Manifest | 2 + |
13 |
sys-fs/lvm2/lvm2-2.02.166-r2.ebuild | 301 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 303 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest |
17 |
index bb3e23b..f73d614 100644 |
18 |
--- a/sys-fs/lvm2/Manifest |
19 |
+++ b/sys-fs/lvm2/Manifest |
20 |
@@ -36,9 +36,11 @@ AUX lvmetad.initd-2.02.116-r3 348 SHA256 e7f17004d505eae5d8a2fb336b22f1cdb20bb2e |
21 |
AUX lvmlockd.initd-2.02.166-r1 393 SHA256 c7c3c7dfa651030fd277ba6713bd8cc6bfa361068e90316cbf8d501f42eeabf9 SHA512 11d6f186799d8628220eccb4823e5bd251bc3c447e6c3f8a63c025dc4e08e0a7638a8439967ea2ee8a717264887597be4992afca59571ebaa651441782288081 WHIRLPOOL 8d0ace7512b27027a70211097ee661a877fe3c2da5d28c0d863dc21d207f6198cacba0a6f86d620e8387fda7c3f996689da5e971e96a9466a2ea9a713b88636b |
22 |
DIST LVM2.2.02.116.tgz 1538340 SHA256 2479d6ea61c405efcfcd8a78390d00c1d2e9c92c0262f3ed599f2c0fb6f0b767 SHA512 992541339637d597257850b4ff7f5348fb7cdcccf806ac8d986a3be1ad1edc5f6bfaedeed5128690c541d1a485cdc75742e90a766363c39867901003518fb84d WHIRLPOOL 1e89ec941882fddba62c9649be46eb5bc6c9cb899669d4bbe4a4a1023c8bf7d8264c4815ef88bb39dedcb9637815411feb826aa102e629d77b80e45e099e398d |
23 |
DIST LVM2.2.02.145.tgz 1986370 SHA256 98b7c4c07c485a462c6a86e1a5265757133ceea36289ead8a419af29ef39560b SHA512 84e28b3efc940837ea9da70fce620744aea0945ba29383b76ad7bcd4b5259b897c714162a8e8b7cfe26ae736a3ad2eca633a3e0df4d6280a32b28bd4cf472d27 WHIRLPOOL b8c6f4b737625547d4c2994d055f3334e2954f160d10840f1405b6a78f25fc17ba1d270f574408c151140e2afceb007cbfa1c146ed105bbdeca001a03368d549 |
24 |
+DIST LVM2.2.02.166.tgz 2148324 SHA256 e120b066b85b224552efda40204488c5123de068725676fd6e5c8bc655051b94 SHA512 8bebe9b474f791b5edf5366b0bd24861fbbaf8a83afa2a9e2a8e3917e05e4ecbf6877f018be03ffb4e9b4c8832208264165b85182bf79a07661adf35128b4a21 WHIRLPOOL a4c2e0b2e8da85301b2518b35193304436715fdf45cbc7bc28fd6f7b88af15e611134d5a530d2311b23544aa67c3a7f13fd3780d4d46fc10854e624fb8b27870 |
25 |
DIST LVM2.2.02.171.tgz 2333643 SHA256 b815a711a2fabaa5c3dc1a4a284df0268bf0f325f0fc0f5c9530c9bbb54b9964 SHA512 801adcc2ae483f81edf6bfba73090b6b8f710370e48764f08a62da71d617157075bea01593c2535ad5ba71dcb5e0cfe83cec9a65180a6e8b9e0d214bdee79883 WHIRLPOOL fedd62612c6bb4b7764277a0d4474ff3557f041858c71eb7bf2a1c06b646637fe719f91a12c1b5c58ccefa7f4d2daba6bf30409340c52fd3a1b8b01ce62467ab |
26 |
EBUILD lvm2-2.02.116-r4.ebuild 9762 SHA256 6042ffe221d8740b3a58f7eaf56568c51f1934fe424879464184db51b297305a SHA512 68de2ebdaf16365295e14dfa51b5b393ef0a57287abbd6306d58138691fceb5f491aa5f1f4164c28aff73fd58dbfbd9ea5d21f8939b74ec5e25d2fbea982c4d9 WHIRLPOOL 017ea96ab12ae285470545143cbc7e859217247eaeedce9cf3c8fbf558732dd683bf9debb6d1617b798b75a4c7bbc98b5f34a2576dd02d6d8aee2189db82a162 |
27 |
EBUILD lvm2-2.02.116.ebuild 9396 SHA256 7aeca48e18514f843ad3bb91631d11587d871a3896394161a5aa5471cfc16abe SHA512 e7882514a39e3393f12bfc388d8ec934bab8d6a3930e6101735cfc8cf44962d85820d1049292aeeb7ce9571c4ca6559e629c0c9df6b007350b89296c132165e1 WHIRLPOOL 267ed99a342417306e7b675743c3dd68a25682dca2ec4bd17d4bfb61509041d9efea4cad04eafb2ac58a2c4d9417c9ffa24646a88d46e43384b6383afcaa16e1 |
28 |
EBUILD lvm2-2.02.145-r2.ebuild 9690 SHA256 ca55a4b820357bb7ef37fb1aad70fc41884a1a4a6ad16ed5861860f6af2efd58 SHA512 27c88ece1bae66d571e21ea820f29e218bac90f3453f11223522f822c7eee822586a92df71057081e36d9b06b1e93612b86f6e709c365ed58ddaf8fd58adf1e9 WHIRLPOOL edfe844fbc1758c7159448e78b4aec383428552836c4f4ba22761e61ad94394da2e8b4bd0cb5f70f66291db4bad6e8e6db17169a1405e66ba608869b4420c683 |
29 |
+EBUILD lvm2-2.02.166-r2.ebuild 9857 SHA256 96f7a0bd39949ffd9069b87162950cdb7bd14075230ec3752b1bf261faf44ad9 SHA512 45be9f38f56442a27cce58ca7097825eb1aa3f9c03ba24ec78d56523151a20c101eab0c4a00e6bf6569cfc6000ceb076e9d7091874ac0988bda8c32dec0d721a WHIRLPOOL 1ac48c2fa5705c7a51fb20bcb14d5ef06684686a9385f54de6c74886b50e1431bab0873a32c71a9469b46fb604673ff1e97aa06aaf99054fb75d1dff758389ee |
30 |
EBUILD lvm2-2.02.171.ebuild 9895 SHA256 6e8bcb26f022e5f0aa6902af43ca613a5777ee1e73f9cfb8c9fb2feff9a0b4c1 SHA512 dfc4ea42c42435d4a704b68dce52be76a44544ce0116f9a7de773930f53eea6445ff2f5f38321f0d19fdee32b23d96c01f7fc5b0b9c912890c02c908a4e7834b WHIRLPOOL 3602cf70a70821b7df6b0adc6be53a285555de1bef694c4d04cc5f17d9aac2dbed93ec1782090d7c23d457d3fe75eafef0cf8a3c50bec0b4e3d3114816097c7c |
31 |
MISC metadata.xml 1397 SHA256 2b717cd8b25dab45bbf8e04e9d1ea312132ab7d969dbaabcf5ce3665da04dab1 SHA512 1ed97dbef323b6703097c20de99e9003c88663a887bcf87c9489baddfa180aa3d8645e4e60cd3eb3b9505603997ac3ab98a7ee96a813b77b9dc25862dd332d35 WHIRLPOOL f7d03ebb6752c774d7d0415a0cf1d936e9206e4a923cc9b670d593bbc412baa9a0c96f369fd8be1170642ca8d54ec5165cc1929b88e4267e73ec630ed6b82cde |
32 |
|
33 |
diff --git a/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..c7078a1 |
36 |
--- /dev/null |
37 |
+++ b/sys-fs/lvm2/lvm2-2.02.166-r2.ebuild |
38 |
@@ -0,0 +1,301 @@ |
39 |
+# Copyright 1999-2017 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=6 |
43 |
+inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic |
44 |
+ |
45 |
+DESCRIPTION="User-land utilities for LVM2 (device-mapper) software" |
46 |
+HOMEPAGE="https://sourceware.org/lvm2/" |
47 |
+SRC_URI="ftp://sourceware.org/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz |
48 |
+ ftp://sourceware.org/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
53 |
+IUSE="readline static static-libs systemd clvm cman corosync lvm1 lvm2create_initrd openais sanlock selinux +udev +thin device-mapper-only" |
54 |
+REQUIRED_USE="device-mapper-only? ( !clvm !cman !corosync !lvm1 !lvm2create_initrd !openais !sanlock !thin ) |
55 |
+ systemd? ( udev ) |
56 |
+ clvm? ( !systemd )" |
57 |
+ |
58 |
+DEPEND_COMMON=" |
59 |
+ clvm? ( |
60 |
+ cman? ( =sys-cluster/cman-3* ) |
61 |
+ corosync? ( sys-cluster/corosync ) |
62 |
+ openais? ( sys-cluster/openais ) |
63 |
+ =sys-cluster/libdlm-3* |
64 |
+ ) |
65 |
+ |
66 |
+ readline? ( sys-libs/readline:0= ) |
67 |
+ sanlock? ( sys-cluster/sanlock ) |
68 |
+ systemd? ( >=sys-apps/systemd-205:0= ) |
69 |
+ udev? ( >=virtual/libudev-208:=[static-libs?] )" |
70 |
+# /run is now required for locking during early boot. /var cannot be assumed to |
71 |
+# be available -- thus, pull in recent enough baselayout for /run. |
72 |
+# This version of LVM is incompatible with cryptsetup <1.1.2. |
73 |
+RDEPEND="${DEPEND_COMMON} |
74 |
+ >=sys-apps/baselayout-2.2 |
75 |
+ !<sys-apps/openrc-0.11 |
76 |
+ !<sys-fs/cryptsetup-1.1.2 |
77 |
+ !!sys-fs/clvm |
78 |
+ !!sys-fs/lvm-user |
79 |
+ >=sys-apps/util-linux-2.16 |
80 |
+ lvm2create_initrd? ( sys-apps/makedev ) |
81 |
+ thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" |
82 |
+# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check |
83 |
+# USE 'static' currently only works with eudev, bug 520450 |
84 |
+DEPEND="${DEPEND_COMMON} |
85 |
+ virtual/pkgconfig |
86 |
+ >=sys-devel/binutils-2.20.1-r1 |
87 |
+ sys-devel/autoconf-archive |
88 |
+ static? ( |
89 |
+ selinux? ( sys-libs/libselinux[static-libs] ) |
90 |
+ udev? ( >=sys-fs/eudev-3.1.2[static-libs] ) |
91 |
+ >=sys-apps/util-linux-2.16[static-libs] |
92 |
+ )" |
93 |
+ |
94 |
+S=${WORKDIR}/${PN/lvm/LVM}.${PV} |
95 |
+ |
96 |
+PATCHES=( |
97 |
+ # Gentoo specific modification(s): |
98 |
+ "${FILESDIR}"/${PN}-2.02.129-example.conf.in.patch |
99 |
+ |
100 |
+ # Musl fixes |
101 |
+ "${FILESDIR}"/${PN}-2.02.166-fix-stdio-usage.patch |
102 |
+ "${FILESDIR}"/${PN}-2.02.166-portability.patch |
103 |
+ |
104 |
+ # For upstream -- review and forward: |
105 |
+ "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch |
106 |
+ "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch |
107 |
+ "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331 |
108 |
+ "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373 |
109 |
+ "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed |
110 |
+ "${FILESDIR}"/${PN}-2.02.139-dynamic-static-ldflags.patch #332905 |
111 |
+ "${FILESDIR}"/${PN}-2.02.129-static-pkgconfig-libs.patch #370217, #439414 + blkid |
112 |
+ "${FILESDIR}"/${PN}-2.02.130-pthread-pkgconfig.patch #492450 |
113 |
+ #"${FILESDIR}"/${PN}-2.02.145-mkdev.patch #580062 # Merged upstream |
114 |
+) |
115 |
+ |
116 |
+pkg_setup() { |
117 |
+ local CONFIG_CHECK="~SYSVIPC" |
118 |
+ |
119 |
+ if use udev; then |
120 |
+ local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n" |
121 |
+ if linux_config_exists; then |
122 |
+ local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH) |
123 |
+ if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then |
124 |
+ ewarn "It's recommended to set an empty value to the following kernel config option:" |
125 |
+ ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}" |
126 |
+ fi |
127 |
+ fi |
128 |
+ fi |
129 |
+ |
130 |
+ check_extra_config |
131 |
+ |
132 |
+ # 1. Genkernel no longer copies /sbin/lvm blindly. |
133 |
+ if use static; then |
134 |
+ elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with" |
135 |
+ elog "their static versions. If you need the static binaries," |
136 |
+ elog "you must append .static to the filename!" |
137 |
+ fi |
138 |
+} |
139 |
+ |
140 |
+src_prepare() { |
141 |
+ default |
142 |
+ |
143 |
+ sed -i \ |
144 |
+ -e "1iAR = $(tc-getAR)" \ |
145 |
+ -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ |
146 |
+ make.tmpl.in || die #444082 |
147 |
+ |
148 |
+ sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 |
149 |
+ |
150 |
+ if use udev && ! use device-mapper-only; then |
151 |
+ sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 |
152 |
+ elog "Notice that \"use_lvmetad\" setting is enabled with USE=\"udev\" in" |
153 |
+ elog "/etc/lvm/lvm.conf, which will require restart of udev, lvm, and lvmetad" |
154 |
+ elog "if it was previously disabled." |
155 |
+ fi |
156 |
+ |
157 |
+ sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 |
158 |
+ |
159 |
+ # Without thin-privision-tools, there is nothing to install for target install_man7: |
160 |
+ use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } |
161 |
+ |
162 |
+ eautoreconf |
163 |
+} |
164 |
+ |
165 |
+src_configure() { |
166 |
+ filter-flags -flto |
167 |
+ local myconf=() |
168 |
+ local buildmode |
169 |
+ |
170 |
+ myconf+=( $(use_enable !device-mapper-only dmeventd) ) |
171 |
+ myconf+=( $(use_enable !device-mapper-only cmdlib) ) |
172 |
+ myconf+=( $(use_enable !device-mapper-only applib) ) |
173 |
+ myconf+=( $(use_enable !device-mapper-only fsadm) ) |
174 |
+ myconf+=( $(use_enable !device-mapper-only lvmetad) ) |
175 |
+ use device-mapper-only && myconf+=( --disable-udev-systemd-background-jobs ) |
176 |
+ |
177 |
+ # Most of this package does weird stuff. |
178 |
+ # The build options are tristate, and --without is NOT supported |
179 |
+ # options: 'none', 'internal', 'shared' |
180 |
+ if use static; then |
181 |
+ buildmode="internal" |
182 |
+ # This only causes the .static versions to become available |
183 |
+ myconf+=( --enable-static_link ) |
184 |
+ else |
185 |
+ buildmode="shared" |
186 |
+ fi |
187 |
+ dmbuildmode=$(use !device-mapper-only && echo internal || echo none) |
188 |
+ |
189 |
+ # dmeventd requires mirrors to be internal, and snapshot available |
190 |
+ # so we cannot disable them |
191 |
+ myconf+=( --with-mirrors=${dmbuildmode} ) |
192 |
+ myconf+=( --with-snapshots=${dmbuildmode} ) |
193 |
+ if use thin; then |
194 |
+ myconf+=( --with-thin=internal --with-cache=internal ) |
195 |
+ local texec |
196 |
+ for texec in check dump repair restore; do |
197 |
+ myconf+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} ) |
198 |
+ myconf+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} ) |
199 |
+ done |
200 |
+ else |
201 |
+ myconf+=( --with-thin=none --with-cache=none ) |
202 |
+ fi |
203 |
+ |
204 |
+ if use lvm1; then |
205 |
+ myconf+=( --with-lvm1=${buildmode} ) |
206 |
+ else |
207 |
+ myconf+=( --with-lvm1=none ) |
208 |
+ fi |
209 |
+ |
210 |
+ # disable O_DIRECT support on hppa, breaks pv detection (#99532) |
211 |
+ use hppa && myconf+=( --disable-o_direct ) |
212 |
+ |
213 |
+ if use clvm; then |
214 |
+ myconf+=( --with-cluster=${buildmode} ) |
215 |
+ # 4-state! Make sure we get it right, per bug 210879 |
216 |
+ # Valid options are: none, cman, gulm, all |
217 |
+ # |
218 |
+ # 2009/02: |
219 |
+ # gulm is removed now, now dual-state: |
220 |
+ # cman, none |
221 |
+ # all still exists, but is not needed |
222 |
+ # |
223 |
+ # 2009/07: |
224 |
+ # TODO: add corosync and re-enable ALL |
225 |
+ local clvmd="" |
226 |
+ use cman && clvmd="cman" |
227 |
+ #clvmd="${clvmd/cmangulm/all}" |
228 |
+ use corosync && clvmd="${clvmd:+$clvmd,}corosync" |
229 |
+ use openais && clvmd="${clvmd:+$clvmd,}openais" |
230 |
+ [ -z "${clvmd}" ] && clvmd="none" |
231 |
+ myconf+=( --with-clvmd=${clvmd} ) |
232 |
+ myconf+=( --with-pool=${buildmode} ) |
233 |
+ |
234 |
+ else |
235 |
+ myconf+=( --with-clvmd=none --with-cluster=none ) |
236 |
+ fi |
237 |
+ |
238 |
+ econf \ |
239 |
+ $(use_enable readline) \ |
240 |
+ $(use_enable selinux) \ |
241 |
+ --enable-pkgconfig \ |
242 |
+ --with-confdir="${EPREFIX}"/etc \ |
243 |
+ --exec-prefix="${EPREFIX}" \ |
244 |
+ --sbindir="${EPREFIX}/sbin" \ |
245 |
+ --with-staticdir="${EPREFIX}"/sbin \ |
246 |
+ --libdir="${EPREFIX}/$(get_libdir)" \ |
247 |
+ --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
248 |
+ --with-default-dm-run-dir=/run \ |
249 |
+ --with-default-run-dir=/run/lvm \ |
250 |
+ --with-default-locking-dir=/run/lock/lvm \ |
251 |
+ --with-default-pid-dir=/run \ |
252 |
+ $(use_enable udev udev_rules) \ |
253 |
+ $(use_enable udev udev_sync) \ |
254 |
+ $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ |
255 |
+ $(use_enable sanlock lockd-sanlock) \ |
256 |
+ $(use_enable systemd udev-systemd-background-jobs) \ |
257 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
258 |
+ ${myconf[@]} \ |
259 |
+ CLDFLAGS="${LDFLAGS}" |
260 |
+} |
261 |
+ |
262 |
+src_compile() { |
263 |
+ pushd include >/dev/null |
264 |
+ emake |
265 |
+ popd >/dev/null |
266 |
+ |
267 |
+ if use device-mapper-only ; then |
268 |
+ emake device-mapper |
269 |
+ else |
270 |
+ emake |
271 |
+ emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat |
272 |
+ fi |
273 |
+} |
274 |
+ |
275 |
+src_install() { |
276 |
+ local inst |
277 |
+ INSTALL_TARGETS="install install_tmpfiles_configuration" |
278 |
+ # install systemd related files only when requested, bug #522430 |
279 |
+ use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators" |
280 |
+ use device-mapper-only && INSTALL_TARGETS="install_device-mapper" |
281 |
+ for inst in ${INSTALL_TARGETS}; do |
282 |
+ emake DESTDIR="${D}" ${inst} |
283 |
+ done |
284 |
+ |
285 |
+ newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper |
286 |
+ newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper |
287 |
+ |
288 |
+ if use !device-mapper-only ; then |
289 |
+ newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd |
290 |
+ newinitd "${FILESDIR}"/lvm.rc-2.02.166-r2 lvm |
291 |
+ newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm |
292 |
+ |
293 |
+ newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring |
294 |
+ newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad |
295 |
+ fi |
296 |
+ |
297 |
+ if use sanlock; then |
298 |
+ newinitd "${FILESDIR}"/lvmlockd.initd-2.02.166-r1 lvmlockd |
299 |
+ fi |
300 |
+ |
301 |
+ if use clvm; then |
302 |
+ newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd |
303 |
+ newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd |
304 |
+ fi |
305 |
+ |
306 |
+ if use static-libs; then |
307 |
+ dolib.a libdm/ioctl/libdevmapper.a |
308 |
+ dolib.a libdaemon/client/libdaemonclient.a #462908 |
309 |
+ #gen_usr_ldscript libdevmapper.so |
310 |
+ dolib.a daemons/dmeventd/libdevmapper-event.a |
311 |
+ #gen_usr_ldscript libdevmapper-event.so |
312 |
+ else |
313 |
+ rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a |
314 |
+ fi |
315 |
+ |
316 |
+ if use lvm2create_initrd; then |
317 |
+ dosbin scripts/lvm2create_initrd/lvm2create_initrd |
318 |
+ doman scripts/lvm2create_initrd/lvm2create_initrd.8 |
319 |
+ newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd |
320 |
+ fi |
321 |
+ |
322 |
+ insinto /etc |
323 |
+ doins "${FILESDIR}"/dmtab |
324 |
+ |
325 |
+ dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf |
326 |
+} |
327 |
+ |
328 |
+pkg_postinst() { |
329 |
+ ewarn "Make sure the \"lvm\" init script is in the runlevels:" |
330 |
+ ewarn "# rc-update add lvm boot" |
331 |
+ ewarn |
332 |
+ ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" |
333 |
+ ewarn "to enable lvm autoactivation and metadata caching." |
334 |
+} |
335 |
+ |
336 |
+src_test() { |
337 |
+ einfo "Tests are disabled because of device-node mucking, if you want to" |
338 |
+ einfo "run tests, compile the package and see ${S}/tests" |
339 |
+} |