diff options
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb b/meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb new file mode 100644 index 000000000..b28acf1c4 --- /dev/null +++ b/meta-oe/recipes-support/lvm2/lvm2_2.03.01.bb | |||
@@ -0,0 +1,60 @@ | |||
1 | require lvm2.inc | ||
2 | |||
3 | SRCREV = "913c28917e62577a2ef67152b2e5159237503dda" | ||
4 | |||
5 | SRC_URI += "file://0001-explicitly-do-not-install-libdm.patch" | ||
6 | |||
7 | DEPENDS += "autoconf-archive-native" | ||
8 | |||
9 | inherit multilib_script | ||
10 | |||
11 | MULTILIB_SCRIPTS = "${PN}:${sysconfdir}/lvm/lvm.conf" | ||
12 | |||
13 | CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe" | ||
14 | |||
15 | do_install_append() { | ||
16 | # Install machine specific configuration file | ||
17 | install -d ${D}${sysconfdir}/lvm | ||
18 | install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf | ||
19 | sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf | ||
20 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
21 | oe_runmake 'DESTDIR=${D}' install install_systemd_units | ||
22 | sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_system_unitdir}/blk-availability.service | ||
23 | else | ||
24 | oe_runmake 'DESTDIR=${D}' install install_initscripts | ||
25 | mv ${D}${sysconfdir}/rc.d/init.d ${D}${sysconfdir}/init.d | ||
26 | rm -rf ${D}${sysconfdir}/rc.d | ||
27 | fi | ||
28 | } | ||
29 | |||
30 | PACKAGE_BEFORE_PN = "${PN}-scripts ${PN}-udevrules" | ||
31 | |||
32 | SYSTEMD_PACKAGES = "${PN}" | ||
33 | SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ | ||
34 | blk-availability.service" | ||
35 | SYSTEMD_AUTO_ENABLE = "disable" | ||
36 | |||
37 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
38 | |||
39 | EXTRA_OECONF_append_class-nativesdk = " --with-confdir=${sysconfdir}" | ||
40 | |||
41 | FILES_${PN} += "${libdir}/device-mapper/*.so" | ||
42 | FILES_${PN}-scripts = " \ | ||
43 | ${sbindir}/blkdeactivate \ | ||
44 | ${sbindir}/fsadm \ | ||
45 | ${sbindir}/lvmconf \ | ||
46 | ${sbindir}/lvmdump \ | ||
47 | " | ||
48 | # Specified explicitly for the udev rules, just in case that it does not get picked | ||
49 | # up automatically: | ||
50 | FILES_${PN}-udevrules = "${nonarch_base_libdir}/udev/rules.d" | ||
51 | RDEPENDS_${PN}-udevrules = "${PN}" | ||
52 | RDEPENDS_${PN}_append_class-target = " libdevmapper" | ||
53 | RDEPENDS_${PN}_append_class-nativesdk = " libdevmapper" | ||
54 | |||
55 | RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash" | ||
56 | RRECOMMENDS_${PN}_class-target = "${PN}-scripts (= ${EXTENDPKGV})" | ||
57 | |||
58 | CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf" | ||
59 | |||
60 | BBCLASSEXTEND = "native nativesdk" | ||