aboutsummaryrefslogtreecommitdiffstats
path: root/main/drbd-utils
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-01-05 12:41:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-01-05 12:54:33 +0000
commita225c651619e98e82e589a3abc29a7e4fcffaec1 (patch)
tree0805e6111f7117f4d2367a7df3d24b83b7d9a757 /main/drbd-utils
parent63bec277b6059b07c4d245439a193825cc03498f (diff)
downloadaports-a225c651619e98e82e589a3abc29a7e4fcffaec1.tar.bz2
aports-a225c651619e98e82e589a3abc29a7e4fcffaec1.tar.xz
main/drbd-utils: fix permissions of drbdsetup
Diffstat (limited to 'main/drbd-utils')
-rw-r--r--main/drbd-utils/APKBUILD6
-rw-r--r--main/drbd-utils/drbdsetup-permissions.patch21
2 files changed, 26 insertions, 1 deletions
diff --git a/main/drbd-utils/APKBUILD b/main/drbd-utils/APKBUILD
index f8b3243bfc..e8508051cd 100644
--- a/main/drbd-utils/APKBUILD
+++ b/main/drbd-utils/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=drbd-utils
pkgver=8.9.5
-pkgrel=0
+pkgrel=1
pkgdesc="Network-based RAID 1"
url="http://www.drbd.org"
arch="all"
@@ -15,6 +15,7 @@ provides="drbd"
subpackages="$pkgname-doc $pkgname-pacemaker"
source="http://oss.linbit.com/drbd/drbd-utils-$pkgver.tar.gz
busybox-mv.patch
+ drbdsetup-permissions.patch
drbd.initd"
@@ -63,10 +64,13 @@ pacemaker() {
md5sums="197b56c27df329d42c54efda56634e09 drbd-utils-8.9.5.tar.gz
9bc7ecc7e6b336782f6a09c3366bf590 busybox-mv.patch
+a3043b04ca494d206fffb4e2d57d2a4a drbdsetup-permissions.patch
37a3e196fab9b4f568f79b3bfdee3081 drbd.initd"
sha256sums="2ca852d250df15089cdfe63c1bfb0aa9203bdf82c3cfd54b86108cc7135aeccd drbd-utils-8.9.5.tar.gz
ea7e76b4deb327c13b2efce7ed3b5a03440de3c721eb0565fd64bf99d34e6b24 busybox-mv.patch
+c091d3e655aefefbd9f7e50621b008b862275968181ecc23353b884111c49330 drbdsetup-permissions.patch
9ea7427be45fc184cb4a74b6a7b0d688859d38c7a35a96c6c586dedaf4ce30df drbd.initd"
sha512sums="3e391a42effa6906beac5a4eade24df23782f1f2717c7e49b4e70b84ca22890cd51e75d8fe5bed43324e33452d8fd1d6db3fd98bea12baf93cba49e9179ec0e2 drbd-utils-8.9.5.tar.gz
22da5e241a6e33868ad91edb44ca51381a05909151a2e3f945efff1568903d415b77689231a6df5ff9c1e4b095d6a8bb82fc725336d65fb191036c7e97b2e3bb busybox-mv.patch
+562ae8eee03148666fb6e6e700c1eb9086f6901e176ea6cd007e3ac4e39d1cdaf967064de74dc1ad620155996dc7011bd0e2abd1c9595ff9bf5f4413673726f3 drbdsetup-permissions.patch
bb465e32273aaba0b86ae681bc94c58bb51f542221f51ced197e22b316ce1bc9a0b4fe1f43af07ef13b3f0946466a43218f0a2ab7f4210adbb00174a503b64d7 drbd.initd"
diff --git a/main/drbd-utils/drbdsetup-permissions.patch b/main/drbd-utils/drbdsetup-permissions.patch
new file mode 100644
index 0000000000..ca0a3642ac
--- /dev/null
+++ b/main/drbd-utils/drbdsetup-permissions.patch
@@ -0,0 +1,21 @@
+--- ./user/v9/Makefile.in.orig
++++ ./user/v9/Makefile.in
+@@ -109,15 +109,9 @@
+ install -d $(DESTDIR)$(sbindir)
+ install -d $(DESTDIR)$(localstatedir)/lib/drbd
+ install -d $(DESTDIR)$(localstatedir)/lock
+- if getent group haclient > /dev/null 2> /dev/null ; then \
+- install -g haclient -m 4750 drbdsetup $(DESTDIR)$(sbindir) ; \
+- install -g haclient -m 4750 drbdmeta $(DESTDIR)$(sbindir) ; \
+- install -m 755 drbdadm $(DESTDIR)$(sbindir) ; \
+- else \
+- install -m 755 drbdsetup $(DESTDIR)$(sbindir) ; \
+- install -m 755 drbdmeta $(DESTDIR)$(sbindir) ; \
+- install -m 755 drbdadm $(DESTDIR)$(sbindir) ; \
+- fi
++ install -m 755 drbdsetup $(DESTDIR)$(sbindir) ; \
++ install -m 755 drbdmeta $(DESTDIR)$(sbindir) ; \
++ install -m 755 drbdadm $(DESTDIR)$(sbindir) ; \
+ if test -d $(DESTDIR)/sbin && \
+ ! test $(DESTDIR)/sbin -ef $(DESTDIR)$(sbindir) ; then \
+ ln -sf $(sbindir)/drbdsetup $(DESTDIR)/sbin ; \