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)
This commit is contained in:
parent
c14ae21835
commit
d20f5e89e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496800
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user