diff options
Diffstat (limited to 'main/drbd/APKBUILD')
-rw-r--r-- | main/drbd/APKBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/main/drbd/APKBUILD b/main/drbd/APKBUILD new file mode 100644 index 0000000000..e4fd22a7f9 --- /dev/null +++ b/main/drbd/APKBUILD @@ -0,0 +1,63 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=drbd +pkgver=8.4.3 +pkgbase=${pkgver%.*} +pkgrel=1 +pkgdesc="Network-based RAID 1" +url="http://www.drbd.org" +arch="all" +license="GPL" +depends="bash" +depends_dev="bash bison flex" +makedepends="$depends_dev" +install= +subpackages="$pkgname-doc $pkgname-pacemaker" +source="http://oss.linbit.com/$pkgname/$pkgbase/$pkgname-$pkgver.tar.gz + $pkgname.initd" + + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + sed -i "s/mv --force/mv -f/" drbd/Makefile || return 1 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-pacemaker \ + --without-udev \ + --without-heartbeat \ + --without-rgmanager \ + --without-xen \ + --without-bashcompletion + + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + install -m755 -D "$srcdir/$pkgname.initd" \ + "$pkgdir/etc/init.d/$pkgname" || return 1 +} + +pacemaker() { + arch="noarch" + depends="drbd" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/ocf "$subpkgdir"/usr/lib +} + +md5sums="0c54a69603fa28b41de5fb33e03fd9e8 drbd-8.4.3.tar.gz +d60b4214a512a5dd450fb298cf421c97 drbd.initd" +sha256sums="abeb09309b77b533b8e738a601d703b338dce6e4d6cf59741e2f0693fbf94527 drbd-8.4.3.tar.gz +e91440fb27e4824fe171283f605f3f554f60facd903d3dfd304ab54b48676d48 drbd.initd" +sha512sums="cdc90bdd9491fe6d29e3b779d69ba2aac1aacdb336586f1ef414d0a0195d922dbefa8b2d9c4868a2476998a713c893403344a2934c7768ff6f4ba9f13bb7277a drbd-8.4.3.tar.gz +200e0203706fe5146ba266b518e6ff6ce61aa2cd2e3ca06cccabadff58df834dd61d700a375a31a2bc382f838f87d44c79b80fa15ade628aee345ee3431ede74 drbd.initd" |