summaryrefslogtreecommitdiffstats
path: root/sysutils/policykit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/policykit/Makefile')
-rw-r--r--sysutils/policykit/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/sysutils/policykit/Makefile b/sysutils/policykit/Makefile
new file mode 100644
index 000000000..b37a85d4a
--- /dev/null
+++ b/sysutils/policykit/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: PolicyKit
+# Date Created: 01 May 2006
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= policykit
+PORTVERSION= 0.9
+PORTREVISION= 2
+CATEGORIES= sysutils gnome
+MASTER_SITES= http://hal.freedesktop.org/releases/
+DISTNAME= PolicyKit-${PORTVERSION}
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Framework for controlling access to system-wide components
+
+BUILD_DEPENDS= ${LOCALBASE}/share/sgml/docbook/4.1/catalog:${PORTSDIR}/textproc/docbook-410 \
+ xsltproc:${PORTSDIR}/textproc/libxslt \
+ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
+LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
+ expat.6:${PORTSDIR}/textproc/expat2
+
+USE_GNOME= gnomehack gnometarget glib20 intlhack
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+CONFIGURE_ARGS= --disable-gtk-doc \
+ --with-pam-include=system \
+ --with-os-type=freebsd \
+ --localstatedir=/var \
+ --with-polkit-user=polkit \
+ --with-polkit-group=polkit
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ GTKDOC="false"
+
+MAN1= polkit-action.1 polkit-auth.1 polkit-config-file-validate.1 \
+ polkit-policy-file-validate.1
+MAN5= PolicyKit.conf.5
+MAN8= PolicyKit.8
+
+post-install:
+ ${MKDIR} ${PREFIX}/etc/PolicyKit
+ if [ ! -f ${PREFIX}/etc/PolicyKit/PolicyKit.conf ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \
+ ${PREFIX}/etc/PolicyKit/PolicyKit.conf ; \
+ fi
+ ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \
+ ${PREFIX}/etc/PolicyKit/PolicyKit.conf.dist
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
+.include <bsd.port.mk>