$NetBSD: patch-cmake_KF5AuthMacros.cmake,v 1.2 2019/08/27 20:11:28 markd Exp $ Allow overriding the dbus-1/system.d install directory --- cmake/KF5AuthMacros.cmake.orig 2019-08-03 19:51:11.000000000 +0000 +++ cmake/KF5AuthMacros.cmake @@ -32,12 +32,15 @@ # to a DBus policy to let the helper register on the system bus, and a service file for letting the helper # being automatically activated by the system bus. # *WARNING* You have to install the helper in ${KAUTH_HELPER_INSTALL_DIR} to make sure everything will work. + +set(KAUTH_DBUS_DIR ${KDE_INSTALL_DBUSDIR}/system.d/ CACHE PATH "DBus system directory") + function(KAUTH_INSTALL_HELPER_FILES HELPER_TARGET HELPER_ID HELPER_USER) if(KAUTH_HELPER_BACKEND_NAME STREQUAL "DBUS") configure_file(${KAUTH_STUB_FILES_DIR}/dbus_policy.stub ${CMAKE_CURRENT_BINARY_DIR}/${HELPER_ID}.conf) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${HELPER_ID}.conf - DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d/) + DESTINATION ${KAUTH_DBUS_DIR}) configure_file(${KAUTH_STUB_FILES_DIR}/dbus_service.stub ${CMAKE_CURRENT_BINARY_DIR}/${HELPER_ID}.service)