2018-04-29 09:05:44 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.72 2018/04/29 09:05:44 ajacoutot Exp $
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
COMMENT= framework for granting privileged operations to users
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
DISTNAME= polkit-0.114
|
2018-04-29 09:05:44 +00:00
|
|
|
REVISION= 0
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2012-11-20 14:11:48 +00:00
|
|
|
SHARED_LIBS += polkit-gobject-1 2.0 # .0.0
|
|
|
|
SHARED_LIBS += polkit-agent-1 2.0 # .0.0
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
CATEGORIES= sysutils security
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
HOMEPAGE= http://www.freedesktop.org/wiki/Software/polkit
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2010-07-01 07:46:21 +00:00
|
|
|
|
|
|
|
# GPLv2+
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c expat gio-2.0 glib-2.0 gobject-2.0
|
|
|
|
WANTLIB += intl mozjs-52
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
MASTER_SITES= http://www.freedesktop.org/software/polkit/releases/
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-10 23:42:49 +00:00
|
|
|
# C++11
|
|
|
|
COMPILER= base-clang ports-gcc
|
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
MODULES= lang/python \
|
|
|
|
textproc/intltool
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-08 09:40:40 +00:00
|
|
|
BUILD_DEPENDS= devel/gobject-introspection
|
|
|
|
|
2014-03-16 09:16:27 +00:00
|
|
|
# man pages
|
2018-04-07 10:55:22 +00:00
|
|
|
BUILD_DEPENDS+= textproc/docbook-xsl
|
2010-07-08 15:20:45 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
devel/spidermonkey52
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2015-04-04 09:30:30 +00:00
|
|
|
# /usr/local/share/dbus-1/system-services/
|
2018-04-07 10:55:22 +00:00
|
|
|
RUN_DEPENDS += x11/dbus,-suid
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --disable-libelogind \
|
|
|
|
--disable-libsystemd-login \
|
|
|
|
--with-os-type=openbsd \
|
|
|
|
--with-authfw=bsdauth \
|
|
|
|
--with-polkitd-user=_polkitd
|
2011-04-07 11:12:12 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
# fgetgrent, fgetpwent
|
|
|
|
CONFIGURE_ARGS += --disable-test
|
2010-07-01 07:46:21 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
MODPY_BUILDDEP= No
|
|
|
|
MODPY_RUNDEP= No
|
|
|
|
USE_GMAKE= Yes
|
2014-03-26 14:56:23 +00:00
|
|
|
|
2018-04-07 10:55:22 +00:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/polkit
|
2014-03-26 14:56:23 +00:00
|
|
|
|
2010-07-01 07:46:21 +00:00
|
|
|
pre-configure:
|
2014-03-09 22:26:56 +00:00
|
|
|
perl -pi \
|
|
|
|
-e "s,/usr/bin/pkexec,${PREFIX}/bin/pkexec,g;" \
|
|
|
|
-e "s,/usr/bin/python,${MODPY_BIN},g;" \
|
|
|
|
-e "s,/usr/bin/my-pk-test,${PREFIX}/bin/my-pk-test,g;" \
|
|
|
|
-e "s,/usr/share/polkit-1,${PREFIX}/share/polkit-1,g;" \
|
|
|
|
-e "s,/etc/polkit-1,${SYSCONFDIR}/polkit-1,g;" \
|
|
|
|
-e "s,/usr/bin/bash,${LOCALBASE}/bin/bash,g;" \
|
|
|
|
-e "s,/usr/bin/cat,/bin/cat,g;" \
|
|
|
|
-e "s,/usr/bin/pk-example-frobnicate,${PREFIX}/bin/pk-example,g;" \
|
|
|
|
-e "s,>/etc<,>${SYSCONFDIR}<,g;" \
|
|
|
|
-e "s,>/usr<,>${PREFIX}<,g" \
|
|
|
|
${WRKSRC}/docs/man/pkexec.xml \
|
2012-11-20 14:11:48 +00:00
|
|
|
${WRKSRC}/docs/man/polkit.xml \
|
|
|
|
${WRKSRC}/docs/extensiondir.xml \
|
2010-07-01 07:46:21 +00:00
|
|
|
${WRKSRC}/src/examples/org.freedesktop.policykit.examples.pkexec.policy.in
|
2014-03-09 22:26:56 +00:00
|
|
|
|
2010-07-01 07:46:21 +00:00
|
|
|
.include <bsd.port.mk>
|