svn commit: r348063 - head/sysutils/policykit
Koop Mast
kwm at FreeBSD.org
Thu Mar 13 13:36:05 UTC 2014
Author: kwm
Date: Thu Mar 13 13:36:04 2014
New Revision: 348063
URL: http://svnweb.freebsd.org/changeset/ports/348063
QAT: https://qat.redports.org/buildarchive/r348063/
Log:
Stageify, use new LIB_DEPEND syntax. use USES=gmake libtool.
Modified:
head/sysutils/policykit/Makefile
head/sysutils/policykit/pkg-plist
Modified: head/sysutils/policykit/Makefile
==============================================================================
--- head/sysutils/policykit/Makefile Thu Mar 13 13:34:34 2014 (r348062)
+++ head/sysutils/policykit/Makefile Thu Mar 13 13:36:04 2014 (r348063)
@@ -12,15 +12,14 @@ DISTNAME= PolicyKit-${PORTVERSION}
MAINTAINER= gnome at FreeBSD.org
COMMENT= Framework for controlling access to system-wide components
-LIB_DEPENDS= dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
- expat:${PORTSDIR}/textproc/expat2
+LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
+ libexpat.so:${PORTSDIR}/textproc/expat2
USERS= polkit
GROUPS= polkit
-USES= pathfix pkgconfig
+USES= gmake libtool pathfix pkgconfig
USE_GNOME= glib20 intlhack
-USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-gtk-doc \
@@ -36,7 +35,6 @@ LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT=MANPAGES
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMANPAGES}
@@ -44,24 +42,22 @@ BUILD_DEPENDS= ${LOCALBASE}/share/sgml/d
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
USE_GNOME+= libxslt:build
-MAN1= polkit-action.1 polkit-auth.1 polkit-config-file-validate.1 \
- polkit-policy-file-validate.1
-MAN5= PolicyKit.conf.5
-MAN8= PolicyKit.8
+PLIST_SUB+= MANPAGES=""
.else
CONFIGURE_ARGS+=--disable-man-pages
+PLIST_SUB+= MANPAGES="@comment "
.endif
post-install:
- ${MKDIR} ${PREFIX}/etc/PolicyKit
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/PolicyKit
if [ ! -f ${PREFIX}/etc/PolicyKit/PolicyKit.conf ]; then \
- ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \
- ${PREFIX}/etc/PolicyKit/PolicyKit.conf ; \
+ ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \
+ ${STAGEDIR}${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
+ ${STAGEDIR}${PREFIX}/etc/PolicyKit/PolicyKit.conf.dist
+ # this file is used for reloading rules, handle it in the plist.
+ @${RM} ${STAGEDIR}/var/lib/misc/PolicyKit.reload
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so.*
.include <bsd.port.mk>
Modified: head/sysutils/policykit/pkg-plist
==============================================================================
--- head/sysutils/policykit/pkg-plist Thu Mar 13 13:34:34 2014 (r348062)
+++ head/sysutils/policykit/pkg-plist Thu Mar 13 13:36:04 2014 (r348063)
@@ -33,14 +33,17 @@ lib/libpolkit-dbus.a
lib/libpolkit-dbus.la
lib/libpolkit-dbus.so
lib/libpolkit-dbus.so.2
+lib/libpolkit-dbus.so.2.0.0
lib/libpolkit-grant.a
lib/libpolkit-grant.la
lib/libpolkit-grant.so
lib/libpolkit-grant.so.2
+lib/libpolkit-grant.so.2.0.0
lib/libpolkit.a
lib/libpolkit.la
lib/libpolkit.so
lib/libpolkit.so.2
+lib/libpolkit.so.2.0.0
libdata/pkgconfig/polkit-dbus.pc
libdata/pkgconfig/polkit-grant.pc
libdata/pkgconfig/polkit.pc
@@ -52,6 +55,12 @@ libexec/polkit-resolve-exe-helper
libexec/polkit-revoke-helper
libexec/polkit-set-default-helper
libexec/polkitd-old
+%%MANPAGES%%man/man1/polkit-action.1.gz
+%%MANPAGES%%man/man1/polkit-auth.1.gz
+%%MANPAGES%%man/man1/polkit-config-file-validate.1.gz
+%%MANPAGES%%man/man1/polkit-policy-file-validate.1.gz
+%%MANPAGES%%man/man5/PolicyKit.conf.5.gz
+%%MANPAGES%%man/man8/PolicyKit.8.gz
share/PolicyKit/config.dtd
share/PolicyKit/policy/org.freedesktop.policykit.policy
share/dbus-1/interfaces/org.freedesktop.PolicyKit.AuthenticationAgent.xml
@@ -67,6 +76,8 @@ share/dbus-1/system-services/org.freedes
@unexec rm -rf /var/run/PolicyKit 2>/dev/null || true
@unexec rmdir /var/lib/PolicyKit 2>/dev/null || true
@unexec rmdir /var/lib/PolicyKit-public 2>/dev/null || true
+ at exec mkdir -p /var/lib/misc/
+ at exec touch /var/lib/misc/PolicyKit.reload
@unexec rm -f /var/lib/misc/PolicyKit.reload 2>/dev/null || true
@unexec rmdir /var/lib/misc 2>/dev/null || true
@cwd /
More information about the svn-ports-head
mailing list