mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kcheckpass: make use of the PERMISSIONS option of install()
upstream commit:
15057ce538
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c89fa21c61
commit
951ca60c44
1 changed files with 9 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
include_directories(${UNIXAUTH_INCLUDE_DIRS} )
|
||||
include_directories(${UNIXAUTH_INCLUDE_DIRS})
|
||||
|
||||
check_include_files(paths.h HAVE_PATHS_H)
|
||||
|
||||
|
@ -23,11 +23,15 @@ target_link_libraries(kcheckpass
|
|||
${SOCKET_LIBRARIES}
|
||||
)
|
||||
|
||||
if (PAM_FOUND)
|
||||
set(kcheckpass_suid "")
|
||||
else()
|
||||
set(kcheckpass_suid "SETUID")
|
||||
message(WARNING "PAM not found, will install kcheckpass SUID")
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS kcheckpass
|
||||
DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR}
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ${kcheckpass_suid}
|
||||
)
|
||||
install(CODE "
|
||||
set(KCP_PATH \"\$ENV{DESTDIR}${KDE4_LIBEXEC_INSTALL_DIR}/kcheckpass\")
|
||||
EXECUTE_PROCESS(COMMAND sh -c \"chown root '\${KCP_PATH}' && chmod +s '\${KCP_PATH}'\")
|
||||
")
|
||||
|
|
Loading…
Add table
Reference in a new issue