git: eea23431754a - main - security/plasma6-kscreenlocker: fix detection of consolekit

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Sun, 03 Dec 2023 18:37:08 UTC
The branch main has been updated by tcberner:

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

commit eea23431754a639bc6ef39e5805a3bcb0aed5ae2
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2023-12-03 18:33:12 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2023-12-03 18:33:12 +0000

    security/plasma6-kscreenlocker: fix detection of consolekit
---
 security/plasma6-kscreenlocker/Makefile                       |  1 +
 .../files/patch-cmake_FindConsoleKit.cmake                    | 11 +++++++++++
 security/plasma6-kscreenlocker/pkg-plist                      |  1 +
 3 files changed, 13 insertions(+)

diff --git a/security/plasma6-kscreenlocker/Makefile b/security/plasma6-kscreenlocker/Makefile
index 7d761cec17d5..ab550f186da3 100644
--- a/security/plasma6-kscreenlocker/Makefile
+++ b/security/plasma6-kscreenlocker/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kscreenlocker
 DISTVERSION=	${KDE_PLASMA_VERSION}
+PORTREVISION=	1
 CATEGORIES=	security kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org
diff --git a/security/plasma6-kscreenlocker/files/patch-cmake_FindConsoleKit.cmake b/security/plasma6-kscreenlocker/files/patch-cmake_FindConsoleKit.cmake
new file mode 100644
index 000000000000..0e1d77056140
--- /dev/null
+++ b/security/plasma6-kscreenlocker/files/patch-cmake_FindConsoleKit.cmake
@@ -0,0 +1,11 @@
+--- cmake/FindConsoleKit.cmake.orig	2023-11-29 10:41:23 UTC
++++ cmake/FindConsoleKit.cmake
+@@ -4,7 +4,7 @@ find_program(cklistsessions_EXECUTABLE NAMES ck-list-s
+ # SPDX-License-Identifier: BSD-3-Clause
+ #=============================================================================
+ find_program(cklistsessions_EXECUTABLE NAMES ck-list-sessions)
+-find_program(qdbus_EXECUTABLE NAMES qdbus)
++find_program(qdbus_EXECUTABLE NAMES qdbus6 qdbus)
+ find_package_handle_standard_args(ConsoleKit
+     FOUND_VAR
+         ConsoleKit_FOUND
diff --git a/security/plasma6-kscreenlocker/pkg-plist b/security/plasma6-kscreenlocker/pkg-plist
index 499f83710ce2..09dbdf3a3fae 100644
--- a/security/plasma6-kscreenlocker/pkg-plist
+++ b/security/plasma6-kscreenlocker/pkg-plist
@@ -1,3 +1,4 @@
+bin/ck-unlock-session
 etc/pam.d/kde
 include/KScreenLocker/KScreenLocker/KsldApp
 include/KScreenLocker/KScreenLocker/kscreenlocker_export.h