diff options
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.3.bb')
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.3.bb | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.3.bb b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.3.bb new file mode 100644 index 0000000000..8e26d4c2a8 --- /dev/null +++ b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.3.bb | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | SUMMARY = "The upstream project used to drive the Device Mapper multipathing driver" | ||
| 2 | |||
| 3 | DESCRIPTION = "It provides tools to manage multipath devices \ | ||
| 4 | by instructing the device-mapper kernel module what to do. These \ | ||
| 5 | tools include: \ | ||
| 6 | 1. multipath - Scan the system for multipath devices and assemble them.\ | ||
| 7 | 2. multipathd - Detects when paths fail and execs multipath to update \ | ||
| 8 | things.\ | ||
| 9 | 3. mpathpersist - Persistent reservation management feature allows \ | ||
| 10 | cluster management software to manage persistent reservation through \ | ||
| 11 | mpath device. It processes management requests from callers and hides \ | ||
| 12 | the management task details. It also handles persistent reservation \ | ||
| 13 | management of data path life cycle and state changes.\ | ||
| 14 | 4. kpartx - This tool, derived from util-linux's partx, reads partition \ | ||
| 15 | tables on specified device and create device maps over partitions \ | ||
| 16 | segments detected. It is called from hotplug upon device maps creation \ | ||
| 17 | and deletion" | ||
| 18 | |||
| 19 | HOMEPAGE = "http://christophe.varoqui.free.fr/" | ||
| 20 | |||
| 21 | DEPENDS = "libdevmapper \ | ||
| 22 | lvm2 \ | ||
| 23 | libaio \ | ||
| 24 | liburcu \ | ||
| 25 | readline \ | ||
| 26 | udev \ | ||
| 27 | json-c \ | ||
| 28 | " | ||
| 29 | |||
| 30 | LICENSE = "GPL-2.0-only" | ||
| 31 | |||
| 32 | SRC_URI = "git://github.com/opensvc/multipath-tools.git;protocol=https;branch=stable-0.11.y \ | ||
| 33 | file://multipathd.oe \ | ||
| 34 | file://multipath.conf.example \ | ||
| 35 | file://0001-RH-fixup-udev-rules-for-redhat.patch \ | ||
| 36 | file://0002-RH-Remove-the-property-blacklist-exception-builtin.patch \ | ||
| 37 | file://0003-RH-don-t-start-without-a-config-file.patch \ | ||
| 38 | file://0004-RH-use-rpm-optflags-if-present.patch \ | ||
| 39 | file://0005-RH-add-mpathconf.patch \ | ||
| 40 | file://0006-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch \ | ||
| 41 | file://0007-RH-warn-on-invalid-regex-instead-of-failing.patch \ | ||
| 42 | file://0008-RH-reset-default-find_mutipaths-value-to-off.patch \ | ||
| 43 | file://0009-multipath-tools-modify-create-config.mk-for-cross-co.patch \ | ||
| 44 | file://0010-Always-use-devmapper.patch \ | ||
| 45 | file://0011-fix-bug-of-do_compile-and-do_install.patch \ | ||
| 46 | file://0012-add-explicit-dependency-on-libraries.patch \ | ||
| 47 | file://0013-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch \ | ||
| 48 | " | ||
| 49 | |||
| 50 | LIC_FILES_CHKSUM = "file://COPYING;md5=9ec28527f3d544b51ceb0e1907d0bf3f" | ||
| 51 | |||
| 52 | SRCREV = "7a84cc602ea0884ae0c767e6c89592059012db04" | ||
| 53 | |||
| 54 | |||
| 55 | inherit systemd pkgconfig | ||
| 56 | |||
| 57 | SYSTEMD_SERVICE:${PN} = "multipathd.service" | ||
| 58 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 59 | |||
| 60 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 61 | |||
| 62 | # multipath-tools includes a copy of the valgrind.h header | ||
| 63 | # file and uses the macros to suppress some false positives. However, | ||
| 64 | # that only works on ARM when thumb is disabled. Otherwise one gets: | ||
| 65 | # Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov r12,r12,ror#3' | ||
| 66 | # ../Makefile.inc:66: recipe for target 'debug.o' failed | ||
| 67 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
| 68 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 69 | |||
| 70 | # The exact version of SYSTEMD does not matter but should be greater than 209. | ||
| 71 | # | ||
| 72 | EXTRA_OEMAKE = 'MULTIPATH_VERSION=${PV} DESTDIR=${D} syslibdir=${base_libdir} \ | ||
| 73 | OPTFLAGS="${CFLAGS}" \ | ||
| 74 | prefix=${prefix} \ | ||
| 75 | etc_prefix=${sysconfdir} \ | ||
| 76 | bindir=${base_sbindir} \ | ||
| 77 | LIB=${base_libdir} libdir=${base_libdir}/multipath \ | ||
| 78 | usrlibdir=${libdir} \ | ||
| 79 | plugindir=${base_libdir}/multipath \ | ||
| 80 | unitdir=${systemd_system_unitdir} \ | ||
| 81 | libudevdir=${nonarch_base_libdir}/udev \ | ||
| 82 | modulesloaddir=${sysconfdir}/modules-load.d \ | ||
| 83 | tmpfilesdir=${sysconfdir}/tmpfiles.d \ | ||
| 84 | ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "SYSTEMD=216", "", d)} \ | ||
| 85 | KBUILD_BUILD_TIMESTAMP="$(date -u -d "@$SOURCE_DATE_EPOCH" +"%Y-%m-%d %H:%M:%S +0000")" \ | ||
| 86 | ' | ||
| 87 | |||
| 88 | do_install() { | ||
| 89 | oe_runmake install | ||
| 90 | |||
| 91 | # We copy an initscript, but do not start multipathd at init time. | ||
| 92 | # | ||
| 93 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)};then | ||
| 94 | install -d ${D}${sysconfdir}/init.d | ||
| 95 | cp ${UNPACKDIR}/multipathd.oe ${D}${sysconfdir}/init.d/multipathd | ||
| 96 | fi | ||
| 97 | |||
| 98 | sed -i "s:/usr/lib/udev/kpartx_id:${nonarch_base_libdir}/udev/kpartx_id:g" \ | ||
| 99 | ${D}${nonarch_base_libdir}/udev/rules.d/11-dm-mpath.rules | ||
| 100 | |||
| 101 | install -d ${D}${sysconfdir} | ||
| 102 | install -m 0644 ${UNPACKDIR}/multipath.conf.example \ | ||
| 103 | ${D}${sysconfdir}/multipath.conf.example | ||
| 104 | } | ||
| 105 | |||
| 106 | FILES:${PN} += "${systemd_system_unitdir}" | ||
| 107 | FILES:${PN}-dbg += "${base_libdir}/multipath/.debug" | ||
| 108 | |||
| 109 | PACKAGES =+ "${PN}-libs" | ||
| 110 | FILES:${PN}-libs = "${base_libdir}/lib*.so.* \ | ||
| 111 | ${base_libdir}/multipath/lib*.so*" | ||
| 112 | RDEPENDS:${PN} += "${PN}-libs bash libgcc" | ||
| 113 | |||
| 114 | PROVIDES += "device-mapper-multipath" | ||
| 115 | RPROVIDES:${PN} += "device-mapper-multipath" | ||
| 116 | RPROVIDES:${PN}-libs += "device-mapper-multipath-libs" | ||
| 117 | |||
| 118 | FILES:${PN}-dev += "${base_libdir}/pkgconfig" | ||
| 119 | |||
| 120 | PACKAGES =+ "kpartx" | ||
| 121 | FILES:kpartx = "${base_sbindir}/kpartx \ | ||
| 122 | ${nonarch_base_libdir}/udev/kpartx_id \ | ||
| 123 | " | ||
| 124 | |||
| 125 | RDEPENDS:${PN} += "kpartx" | ||
| 126 | PARALLEL_MAKE = "" | ||
