diff options
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb b/meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb index c81faa7e5..7939f0552 100644 --- a/meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb +++ b/meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb | |||
@@ -5,4 +5,77 @@ SRC_URI[sha256sum] = "e120b066b85b224552efda40204488c5123de068725676fd6e5c8bc655 | |||
5 | 5 | ||
6 | DEPENDS += "autoconf-archive-native" | 6 | DEPENDS += "autoconf-archive-native" |
7 | 7 | ||
8 | LVM2_PACKAGECONFIG = "dmeventd lvmetad" | ||
9 | LVM2_PACKAGECONFIG_append_class-target = " \ | ||
10 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ | ||
11 | thin-provisioning-tools \ | ||
12 | udev \ | ||
13 | " | ||
14 | |||
15 | PACKAGECONFIG ??= "${LVM2_PACKAGECONFIG}" | ||
16 | |||
17 | # Unset user/group to unbreak install. | ||
18 | EXTRA_OECONF = "--with-user= \ | ||
19 | --with-group= \ | ||
20 | --enable-realtime \ | ||
21 | --enable-applib \ | ||
22 | --enable-cmdlib \ | ||
23 | --enable-pkgconfig \ | ||
24 | --with-usrlibdir=${libdir} \ | ||
25 | --with-systemdsystemunitdir=${systemd_system_unitdir} \ | ||
26 | --disable-thin_check_needs_check \ | ||
27 | --with-thin-check=${sbindir}/thin_check \ | ||
28 | --with-thin-dump=${sbindir}/thin_dump \ | ||
29 | --with-thin-repair=${sbindir}/thin_repair \ | ||
30 | --with-thin-restore=${sbindir}/thin_restore \ | ||
31 | " | ||
32 | |||
33 | CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe" | ||
34 | |||
35 | do_install_append() { | ||
36 | # Install machine specific configuration file | ||
37 | install -d ${D}${sysconfdir}/lvm | ||
38 | install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf | ||
39 | sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf | ||
40 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
41 | oe_runmake 'DESTDIR=${D}' install install_systemd_units | ||
42 | sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_system_unitdir}/blk-availability.service | ||
43 | else | ||
44 | oe_runmake 'DESTDIR=${D}' install install_initscripts | ||
45 | mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d | ||
46 | rm -rf ${D}${sysconfdir}/rc.d | ||
47 | fi | ||
48 | # Remove things related to libdevmapper | ||
49 | rm -f ${D}${sbindir}/dmsetup | ||
50 | rm -f ${D}${libdir}/libdevmapper.so.* | ||
51 | rm -f ${D}${libdir}/libdevmapper.so ${D}${libdir}/pkgconfig/devmapper.pc ${D}${includedir}/libdevmapper.h | ||
52 | } | ||
53 | |||
54 | PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules" | ||
55 | |||
56 | SYSTEMD_PACKAGES = "${PN}" | ||
57 | SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ | ||
58 | ${@bb.utils.contains('PACKAGECONFIG', 'lvmetad', 'lvm2-lvmetad.socket lvm2-pvscan@.service', '', d)} \ | ||
59 | blk-availability.service" | ||
60 | SYSTEMD_AUTO_ENABLE = "disable" | ||
61 | |||
62 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
63 | |||
64 | FILES_${PN} += "${libdir}/device-mapper/*.so" | ||
65 | FILES_${PN}-scripts = " \ | ||
66 | ${sbindir}/blkdeactivate \ | ||
67 | ${sbindir}/fsadm \ | ||
68 | ${sbindir}/lvmconf \ | ||
69 | ${sbindir}/lvmdump \ | ||
70 | " | ||
71 | # Specified explicitly for the udev rules, just in case that it does not get picked | ||
72 | # up automatically: | ||
73 | FILES_${PN}-udevrules = "${nonarch_base_libdir}/udev/rules.d" | ||
74 | RDEPENDS_${PN}_append_class-target = " libdevmapper" | ||
75 | |||
76 | RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash" | ||
77 | RRECOMMENDS_${PN}_class-target = "${PN}-scripts (= ${EXTENDPKGV})" | ||
78 | |||
79 | CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf" | ||
80 | |||
8 | BBCLASSEXTEND = "native nativesdk" | 81 | BBCLASSEXTEND = "native nativesdk" |