git: 4c8bd4b56c10 - main - sysutils/consolekit2: Allow calls to the CanSuspendThenHibernate() method.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 04 Jul 2023 06:47:11 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c8bd4b56c1031f363db5b81a2b6b7a43957e41e

commit 4c8bd4b56c1031f363db5b81a2b6b7a43957e41e
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-07-04 06:46:17 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-07-04 06:47:08 +0000

    sysutils/consolekit2: Allow calls to the CanSuspendThenHibernate() method.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 sysutils/consolekit2/Makefile                         |  1 +
 sysutils/consolekit2/files/patch-data_ConsoleKit.conf | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/sysutils/consolekit2/Makefile b/sysutils/consolekit2/Makefile
index 57275c6f7e3b..9e1e64cd6561 100644
--- a/sysutils/consolekit2/Makefile
+++ b/sysutils/consolekit2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	consolekit
 PORTVERSION=	1.2.5
+PORTREVISION=	1
 CATEGORIES=	sysutils gnome
 PKGNAMESUFFIX=	2
 
diff --git a/sysutils/consolekit2/files/patch-data_ConsoleKit.conf b/sysutils/consolekit2/files/patch-data_ConsoleKit.conf
new file mode 100644
index 000000000000..f72e0af72deb
--- /dev/null
+++ b/sysutils/consolekit2/files/patch-data_ConsoleKit.conf
@@ -0,0 +1,12 @@
+--- data/ConsoleKit.conf.orig	2023-04-03 10:50:25 UTC
++++ data/ConsoleKit.conf
+@@ -56,6 +56,9 @@
+            send_member="CanSuspend"/>
+     <allow send_destination="org.freedesktop.ConsoleKit"
+            send_interface="org.freedesktop.ConsoleKit.Manager"
++           send_member="CanSuspendThenHibernate"/>
++    <allow send_destination="org.freedesktop.ConsoleKit"
++           send_interface="org.freedesktop.ConsoleKit.Manager"
+            send_member="Hibernate"/>
+     <allow send_destination="org.freedesktop.ConsoleKit"
+            send_interface="org.freedesktop.ConsoleKit.Manager"