forked from pool/pam_kwallet6
d9225dd7e3
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks/pam_kwallet6?expand=0&rev=22
42 lines
1.9 KiB
Diff
42 lines
1.9 KiB
Diff
From ca7f4d4ee95f37d9de9d80b5bba7407e0d11c59a Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Thu, 14 Mar 2024 19:37:30 +0100
|
|
Subject: [PATCH 2/2] Use GNUInstallDirs instead of KDEInstallDirs
|
|
|
|
This installs rather generic files so it's not necessary to query Qt here.
|
|
---
|
|
CMakeLists.txt | 12 +++++-------
|
|
1 file changed, 5 insertions(+), 7 deletions(-)
|
|
|
|
Index: kwallet-pam-%{_plasma6_version}git.20240421T181146~fa8c240/CMakeLists.txt
|
|
===================================================================
|
|
--- kwallet-pam-%{_plasma6_version}git.20240421T181146~fa8c240.orig/CMakeLists.txt
|
|
+++ kwallet-pam-%{_plasma6_version}git.20240421T181146~fa8c240/CMakeLists.txt
|
|
@@ -12,7 +12,7 @@ find_package (ECM ${KF6_MIN_VERSION} REQ
|
|
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" )
|
|
|
|
include(CheckFunctionExists)
|
|
-include(KDEInstallDirs)
|
|
+include(GNUInstallDirs)
|
|
include(KDEClangFormat)
|
|
include(ECMConfiguredInstall)
|
|
include(KDEGitCommitHooks)
|
|
@@ -93,13 +93,11 @@ kde_clang_format(${ALL_CLANG_FORMAT_SOUR
|
|
|
|
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
|
|
|
|
-install(TARGETS ${library_name} DESTINATION ${KDE_INSTALL_LIBDIR}/security)
|
|
+install(TARGETS ${library_name} DESTINATION ${CMAKE_INSTALL_LIBDIR}/security)
|
|
|
|
configure_file(pam_kwallet_init.desktop.cmake ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop)
|
|
-
|
|
-install(PROGRAMS pam_kwallet_init DESTINATION ${KDE_INSTALL_LIBEXECDIR})
|
|
-
|
|
-install(FILES ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
|
|
+install(PROGRAMS pam_kwallet_init DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
|
|
+install(FILES ${CMAKE_BINARY_DIR}/pam_kwallet_init.desktop DESTINATION /etc/xdg/autostart/)
|
|
|
|
ecm_install_configured_files(INPUT plasma-kwallet-pam.service.in @ONLY DESTINATION
|
|
- ${KDE_INSTALL_SYSTEMDUSERUNITDIR})
|
|
+ ${CMAKE_INSTALL_PREFIX}/lib/systemd/user/)
|