blob: 91eace5d305641e901f0807d1eb4b7240a129d84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.4 2008/11/24 14:50:43 wiz Exp $
#
POLICYKIT_VER= 0.9
DISTNAME= PolicyKit-${POLICYKIT_VER}
PKGNAME= policykit-${POLICYKIT_VER}
PKGREVISION= 2
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
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
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 "../../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"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|