summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-02-18 03:10:12 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2017-02-22 13:16:48 +0100
commit411f5caabc8280d1a93e3b61459d80450cf5344d (patch)
treef7731babb14a4aa3f91d20275f8b17391a21da1c /meta-oe/recipes-support/lvm2
parent6370feda0dd633d05d3de6fd862a7a68899eff0d (diff)
downloadmeta-openembedded-411f5caabc8280d1a93e3b61459d80450cf5344d.tar.gz
lvm2: Move libdevmapper to a separate package
This allows, e.g., cryptsetup to use libdevmapper without having to pull in all of lvm2. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/lvm2')
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 1462841a2..e0a126e14 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -73,7 +73,7 @@ do_install_append() {
73 fi 73 fi
74} 74}
75 75
76PACKAGE_BEFORE_PN = "${PN}-scripts" 76PACKAGE_BEFORE_PN = "${PN}-scripts libdevmapper libdevmapper-dev"
77 77
78SYSTEMD_PACKAGES = "${PN}" 78SYSTEMD_PACKAGES = "${PN}"
79SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \ 79SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \
@@ -90,8 +90,15 @@ FILES_${PN}-scripts = " \
90 ${sbindir}/lvmconf \ 90 ${sbindir}/lvmconf \
91 ${sbindir}/lvmdump \ 91 ${sbindir}/lvmdump \
92" 92"
93FILES_libdevmapper = "${libdir}/libdevmapper.so.*"
94FILES_libdevmapper-dev = " \
95 ${libdir}/libdevmapper.so \
96 ${libdir}/pkgconfig/devmapper.pc \
97 ${includedir}/libdevmapper.h \
98"
93 99
94RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash" 100RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) bash"
101RDEPENDS_libdevmapper-dev = "libdevmapper (= ${EXTENDPKGV})"
95RRECOMMENDS_${PN} = "${PN}-scripts (= ${EXTENDPKGV})" 102RRECOMMENDS_${PN} = "${PN}-scripts (= ${EXTENDPKGV})"
96 103
97CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf" 104CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"