Skip to content

Commit

Permalink
cmake: drop Debian specific PAM modules
Browse files Browse the repository at this point in the history
Having a per-distribution set in the upstream project (sddm) does not
scale well. Instead sddm can provide a default set that distributions
can opt out of with "cmake -DINSTALL_PAM_CONFIGURATION=off ..."
  • Loading branch information
evelikov committed Jan 24, 2024
1 parent 831f556 commit d6ab1ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 115 deletions.
18 changes: 6 additions & 12 deletions services/CMakeLists.txt
Expand Up @@ -20,18 +20,12 @@ endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/sddm-greeter.pam.in" "${CMAKE_CURRENT_BINARY_DIR}/sddm-greeter.pam")

if(INSTALL_PAM_CONFIGURATION)
if(EXISTS "/etc/debian_version")
install(FILES debian.sddm-autologin.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-autologin)
install(FILES debian.sddm-greeter.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-greeter)
install(FILES debian.sddm.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm)
if(HAVE_PAM_FAILLOCK)
install(FILES sddm-autologin.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-autologin)
else()
if(HAVE_PAM_FAILLOCK)
install(FILES sddm-autologin.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-autologin)
else()
install(FILES sddm-autologin-tally2.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-autologin)
endif()

install(FILES sddm.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sddm-greeter.pam" DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-greeter)
install(FILES sddm-autologin-tally2.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-autologin)
endif()

install(FILES sddm.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sddm-greeter.pam" DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d RENAME sddm-greeter)
endif()
32 changes: 0 additions & 32 deletions services/debian.sddm-autologin.pam

This file was deleted.

31 changes: 0 additions & 31 deletions services/debian.sddm-greeter.pam

This file was deleted.

40 changes: 0 additions & 40 deletions services/debian.sddm.pam

This file was deleted.

0 comments on commit d6ab1ff

Please sign in to comment.