git: ffcbd253b3b1 - main - security/plasma6-kwallet-pam: Install the PAM module into a correct location

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 03 Feb 2025 18:37:10 UTC
The branch main has been updated by arrowd:

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

commit ffcbd253b3b12640d2e502be33613293bdd8ce02
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-02-03 18:36:40 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-02-03 18:37:04 +0000

    security/plasma6-kwallet-pam: Install the PAM module into a correct location
---
 security/plasma6-kwallet-pam/Makefile                   |  1 +
 security/plasma6-kwallet-pam/files/patch-CMakeLists.txt | 11 +++++++++++
 security/plasma6-kwallet-pam/pkg-plist                  |  2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/security/plasma6-kwallet-pam/Makefile b/security/plasma6-kwallet-pam/Makefile
index fc57101bf941..03fd4cd5b336 100644
--- a/security/plasma6-kwallet-pam/Makefile
+++ b/security/plasma6-kwallet-pam/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kwallet-pam
 DISTVERSION=	${KDE_PLASMA_VERSION}
+PORTREVISION=	1
 CATEGORIES=	security kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org
diff --git a/security/plasma6-kwallet-pam/files/patch-CMakeLists.txt b/security/plasma6-kwallet-pam/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..2744da38a1d2
--- /dev/null
+++ b/security/plasma6-kwallet-pam/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2024-12-30 18:57:04 UTC
++++ CMakeLists.txt
+@@ -93,7 +93,7 @@ kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
+ 
+ kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
+ 
+-install(TARGETS ${library_name} DESTINATION ${KDE_INSTALL_LIBDIR}/security)
++install(TARGETS ${library_name} DESTINATION ${KDE_INSTALL_LIBDIR})
+ 
+ configure_file(pam_kwallet_init.desktop.cmake ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop)
+ 
diff --git a/security/plasma6-kwallet-pam/pkg-plist b/security/plasma6-kwallet-pam/pkg-plist
index 4c386481824f..af61cc239edf 100644
--- a/security/plasma6-kwallet-pam/pkg-plist
+++ b/security/plasma6-kwallet-pam/pkg-plist
@@ -1,4 +1,4 @@
 etc/xdg/autostart/pam_kwallet_init.desktop
 lib/libexec/pam_kwallet_init
-lib/security/pam_kwallet5.so
+lib/pam_kwallet5.so
 @comment lib/systemd/user/plasma-kwallet-pam.service