# Contributor: Leonardo Arena # Maintainer: pkgname=drbd pkgver=8.3.10 pkgbase=8.3 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="7d80edc2da10de5bfffe0ca9e9996fed drbd-8.3.10.tar.gz f1c9e2fa7afd249284b7615f5d2c8254 drbd.initd"