Fix directory installation paths.

Add sample policies adapted from Fedora. These are not installed by
default, you can install them manually or use them as starting point for
writing new policies.
This commit is contained in:
ajacoutot 2010-07-05 07:42:43 +00:00
parent 7101bcb229
commit 7f2e4d5345
3 changed files with 36 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2010/07/02 21:47:43 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.3 2010/07/05 07:42:43 ajacoutot Exp $
COMMENT= framework for granting privileged operations to users
@ -69,7 +69,11 @@ do-configure:
${CONFIGURE_ENV} ./autogen.sh ${CONFIGURE_ARGS}
post-install:
${INSTALL_DATA_DIR} \
${PREFIX}/share/examples/polkit/var/db/polkit-1/localauthority/10-vendor.d
${INSTALL_DATA} ${FILESDIR}/60-desktop-policy.conf \
${PREFIX}/share/examples/polkit/polkit-1/localauthority.conf.d/
${INSTALL_DATA} ${FILESDIR}/10-desktop-policy.pkla \
${PREFIX}/share/examples/polkit/var/db/polkit-1/localauthority/10-vendor.d/
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
[Desktop User Permissions]
Identity=unix-group:users
Action=org.gnome.clockapplet.mechanism.settimezone
ResultAny=no
ResultInactive=no
ResultActive=yes
[Desktop Administrator Permissions]
Identity=unix-group:wheel
Action=org.gnome.clockapplet.mechanism.*;org.freedesktop.devicekit.disks.*;org.freedesktop.RealtimeKit1.*
ResultAny=no
ResultInactive=no
ResultActive=yes

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/07/01 07:46:21 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.2 2010/07/05 07:42:43 ajacoutot Exp $
%%SHARED%%
@bin bin/pk-example-frobnicate
@bin bin/pkaction
@ -93,21 +93,27 @@ share/examples/polkit/polkit-1/nullbackend.conf.d/
@sample ${SYSCONFDIR}/polkit-1/nullbackend.conf.d/
share/examples/polkit/polkit-1/nullbackend.conf.d/50-nullbackend.conf
@sample ${SYSCONFDIR}/polkit-1/nullbackend.conf.d/50-nullbackend.conf
share/examples/polkit/var/
share/examples/polkit/var/db/
share/examples/polkit/var/db/polkit-1/
share/examples/polkit/var/db/polkit-1/localauthority/
share/examples/polkit/var/db/polkit-1/localauthority/10-vendor.d/
share/examples/polkit/var/db/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla
share/locale/da/LC_MESSAGES/polkit-1.mo
share/polkit-1/
share/polkit-1/actions/
share/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
share/polkit-1/actions/org.freedesktop.policykit.policy
@mode 0700
@sample /var/db/polkit-1/localauthority
@sample /var/db/polkit-1/localauthority/
@mode
@sample ${SYSCONFDIR}/polkit-1/10-vendor.d/
@sample /var/db/polkit-1/10-vendor.d/
@sample ${SYSCONFDIR}/polkit-1/20-org.d/
@sample /var/db/polkit-1/20-org.d/
@sample ${SYSCONFDIR}/polkit-1/30-site.d/
@sample /var/db/polkit-1/30-site.d/
@sample ${SYSCONFDIR}/polkit-1/50-local.d/
@sample /var/db/polkit-1/50-local.d/
@sample ${SYSCONFDIR}/polkit-1/90-mandatory.d/
@sample /var/db/polkit-1/90-mandatory.d/
@sample ${SYSCONFDIR}/polkit-1/localauthority/10-vendor.d/
@sample /var/db/polkit-1/localauthority/10-vendor.d/
@sample ${SYSCONFDIR}/polkit-1/localauthority/20-org.d/
@sample /var/db/polkit-1/localauthority/20-org.d/
@sample ${SYSCONFDIR}/polkit-1/localauthority/30-site.d/
@sample /var/db/polkit-1/localauthority/30-site.d/
@sample ${SYSCONFDIR}/polkit-1/localauthority/50-local.d/
@sample /var/db/polkit-1/localauthority/50-local.d/
@sample ${SYSCONFDIR}/polkit-1/localauthority/90-mandatory.d/
@sample /var/db/polkit-1/localauthority/90-mandatory.d/