summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb
diff options
context:
space:
mode:
authorOleksandr Kravchuk <open.source@oleksandr-kravchuk.com>2019-04-07 17:11:05 +0200
committerKhem Raj <raj.khem@gmail.com>2019-04-09 18:09:00 -0700
commit2285583bb83fdd4bc5f71e128c17571c1f3d13e1 (patch)
treeb390914ffeab9f302d61c25f42c4590100e49b7d /meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb
parent1077f7da32aae42e9f5c3ee21d8ca6c235f3ba4f (diff)
downloadmeta-openembedded-2285583bb83fdd4bc5f71e128c17571c1f3d13e1.tar.gz
drbd-utils: update to 9.8.0
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb')
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb
new file mode 100644
index 0000000000..a781e2791b
--- /dev/null
+++ b/meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb
@@ -0,0 +1,62 @@
1SUMMARY = "Distributed block device driver for Linux"
2DESCRIPTION = "DRBD mirrors a block device over the network to another machine.\
3DRBD mirrors a block device over the network to another machine.\
4Think of it as networked raid 1. It is a building block for\
5setting up high availability (HA) clusters."
6HOMEPAGE = "http://www.drbd.org/"
7SECTION = "admin"
8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
10
11SRC_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 "
14# v9.8.0
15SRCREV_drbd-utils = "c30216b49330216bf8a567b7727da6e24f099f08"
16SRCREV_drbd-headers = "2357a11fb49bcbadf6b490e6d4cfe982a3d24813"
17
18S = "${WORKDIR}/git"
19
20UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases"
21
22SYSTEMD_SERVICE_${PN} = "drbd.service"
23SYSTEMD_AUTO_ENABLE = "disable"
24
25inherit autotools-brokensep systemd
26
27EXTRA_OECONF = " \
28 --with-initdir=/etc/init.d \
29 --without-pacemaker \
30 --without-rgmanager \
31 --without-bashcompletion \
32 --with-distro debian \
33 --with-initscripttype=both \
34 --with-systemdunitdir=${systemd_unitdir}/system \
35 --without-manual \
36 "
37
38do_configure_prepend() {
39 # move the the file under folder /lib/drbd/ to /usr/lib/drbd when usrmerge enabled
40 if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then
41 for m_file in `find ${S} -name 'Makefile.in'`; do
42 sed -i -e "s;\$(DESTDIR)\/lib\/drbd;\$(DESTDIR)\${nonarch_libdir}\/drbd;g" $m_file
43 done
44 # move the the file under folder /lib/udev/ to /usr/lib/udev when usrmerge enabled
45 sed -i -e "s;default_udevdir=/lib/udev;default_udevdir=\${prefix}/lib/udev;g" ${S}/configure.ac
46 fi
47
48}
49do_install_append() {
50 # don't install empty /var/lock to avoid conflict with base-files
51 rm -rf ${D}${localstatedir}/lock
52}
53
54RDEPENDS_${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy"
55
56# The drbd items are explicitly put under /lib when installed.
57#
58FILES_${PN} += "/run"
59FILES_${PN} += "${nonarch_base_libdir}/drbd \
60 ${nonarch_libdir}/drbd \
61 ${nonarch_libdir}/tmpfiles.d"
62FILES_${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug"