1 # Contributor: Harald Ersch <harald@ersch.ro>
2 # Maintainer: Edvinas Valatka <edacval@gmail.com>
7 pkgdesc="A userland tools for drbd block device which is designed to build high availability clusters."
8 url="http://www.drbd.org"
10 options=(!distcc !makeflags)
11 depends=('linux' 'linux-headers' 'bash-completion')
12 optdepends=('ha-pacemaker: if you are planning to use the Pacemaker cluster resource manager' \
13 'ha-heartbeat: if you are planning to use DRBD’s Heartbeat v1 resource agent or dopd')
15 source=(http://oss.linbit.com/drbd/8.4/drbd-$pkgver.tar.gz kernel-3.1.patch)
16 md5sums=('8519246dff4e2de14595d71abcd54db4'
17 '1667cb931231d64b7b492951a5a5369c')
18 backup=('etc/drbd.conf' 'etc/rc.d/drbd')
19 install='drbd.install'
21 cd $srcdir/drbd-$pkgver
22 ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-km=no \
23 --with-initdir=/etc/rc.d --with-utils=yes --with-bashcompletion=yes \
24 --with-udev=yes --with-distro=generic
25 patch -N -p1 -i ../../kernel-3.1.patch
26 make DESTDIR=$pkgdir clean all install || return 1
27 sed -i -e 's#/etc/init.d/drbd#/etc/rc.d/drbd#' $pkgdir/etc/rc.d/drbd || return 1
28 chmod 1777 $pkgdir/var/lock