diff options
author | tobik <tobik@FreeBSD.org> | 2019-03-25 15:51:14 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2019-03-25 15:51:14 +0800 |
commit | 1dc04c91d29fd688727b1fa091a5e3d06267069d (patch) | |
tree | 17a643630ce922280067bb75e63791606ed49db6 /sysutils/consolekit2 | |
parent | d0ae4bcd81469cdf171018ac29dbcd14c29a6c3b (diff) | |
download | freebsd-ports-gnome-1dc04c91d29fd688727b1fa091a5e3d06267069d.tar.gz freebsd-ports-gnome-1dc04c91d29fd688727b1fa091a5e3d06267069d.tar.zst freebsd-ports-gnome-1dc04c91d29fd688727b1fa091a5e3d06267069d.zip |
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)
Diffstat (limited to 'sysutils/consolekit2')
-rw-r--r-- | sysutils/consolekit2/Makefile | 8 | ||||
-rw-r--r-- | sysutils/consolekit2/pkg-plist | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/sysutils/consolekit2/Makefile b/sysutils/consolekit2/Makefile index e9895cc1d7fe..57f2a4af2d0b 100644 --- a/sysutils/consolekit2/Makefile +++ b/sysutils/consolekit2/Makefile @@ -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 @@ -39,4 +40,11 @@ CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \ --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> diff --git a/sysutils/consolekit2/pkg-plist b/sysutils/consolekit2/pkg-plist index a9fa2b823e3f..110873b5fd6d 100644 --- a/sysutils/consolekit2/pkg-plist +++ b/sysutils/consolekit2/pkg-plist @@ -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 |