diff options
| author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2019-04-07 17:11:05 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-04-09 18:09:00 -0700 |
| commit | 2285583bb83fdd4bc5f71e128c17571c1f3d13e1 (patch) | |
| tree | b390914ffeab9f302d61c25f42c4590100e49b7d /meta-networking/recipes-support/drbd/drbd-utils_9.8.0.bb | |
| parent | 1077f7da32aae42e9f5c3ee21d8ca6c235f3ba4f (diff) | |
| download | meta-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.bb | 62 |
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 @@ | |||
| 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 | " | ||
| 14 | # v9.8.0 | ||
| 15 | SRCREV_drbd-utils = "c30216b49330216bf8a567b7727da6e24f099f08" | ||
| 16 | SRCREV_drbd-headers = "2357a11fb49bcbadf6b490e6d4cfe982a3d24813" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases" | ||
| 21 | |||
| 22 | SYSTEMD_SERVICE_${PN} = "drbd.service" | ||
| 23 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 24 | |||
| 25 | inherit autotools-brokensep systemd | ||
| 26 | |||
| 27 | EXTRA_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 | |||
| 38 | do_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 | } | ||
| 49 | do_install_append() { | ||
| 50 | # don't install empty /var/lock to avoid conflict with base-files | ||
| 51 | rm -rf ${D}${localstatedir}/lock | ||
| 52 | } | ||
| 53 | |||
| 54 | RDEPENDS_${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 | # | ||
| 58 | FILES_${PN} += "/run" | ||
| 59 | FILES_${PN} += "${nonarch_base_libdir}/drbd \ | ||
| 60 | ${nonarch_libdir}/drbd \ | ||
| 61 | ${nonarch_libdir}/tmpfiles.d" | ||
| 62 | FILES_${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug" | ||
