Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 = "http://oss.linbit.com/drbd/${BP}.tar.gz \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | file://0001-Makefile.in-fix-permission-bits-for-drbd.service.patch \ |
| 13 | " |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 14 | SRC_URI[md5sum] = "76ed6d3190cd77b00890f3365353124b" |
| 15 | SRC_URI[sha256sum] = "297b77c9b3f88de2e7dae459234f2753ea4fc2805282b2d276e35cf51e292913" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | |
| 17 | SYSTEMD_SERVICE_${PN} = "drbd.service" |
| 18 | SYSTEMD_AUTO_ENABLE = "disable" |
| 19 | |
| 20 | inherit autotools-brokensep systemd |
| 21 | |
| 22 | EXTRA_OECONF = " \ |
| 23 | --with-initdir=/etc/init.d \ |
| 24 | --without-pacemaker \ |
| 25 | --without-rgmanager \ |
| 26 | --without-bashcompletion \ |
| 27 | --with-distro debian \ |
| 28 | --with-initscripttype=both \ |
| 29 | --with-systemdunitdir=${systemd_unitdir}/system \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | --without-manual\ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 31 | " |
| 32 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 33 | do_install_append() { |
| 34 | # don't install empty /var/lock to avoid conflict with base-files |
| 35 | rm -rf ${D}${localstatedir}/lock |
| 36 | } |
| 37 | |
| 38 | RDEPENDS_${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | |
| 40 | # The drbd items are explicitly put under /lib when installed. |
| 41 | # |
| 42 | FILES_${PN} += "/run" |
| 43 | FILES_${PN} += "${nonarch_base_libdir}/drbd \ |
| 44 | ${nonarch_libdir}/drbd \ |
| 45 | ${nonarch_libdir}/tmpfiles.d" |
| 46 | FILES_${PN}-dbg += "${nonarch_base_libdir}/drbd/.debug" |