Sun Nov 23 02:00:48 2008 UTC ()
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.
(jmcneill)
diff -r1.1.1.1 -r1.2 pkgsrc/security/policykit/Makefile
diff -r0 -r1.1 pkgsrc/security/policykit/files/PolicyKit.conf.NetBSD
--- pkgsrc/security/policykit/Makefile 2008/11/22 03:33:38 1.1.1.1
+++ pkgsrc/security/policykit/Makefile 2008/11/23 02:00:48 1.2
@@ -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/
@@ -39,6 +40,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"
<?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>