Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2019 07:51:14 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496800 - head/sysutils/consolekit2
Message-ID:  <201903250751.x2P7pEkA021099@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
+@sample lib/ConsoleKit/scripts/ck-system-hibernate.sample
+@sample lib/ConsoleKit/scripts/ck-system-hybridsleep.sample
+@sample lib/ConsoleKit/scripts/ck-system-restart.sample
+@sample lib/ConsoleKit/scripts/ck-system-stop.sample
+@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



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