aboutsummaryrefslogtreecommitdiffstats
path: root/main/drbd-utils/drbdsetup-permissions.patch
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/drbdsetup-permissions.patch
parent63bec277b6059b07c4d245439a193825cc03498f (diff)
downloadaports-a225c651619e98e82e589a3abc29a7e4fcffaec1.tar.bz2
aports-a225c651619e98e82e589a3abc29a7e4fcffaec1.tar.xz
main/drbd-utils: fix permissions of drbdsetup
Diffstat (limited to 'main/drbd-utils/drbdsetup-permissions.patch')
-rw-r--r--main/drbd-utils/drbdsetup-permissions.patch21
1 files changed, 21 insertions, 0 deletions
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 ; \