diff options
Diffstat (limited to 'meta-networking/recipes-support/drbd/drbd-utils_9.12.0.bb')
-rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils_9.12.0.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.12.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.12.0.bb new file mode 100644 index 0000000000..b83f68f8c1 --- /dev/null +++ b/meta-networking/recipes-support/drbd/drbd-utils_9.12.0.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | SUMMARY = "Distributed block device driver for Linux" | ||
2 | DESCRIPTION = "DRBD mirrors a block device over the network to another machine.\ | ||
3 | DRBD mirrors a block device over the network to another machine.\ | ||
4 | Think of it as networked raid 1. It is a building block for\ | ||
5 | setting up high availability (HA) clusters." | ||
6 | HOMEPAGE = "http://www.drbd.org/" | ||
7 | SECTION = "admin" | ||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" | ||
10 | |||
11 | SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils \ | ||
12 | git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=git/drbd-headers \ | ||
13 | ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \ | ||
14 | " | ||
15 | # v9.12.0 | ||
16 | SRCREV_drbd-utils = "91629a4cce49ca0d4f917fe0bffa25cfe8db3052" | ||
17 | SRCREV_drbd-headers = "233006b4d26cf319638be0ef6d16ec7dee287b66" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases" | ||
22 | |||
23 | SYSTEMD_SERVICE_${PN} = "drbd.service" | ||
24 | SYSTEMD_AUTO_ENABLE = "disable" | ||
25 | |||
26 | DEPENDS = "flex-native" | ||
27 | |||
28 | inherit autotools-brokensep systemd | ||
29 | |||
30 | EXTRA_OECONF = " \ | ||
31 | --with-initdir=/etc/init.d \ | ||
32 | --without-pacemaker \ | ||
33 | --without-rgmanager \ | ||
34 | --without-bashcompletion \ | ||
35 | --with-distro debian \ | ||
36 | --with-initscripttype=both \ | ||
37 | --with-systemdunitdir=${systemd_unitdir}/system \ | ||
38 | --without-manual \ | ||
39 | " | ||
40 | |||
41 | # If we have inherited reproducible_build, we want to use it. | ||
42 | export WANT_DRBD_REPRODUCIBLE_BUILD = "yes" | ||
43 | |||
44 | do_install_append() { | ||
45 | # don't install empty /var/lock and /var/run to avoid conflict with base-files | ||
46 | rm -rf ${D}${localstatedir}/lock | ||
47 | rm -rf ${D}${localstatedir}/run | ||
48 | } | ||
49 | |||
50 | RDEPENDS_${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy" | ||
51 | |||
52 | # The drbd items are explicitly put under /lib when installed. | ||
53 | # | ||
54 | FILES_${PN} += "/run" | ||
55 | FILES_${PN} += "${nonarch_base_libdir}/drbd \ | ||
56 | ${nonarch_libdir}/drbd \ | ||
57 | ${nonarch_libdir}/tmpfiles.d" | ||
58 | FILES_${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug" | ||