summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-extended/dlm/dlm_4.0.7.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
index f7f7e188c..18843a61f 100644
--- a/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
+++ b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
@@ -20,17 +20,24 @@ UPSTREAM_CHECK_REGEX = "dlm-(?P<pver>\d+(\.\d+)+)"
20LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" 20LICENSE = "LGPLv2+ & GPLv2 & GPLv2+"
21LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" 21LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d"
22 22
23DEPENDS = "corosync systemd pacemaker" 23DEPENDS = "corosync systemd"
24 24
25inherit pkgconfig systemd distro_features_check 25inherit pkgconfig systemd distro_features_check
26 26
27PACKAGECONFIG ??= ""
28
29PACKAGECONFIG[pacemaker] = ",,pacemaker"
30
27SYSTEMD_SERVICE_${PN} = "dlm.service" 31SYSTEMD_SERVICE_${PN} = "dlm.service"
28SYSTEMD_AUTO_ENABLE = "enable" 32SYSTEMD_AUTO_ENABLE = "enable"
29 33
30export EXTRA_OEMAKE = "" 34export EXTRA_OEMAKE = ""
31 35
36DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}"
37
32do_compile_prepend() { 38do_compile_prepend() {
33 sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile 39 sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile
40 sed -i -e "s/ ${DONTBUILD}//g" ${S}/Makefile
34} 41}
35 42
36do_compile () { 43do_compile () {