summaryrefslogtreecommitdiff
path: root/security/policykit/Makefile
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2008-11-22 03:33:38 +0000
committerjmcneill <jmcneill>2008-11-22 03:33:38 +0000
commit2f590bd868f5b559fd6058a42fa3aa00eff40846 (patch)
tree89dc9363ed53c16439bc4e547a51bf456bd72dda /security/policykit/Makefile
parent1f19ae208c0e3ae608f40140ee83a15f3c7bfab0 (diff)
downloadpkgsrc-2f590bd868f5b559fd6058a42fa3aa00eff40846.tar.gz
Import policykit version 0.9.
PolicyKit is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes: It is a framework for centralizing the decision making process with respect to granting access to privileged operations for unprivileged applications. PolicyKit is specifically targeting applications in rich desktop environments on multi-user UNIX-like operating systems. It does not imply or rely on any exotic kernel features.
Diffstat (limited to 'security/policykit/Makefile')
-rw-r--r--security/policykit/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/security/policykit/Makefile b/security/policykit/Makefile
new file mode 100644
index 00000000000..aa51d52d006
--- /dev/null
+++ b/security/policykit/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/11/22 03:33:38 jmcneill Exp $
+#
+
+POLICYKIT_VER= 0.9
+DISTNAME= PolicyKit-${POLICYKIT_VER}
+PKGNAME= policykit-${POLICYKIT_VER}
+CATEGORIES= security
+MASTER_SITES= http://hal.freedesktop.org/releases/
+
+MAINTAINER= jmcneill@NetBSD.org
+HOMEPAGE= http://hal.freedesktop.org/
+COMMENT= Framework for managing admin policies and privileges
+
+PKG_SYSCONFSUBDIR= PolicyKit
+
+EGDIR= ${PREFIX}/share/examples/policykit
+CONF_FILES+= ${EGDIR}/PolicyKit.conf ${PKG_SYSCONFDIR}/PolicyKit.conf
+CONF_FILES+= ${EGDIR}/org.freedesktop.PolicyKit.conf ${PKG_SYSCONFBASE}/dbus-1/system.d/org.freedesktop.PolicyKit.conf
+#CONF_FILES+= ${EGDIR}/polkit ${PKG_SYSCONFBASE}/pam.d/polkit
+#CONF_FILES+= ${EGDIR}/polkit-bash-completion.sh ${PKG_SYSCONFDIR}/profile.d/polkit-bash-completion.sh
+
+BUILD_DEFS+= VARBASE
+BUILD_DEFS+= PKG_SYSCONFBASE
+
+GNU_CONFIGURE= YES
+USE_DIRS+= xdg-1.4
+USE_PKGLOCALEDIR= YES
+USE_TOOLS+= gmake intltool msgfmt perl pkg-config
+USE_LIBTOOL= YES
+
+POLICYKIT_USER?= polkit
+POLICYKIT_GROUP?= polkit
+PKG_GROUPS= ${POLICYKIT_GROUP}
+PKG_USERS= ${POLICYKIT_USER}:${POLICYKIT_GROUP}
+PKG_GROUPS_VARS+= POLICYKIT_GROUP
+PKG_USERS_VARS+= POLICYKIT_USER
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE:Q}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+CONFIGURE_ARGS+= --with-polkit-user=${POLICYKIT_USER}
+CONFIGURE_ARGS+= --with-polkit-group=${POLICYKIT_GROUP}
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/xmlcatmgr/buildlink3.mk"
+.include "../../sysutils/dbus/buildlink3.mk"
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.include "../../mk/pam.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"