svn commit: r558300 - head/sysutils/consolekit2

Steve Wills swills at FreeBSD.org
Thu Dec 17 16:03:07 UTC 2020


Author: swills
Date: Thu Dec 17 16:03:06 2020
New Revision: 558300
URL: https://svnweb.freebsd.org/changeset/ports/558300

Log:
  sysutils/consolekit2: Add polkit build option
  
  PR:		231730
  Submitted by:	Ali Abdallah <ali.abdallah at suse.com> (original version)
  Approved by:	desktop@ (tcberner)

Modified:
  head/sysutils/consolekit2/Makefile   (contents, props changed)
  head/sysutils/consolekit2/pkg-plist   (contents, props changed)

Modified: head/sysutils/consolekit2/Makefile
==============================================================================
--- head/sysutils/consolekit2/Makefile	Thu Dec 17 15:55:52 2020	(r558299)
+++ head/sysutils/consolekit2/Makefile	Thu Dec 17 16:03:06 2020	(r558300)
@@ -15,9 +15,17 @@ COMMENT=	Framework for defining and tracking users
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libdbus-1.so:devel/dbus \
-		libpolkit-gobject-1.so:sysutils/polkit
+LIB_DEPENDS=	libdbus-1.so:devel/dbus
 
+OPTIONS_DEFINE=	POLKIT
+OPTIONS_DEFAULT=POLKIT
+OPTIONS_SUB=	yes
+
+POLKIT_DESC=	Build with Polkit support
+
+POLKIT_LIB_DEPENDS=	libpolkit-gobject-1.so:sysutils/polkit
+POLKIT_CONFIGURE_ENABLE=	polkit
+
 WRKSRC=		${WRKDIR}/ConsoleKit2-${PORTVERSION}
 USES=		gettext gmake gnome libtool localbase pathfix pkgconfig \
 		tar:bzip2 xorg
@@ -30,7 +38,6 @@ CONFIGURE_ARGS=	--with-pid-file=/var/run/${PORTNAME}.p
 		--enable-pam-module \
 		--with-pam-module-dir=${PREFIX}/lib \
 		--localstatedir=/var \
-		--enable-polkit \
 		--enable-introspection \
 		--without-html-dir \
 		--disable-udev-acl \

Modified: head/sysutils/consolekit2/pkg-plist
==============================================================================
--- head/sysutils/consolekit2/pkg-plist	Thu Dec 17 15:55:52 2020	(r558299)
+++ head/sysutils/consolekit2/pkg-plist	Thu Dec 17 16:03:06 2020	(r558300)
@@ -46,7 +46,7 @@ share/locale/bg/LC_MESSAGES/ConsoleKit2.mo
 share/locale/es/LC_MESSAGES/ConsoleKit2.mo
 share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo
 share/locale/ru/LC_MESSAGES/ConsoleKit2.mo
-share/polkit-1/actions/org.freedesktop.consolekit.policy
+%%POLKIT%%share/polkit-1/actions/org.freedesktop.consolekit.policy
 @dir etc/ConsoleKit/run-seat.d
 @dir etc/ConsoleKit/run-session.d
 @dir lib/ConsoleKit/run-seat.d


More information about the svn-ports-all mailing list