diff options
Diffstat (limited to 'meta-oe/recipes-support/lvm2/lvm2.inc')
-rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc new file mode 100644 index 000000000..42f6e3a43 --- /dev/null +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
@@ -0,0 +1,52 @@ | |||
1 | SECTION = "utils" | ||
2 | DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux." | ||
3 | DEPENDS = "udev" | ||
4 | LICENSE = "GPLv2 & LGPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
6 | file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24" | ||
7 | INC_PR = "r4" | ||
8 | |||
9 | |||
10 | S = "${WORKDIR}/LVM2.${PV}" | ||
11 | SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \ | ||
12 | file://0001-Replace-CPPFunction-with-rl_completion_func_t.patch \ | ||
13 | file://mlock-ignore-vectors-gate_vma.patch \ | ||
14 | file://lvm.conf" | ||
15 | |||
16 | PACKAGECONFIG ??= "readline" | ||
17 | PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" | ||
18 | |||
19 | # Unset user/group to unbreak install. | ||
20 | EXTRA_OECONF = "--with-user= \ | ||
21 | --with-group= \ | ||
22 | --disable-o_direct \ | ||
23 | --enable-realtime \ | ||
24 | --enable-applib \ | ||
25 | --enable-cmdlib \ | ||
26 | --enable-udev_sync \ | ||
27 | --enable-udev_rules \ | ||
28 | --enable-pkgconfig \ | ||
29 | --enable-dmeventd \ | ||
30 | --with-udev-prefix= \ | ||
31 | --with-usrlibdir=${libdir} \ | ||
32 | " | ||
33 | |||
34 | PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" | ||
35 | |||
36 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," | ||
37 | |||
38 | inherit autotools pkgconfig | ||
39 | |||
40 | do_install_append() { | ||
41 | # Install machine specific configuration file | ||
42 | install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf | ||
43 | } | ||
44 | |||
45 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
46 | |||
47 | FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev" | ||
48 | FILES_${PN}-dbg += "${libdir}/device-mapper/.debug" | ||
49 | |||
50 | RDEPENDS_${PN} = "bash" | ||
51 | |||
52 | CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf" | ||