blob: b16f1f49d832dda27470aa52126f128dc1552eb7 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# $NetBSD: Makefile,v 1.39 2022/01/25 19:40:46 wiz Exp $
DISTNAME= polkit-0.120
PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.freedesktop.org/wiki/Software/polkit
COMMENT= Authorization Manager
LICENSE= gnu-lgpl-v2
TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4
TOOL_DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools
TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
# autoreconf processing requires gtkdocize
TOOL_DEPENDS+= gtk-doc-[0-9]*:../../textproc/gtk-doc
NOT_PAX_MPROTECT_SAFE= lib/polkit-1/polkitd
GNU_CONFIGURE= yes
GNU_CONFIGURE_STRICT= no # has sub-configures
USE_LANGUAGES= c c++14
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config gmake perl
USE_TOOLS+= intltool msgfmt msgmerge xgettext
USE_TOOLS+= autoconf autoreconf automake
# XXX msgfmt: unknown option -- xml
_TOOLS_USE_PKGSRC.msgfmt= yes
# configure: error: *** A compiler with support for C++17 language features is required.
GCC_REQD+= 7
PKGCONFIG_OVERRIDE+= data/polkit-gobject-1.pc.in
PKGCONFIG_OVERRIDE+= data/polkit-agent-1.pc.in
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-polkitd-user=${POLKITD_USER}
CONFIGURE_ARGS+= --disable-libsystemd-login
CONFIGURE_ARGS+= --disable-libelogind
CONFIGURE_ARGS+= --with-duktape
.include "../../mk/bsd.prefs.mk"
POLKITD_USER?= polkitd
POLKITD_GROUP?= polkitd
PKG_GROUPS+= ${POLKITD_GROUP}
PKG_USERS+= ${POLKITD_USER}:${POLKITD_GROUP}
PKG_GECOS.${POLKITD_USER}= Polkit Daemon User
PKG_HOME.${POLKITD_USER}= ${VARBASE}
PKG_GROUPS_VARS+= POLKITD_GROUP
PKG_USERS_VARS+= POLKITD_USER
BUILD_DEFS+= VARBASE
REPLACE_PERL+= src/polkitbackend/toarray.pl
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/polkit
INSTALL_MAKE_FLAGS+= pamdir=${PREFIX}/share/examples/pam.d
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/polkit-1/rules.d \
${POLKITD_USER} ${POLKITD_GROUP} 700
OWN_DIRS_PERMS+= ${PREFIX}/share/polkit-1/rules.d \
${POLKITD_USER} ${POLKITD_GROUP} 700
MAKE_DIRS+= ${PKG_SYSCONFDIR}/dbus-1/system.d
SPECIAL_PERMS+= lib/polkit-1/polkit-agent-helper-1 ${SETUID_ROOT_PERMS}
SPECIAL_PERMS+= bin/pkexec ${SETUID_ROOT_PERMS}
CONF_FILES+= ${PREFIX}/share/examples/polkit/polkit-1/rules.d/50-default.rules \
${PKG_SYSCONFDIR}/polkit-1/rules.d/50-default.rules
.include "options.mk"
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths+= docs/man/pkexec.xml
SUBST_FILES.paths+= src/examples/org.freedesktop.policykit.examples.pkexec.policy.in
SUBST_SED.paths+= -e 's,/usr/bin/,${PREFIX}/bin/,g'
pre-configure:
cd ${WRKSRC} && autoreconf -fi
.include "../../lang/libduktape/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|