summaryrefslogtreecommitdiff
path: root/security/policykit
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2008-11-23 02:00:48 +0000
committerjmcneill <jmcneill@pkgsrc.org>2008-11-23 02:00:48 +0000
commit7220d360cc164ced3e8f332c831f98e0370c33a2 (patch)
tree39a049f4258e3c38b970c23865566c2be42c1f1c /security/policykit
parent724e2a5ab04cc79223e5f10f0379bd21eb95331d (diff)
downloadpkgsrc-7220d360cc164ced3e8f332c831f98e0370c33a2.tar.gz
On NetBSD, install a default policy that allows password-less authentication
for root, password authentication for users in group wheel, and deny access to all others.
Diffstat (limited to 'security/policykit')
-rw-r--r--security/policykit/Makefile10
-rw-r--r--security/policykit/files/PolicyKit.conf.NetBSD13
2 files changed, 22 insertions, 1 deletions
diff --git a/security/policykit/Makefile b/security/policykit/Makefile
index aa51d52d006..70d17103d34 100644
--- a/security/policykit/Makefile
+++ b/security/policykit/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/11/22 03:33:38 jmcneill Exp $
+# $NetBSD: Makefile,v 1.2 2008/11/23 02:00:48 jmcneill Exp $
#
POLICYKIT_VER= 0.9
DISTNAME= PolicyKit-${POLICYKIT_VER}
PKGNAME= policykit-${POLICYKIT_VER}
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://hal.freedesktop.org/releases/
@@ -40,6 +41,13 @@ CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-polkit-user=${POLICYKIT_USER}
CONFIGURE_ARGS+= --with-polkit-group=${POLICYKIT_GROUP}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+post-install:
+ ${INSTALL_DATA} ${FILESDIR}/PolicyKit.conf.NetBSD ${EGDIR}/PolicyKit.conf
+.endif
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/xmlcatmgr/buildlink3.mk"
diff --git a/security/policykit/files/PolicyKit.conf.NetBSD b/security/policykit/files/PolicyKit.conf.NetBSD
new file mode 100644
index 00000000000..933bb287e83
--- /dev/null
+++ b/security/policykit/files/PolicyKit.conf.NetBSD
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
+
+<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
+"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
+
+<!-- See the manual page PolicyKit.conf(5) for file format -->
+
+<config version="0.1">
+ <match user="root">
+ <return result="yes"/>
+ </match>
+ <define_admin_auth group="wheel"/>
+</config>