summaryrefslogtreecommitdiff
path: root/community/drbd/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/drbd/PKGBUILD')
-rw-r--r--community/drbd/PKGBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/community/drbd/PKGBUILD b/community/drbd/PKGBUILD
index 9c3a09793..bb150a493 100644
--- a/community/drbd/PKGBUILD
+++ b/community/drbd/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 86842 2013-03-22 19:15:09Z seblu $
+# $Id: PKGBUILD 90502 2013-05-12 23:31:07Z seblu $
# Maintainer: Sébastien Luttringer
pkgname=drbd
pkgver=8.4.2
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64' 'mips64el')
pkgdesc='Userland tools for Distributed Replicated Block Device'
url='http://www.drbd.org'
@@ -13,16 +13,20 @@ source=("http://oss.linbit.com/drbd/8.4/$pkgname-$pkgver.tar.gz"
"$pkgname.service")
backup=('etc/drbd.conf' 'etc/drbd.d/global_common.conf')
md5sums=('b081f1046adda1d51ba351c40a8b1107'
- 'afbb345094db49b0a474c0b4e51c0acd')
+ '7dc909b5895c0b5289d3ee0581d7d333')
+
+prepare() {
+ # fix hardcoded path in udev rules
+ sed -i 's,/sbin/drbdadm,/usr/bin/drbdadm,' $pkgname-$pkgver/scripts/drbd.rules
+}
build() {
cd $pkgname-$pkgver
- # fix hardcoded path in udev rules
- sed -i 's,/sbin/drbdadm,/usr/sbin/drbdadm,' scripts/drbd.rules
./configure \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
+ --sbindir=/usr/bin \
--with-distro=generic \
--with-utils \
--with-bashcompletion \
@@ -41,7 +45,7 @@ package() {
make DESTDIR="$pkgdir" install
# move forced /sbin binaries
cd "$pkgdir"
- mv sbin/* usr/sbin
+ mv sbin/* usr/bin
rmdir sbin
# move udev files
mv etc/udev usr/lib