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 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