diff options
Diffstat (limited to 'meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb')
-rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb new file mode 100644 index 0000000000..4c520e8c78 --- /dev/null +++ b/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb | |||
@@ -0,0 +1,75 @@ | |||
1 | SUMMARY = "Distributed block device driver for Linux" | ||
2 | DESCRIPTION = "DRBD mirrors a block device over the network to another machine.\ | ||
3 | Think of it as networked raid 1. It is a building block for\ | ||
4 | setting up high availability (HA) clusters." | ||
5 | HOMEPAGE = "http://www.drbd.org/" | ||
6 | SECTION = "admin" | ||
7 | LICENSE = "GPL-2.0-or-later" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" | ||
9 | |||
10 | SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=master;protocol=https \ | ||
11 | git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/drbd-headers;branch=master;protocol=https \ | ||
12 | file://0001-drbdmon-add-LDFLAGS-when-linking.patch \ | ||
13 | ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \ | ||
14 | file://0001-Fix-build-with-gcc-15.patch \ | ||
15 | " | ||
16 | SRCREV_drbd-utils = "36ea199f38b543b2da92219109c2832e122e5bf9" | ||
17 | SRCREV_drbd-headers = "94f4472513f351efba5788f783feba6ac6efe9fc" | ||
18 | |||
19 | SRCREV_FORMAT = "drbd-utils_drbd-headers" | ||
20 | |||
21 | |||
22 | UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases" | ||
23 | |||
24 | SYSTEMD_SERVICE:${PN} = "drbd.service" | ||
25 | SYSTEMD_AUTO_ENABLE = "disable" | ||
26 | |||
27 | DEPENDS = "flex-native keyutils" | ||
28 | |||
29 | inherit autotools-brokensep systemd | ||
30 | |||
31 | # -Wunused-but-set-variable -Wunused-const-variable -Winconsistent-missing-override | ||
32 | CPPFLAGS:append = " -Wno-error" | ||
33 | |||
34 | EXTRA_OECONF = " \ | ||
35 | --with-initdir=/etc/init.d \ | ||
36 | --without-pacemaker \ | ||
37 | --without-rgmanager \ | ||
38 | --without-bashcompletion \ | ||
39 | --with-distro debian \ | ||
40 | --with-initscripttype=both \ | ||
41 | --with-systemdunitdir=${systemd_unitdir}/system \ | ||
42 | --without-manual \ | ||
43 | --disable-udevchecks \ | ||
44 | " | ||
45 | |||
46 | # If we have inherited reproducible_build, we want to use it. | ||
47 | export WANT_DRBD_REPRODUCIBLE_BUILD = "yes" | ||
48 | |||
49 | do_install:append() { | ||
50 | # don't install empty /var/lock and /var/run to avoid conflict with base-files | ||
51 | rm -rf ${D}${localstatedir}/lock | ||
52 | rm -rf ${D}${localstatedir}/run | ||
53 | |||
54 | sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/drbd-demote-or-escalate@.service | ||
55 | sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/drbd-promote@.service | ||
56 | sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/drbd-wait-promotable@.service | ||
57 | sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/drbd.service | ||
58 | sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/drbd@.service | ||
59 | sed -i -e 's#@nonarch_libdir@#${nonarch_libdir}#g' ${D}${systemd_unitdir}/system/ocf.ra@.service | ||
60 | } | ||
61 | |||
62 | RDEPENDS:${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy" | ||
63 | |||
64 | # The drbd items are explicitly put under /lib when installed. | ||
65 | # | ||
66 | FILES:${PN} += "/run" | ||
67 | FILES:${PN} += "${nonarch_base_libdir}/drbd \ | ||
68 | ${nonarch_libdir}/drbd \ | ||
69 | ${nonarch_libdir}/tmpfiles.d \ | ||
70 | ${nonarch_libdir}/drbdscripts/* \ | ||
71 | ${systemd_unitdir}/system/* \ | ||
72 | " | ||
73 | FILES:${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug" | ||
74 | |||
75 | CLEANBROKEN = "1" | ||