From owner-svn-ports-all@freebsd.org Mon Mar 25 07:51:15 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE4061555734; Mon, 25 Mar 2019 07:51:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5511C851AE; Mon, 25 Mar 2019 07:51:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 26BFE4CD8; Mon, 25 Mar 2019 07:51:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2P7pFcT021100; Mon, 25 Mar 2019 07:51:15 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2P7pEkA021099; Mon, 25 Mar 2019 07:51:14 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201903250751.x2P7pEkA021099@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Mon, 25 Mar 2019 07:51:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r496800 - head/sysutils/consolekit2 X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/sysutils/consolekit2 X-SVN-Commit-Revision: 496800 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 5511C851AE X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.965,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2019 07:51:15 -0000 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 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