svn commit: r496800 - head/sysutils/consolekit2

Tobias Kortkamp tobik at FreeBSD.org
Mon Mar 25 07:51:15 UTC 2019


Author: tobik
Date: Mon Mar 25 07:51:14 2019
New Revision: 496800
URL: https://svnweb.freebsd.org/changeset/ports/496800

Log:
  sysutils/consolekit2: Make ck-system-* scripts user editable
  
  This might be needed when using alternatives to init(8), like
  sysutils/runit-faster, which do not react well to signals send by
  shutdown(8)/reboot(8) and where you have to use other commands,
  like runit-init {0,6}.  By updating the ck-system-* scripts to run
  them instead, we can actually make use of things like the Xfce4
  logout dialog or Kodi's shutdown dialog with runit-faster.  But to
  make this permanent across updates the scripts have to be installed
  as sample files.
  
  PR:		236445
  Submitted by:	tobik
  Approved by:	gnome (maintainer timeout, 14 days)

Modified:
  head/sysutils/consolekit2/Makefile
  head/sysutils/consolekit2/pkg-plist

Modified: head/sysutils/consolekit2/Makefile
==============================================================================
--- head/sysutils/consolekit2/Makefile	Mon Mar 25 07:48:26 2019	(r496799)
+++ head/sysutils/consolekit2/Makefile	Mon Mar 25 07:51:14 2019	(r496800)
@@ -3,6 +3,7 @@
 
 PORTNAME=	consolekit
 PORTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	sysutils gnome
 MASTER_SITES=	https://github.com/ConsoleKit2/ConsoleKit2/releases/download/${PORTVERSION}/
 PKGNAMESUFFIX=	2
@@ -38,5 +39,12 @@ CONFIGURE_ARGS=	--with-pid-file=/var/run/${PORTNAME}.p
 		--disable-libudev \
 		--without-systemdsystemunitdir
 INSTALL_TARGET=	install-strip
+
+post-install:
+.for script in ck-system-hibernate ck-system-hybridsleep \
+	ck-system-restart ck-system-stop ck-system-suspend
+	cd ${STAGEDIR}${PREFIX}/lib/ConsoleKit/scripts && \
+		${MV} ${script} ${script}.sample
+.endfor
 
 .include <bsd.port.mk>

Modified: head/sysutils/consolekit2/pkg-plist
==============================================================================
--- head/sysutils/consolekit2/pkg-plist	Mon Mar 25 07:48:26 2019	(r496799)
+++ head/sysutils/consolekit2/pkg-plist	Mon Mar 25 07:51:14 2019	(r496800)
@@ -9,11 +9,11 @@ include/ConsoleKit/ck-connector/ck-connector.h
 include/ConsoleKit/libconsolekit.h
 lib/ConsoleKit/scripts/ck-get-x11-display-device
 lib/ConsoleKit/scripts/ck-get-x11-server-pid
-lib/ConsoleKit/scripts/ck-system-hibernate
-lib/ConsoleKit/scripts/ck-system-hybridsleep
-lib/ConsoleKit/scripts/ck-system-restart
-lib/ConsoleKit/scripts/ck-system-stop
-lib/ConsoleKit/scripts/ck-system-suspend
+ at sample lib/ConsoleKit/scripts/ck-system-hibernate.sample
+ at sample lib/ConsoleKit/scripts/ck-system-hybridsleep.sample
+ at sample lib/ConsoleKit/scripts/ck-system-restart.sample
+ at sample lib/ConsoleKit/scripts/ck-system-stop.sample
+ at sample lib/ConsoleKit/scripts/ck-system-suspend.sample
 lib/girepository-1.0/libconsolekit-1.0.typelib
 lib/libck-connector.so
 lib/libck-connector.so.0


More information about the svn-ports-head mailing list