summaryrefslogtreecommitdiff
path: root/community/drbd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-14 01:18:40 -0700
committerroot <root@rshg054.dnsready.net>2013-05-14 01:18:40 -0700
commit2e5b72e5e8dfb5199a9b0da7c76d052a456662c2 (patch)
treefa055d4e2f367acb518de6c4e06b77b6d8cbef75 /community/drbd
parent66cb4a487ad73063c6b000279a5d5558fb7603f5 (diff)
Tue May 14 01:18:40 PDT 2013
Diffstat (limited to 'community/drbd')
-rw-r--r--community/drbd/PKGBUILD16
-rw-r--r--community/drbd/drbd.service8
2 files changed, 14 insertions, 10 deletions
diff --git a/community/drbd/PKGBUILD b/community/drbd/PKGBUILD
index fc79acfde..62e027320 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')
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
diff --git a/community/drbd/drbd.service b/community/drbd/drbd.service
index ddd6c62b7..a8053fb05 100644
--- a/community/drbd/drbd.service
+++ b/community/drbd/drbd.service
@@ -7,13 +7,13 @@ Type=oneshot
RemainAfterExit=yes
# load config
-ExecStart=/usr/sbin/drbdadm adjust all
+ExecStart=/usr/bin/drbdadm adjust all
# user interruptible version of wait-connect all
-ExecStart=/usr/sbin/drbdadm wait-con-int
+ExecStart=/usr/bin/drbdadm wait-con-int
# become primary if configured
-ExecStart=/usr/sbin/drbdadm sh-b-pri all
+ExecStart=/usr/bin/drbdadm sh-b-pri all
# disconnect and detach all resources
-ExecStop=/usr/sbin/drbdadm down all
+ExecStop=/usr/bin/drbdadm down all
[Install]
WantedBy=multi-user.target