1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= policykit |
4 |
PORTVERSION= 0.9 |
5 |
PORTREVISION= 9 |
6 |
CATEGORIES= sysutils gnome |
7 |
MASTER_SITES= http://hal.freedesktop.org/releases/ |
8 |
DISTNAME= PolicyKit-${PORTVERSION} |
9 |
|
10 |
MAINTAINER= ports@MidnightBSD.org |
11 |
COMMENT= Framework for controlling access to system-wide components |
12 |
|
13 |
LICENSE= mit |
14 |
|
15 |
LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \ |
16 |
libexpat.so:${PORTSDIR}/textproc/expat2 |
17 |
|
18 |
USERS= polkit |
19 |
GROUPS= polkit |
20 |
|
21 |
USES= gettext gmake libtool:keepla pathfix pkgconfig |
22 |
USE_GNOME= glib20 intlhack |
23 |
GNU_CONFIGURE= yes |
24 |
USE_LDCONFIG= yes |
25 |
CONFIGURE_ARGS= --disable-gtk-doc \ |
26 |
--with-pam-include=system \ |
27 |
--with-os-type=freebsd \ |
28 |
--localstatedir=/var \ |
29 |
--with-polkit-user=polkit \ |
30 |
--with-polkit-group=polkit |
31 |
CONFIGURE_ENV= GTKDOC="false" |
32 |
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4 |
33 |
CPPFLAGS+= -I${LOCALBASE}/include |
34 |
LDFLAGS+= -L${LOCALBASE}/lib |
35 |
|
36 |
OPTIONS_DEFINE= MANPAGES |
37 |
OPTIONS_DEFAULT=MANPAGES |
38 |
|
39 |
.include <bsd.mport.options.mk> |
40 |
|
41 |
.if ${PORT_OPTIONS:MMANPAGES} |
42 |
BUILD_DEPENDS= ${LOCALBASE}/share/sgml/docbook/4.1:${PORTSDIR}/textproc/docbook-sgml \ |
43 |
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl |
44 |
USE_GNOME+= libxslt:build |
45 |
|
46 |
PLIST_SUB+= MANPAGES="" |
47 |
.else |
48 |
CONFIGURE_ARGS+=--disable-man-pages |
49 |
PLIST_SUB+= MANPAGES="@comment " |
50 |
.endif |
51 |
|
52 |
post-install: |
53 |
${MKDIR} ${PREFIX}/etc/PolicyKit |
54 |
if [ ! -f ${PREFIX}/etc/PolicyKit/PolicyKit.conf ]; then \ |
55 |
${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \ |
56 |
${PREFIX}/etc/PolicyKit/PolicyKit.conf ; \ |
57 |
fi |
58 |
${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \ |
59 |
${PREFIX}/etc/PolicyKit/PolicyKit.conf.dist |
60 |
# this file is used for reloading rules, handle it in the plist. |
61 |
@${RM} ${FAKE_DESTDIR}/var/lib/misc/PolicyKit.reload |
62 |
@${STRIP_CMD} ${PREFIX}/lib/lib*.so.* |
63 |
|
64 |
.include <bsd.port.mk> |