multipath-tools: add recipe for git version
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 27 Mar 2013 19:31:02 +0000 (19:31 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:28:40 +0000 (08:28 -0800)
Multipath-tools hasn't seen a release in 3 years, so grab latest git.

'kpartx' is subpackaged since that's the tool most people want.

(From meta-openembedded rev: 74eee8a7960cf0a898d795cb024b10a58357dbcd)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/recipes-support/multipath-tools/multipath-tools_git.bb [new file with mode: 0644]

diff --git a/meta-openembedded/recipes-support/multipath-tools/multipath-tools_git.bb b/meta-openembedded/recipes-support/multipath-tools/multipath-tools_git.bb
new file mode 100644 (file)
index 0000000..808bc28
--- /dev/null
@@ -0,0 +1,30 @@
+DESCRIPTION = "The upstream project used to drive the Device Mapper multipathing driver."
+
+DEPENDS = "lvm2 libaio readline"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7be2873b6270e45abacc503abbe2aa3d"
+
+
+SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
+SRCREV = "15fc23ffb2bd1bac6990eda3e23c3e8980e6cfa5"
+
+S = "${WORKDIR}/git"
+
+PV = "0.4.9+git"
+
+EXTRA_OEMAKE = "MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} libdir=${base_libdir}/multipath"
+
+do_install() {
+       oe_runmake install
+}
+
+FILES_${PN}-dbg += "${base_libdir}/multipath/.debug"
+FILES_${PN} += "${base_libdir}/multipath \
+                ${base_libdir}/systemd"
+
+PACKAGES =+ "kpartx"
+FILES_kpartx = "${base_sbindir}/kpartx \
+                ${base_libdir}/udev/kpartx_id"
+
+RDEPENDS_${PN} += "kpartx"