Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2020 16:03:06 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r558300 - head/sysutils/consolekit2
Message-ID:  <202012171603.0BHG36V5035365@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012171603.0BHG36V5035365>