Fix some directory and file permissions to restore some lost PolicyKit
functionality.
This commit is contained in:
parent
40fbd780a9
commit
f0e90a6ec8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228442
2 changed files with 4 additions and 4 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue