aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/policykit
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-02-16 03:31:12 +0800
committermarcus <marcus@FreeBSD.org>2009-02-16 03:31:12 +0800
commitc706134ccf7ec6967e7df94bd6448c8559039c23 (patch)
tree8e3f9e0038311e9b9552f280759229edbd1b11e0 /sysutils/policykit
parentc5dcda18bb9a334032140772b5b6211872a17788 (diff)
downloadfreebsd-ports-gnome-c706134ccf7ec6967e7df94bd6448c8559039c23.tar.gz
freebsd-ports-gnome-c706134ccf7ec6967e7df94bd6448c8559039c23.tar.zst
freebsd-ports-gnome-c706134ccf7ec6967e7df94bd6448c8559039c23.zip
Fix some directory and file permissions to restore some lost PolicyKit
functionality.
Diffstat (limited to 'sysutils/policykit')
-rw-r--r--sysutils/policykit/Makefile2
-rw-r--r--sysutils/policykit/pkg-install6
2 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/policykit/Makefile b/sysutils/policykit/Makefile
index bcf4f126560b..b0987ea4e079 100644
--- a/sysutils/policykit/Makefile
+++ b/sysutils/policykit/Makefile
@@ -8,7 +8,7 @@
PORTNAME= policykit
PORTVERSION= 0.9
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= http://hal.freedesktop.org/releases/
DISTNAME= PolicyKit-${PORTVERSION}
diff --git a/sysutils/policykit/pkg-install b/sysutils/policykit/pkg-install
index 3d49ff2062ef..82361661e92d 100644
--- a/sysutils/policykit/pkg-install
+++ b/sysutils/policykit/pkg-install
@@ -34,11 +34,11 @@ POST-INSTALL)
/usr/bin/install -d -o root -m 0770 -g ${GROUP} /var/run/PolicyKit
/usr/bin/install -d -o root -m 0770 -g ${GROUP} /var/lib/PolicyKit
- /usr/bin/install -d -o root -m 0775 -g ${GROUP} /var/lib/PolicyKit-public
+ /usr/bin/install -d -o ${USER} -m 0755 -g wheel /var/lib/PolicyKit-public
/bin/mkdir -p /var/lib/misc
/usr/bin/touch -f /var/lib/misc/PolicyKit.reload
- /usr/bin/chgrp ${GROUP} /var/lib/misc/PolicyKit.reload
- /bin/chmod 0775 /var/lib/misc/PolicyKit.reload
+ /usr/bin/chown ${USER}:${GROUP} /var/lib/misc/PolicyKit.reload
+ /bin/chmod 0664 /var/lib/misc/PolicyKit.reload
for i in ${PKG_PREFIX}/libexec/polkit-read-auth-helper ${PKG_PREFIX}/libexec/polkit-set-default-helper ${PKG_PREFIX}/libexec/polkit-grant-helper ${PKG_PREFIX}/libexec/polkit-grant-helper-pam ${PKG_PREFIX}/libexec/polkit-explicit-grant-helper ${PKG_PREFIX}/libexec/polkit-revoke-helper /var/lib/misc/PolicyKit.reload; do
/usr/bin/chgrp ${GROUP} ${i}
done