mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-24 16:06:26 -05:00
Fix PAM for Arch
This commit is contained in:
parent
e3ffaba058
commit
03832398f8
2 changed files with 8 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -32,3 +32,4 @@ Makefile.in
|
|||
/missing
|
||||
/stamp-h1
|
||||
*.in~
|
||||
pam/i3lock
|
||||
|
|
13
configure.ac
13
configure.ac
|
@ -77,6 +77,13 @@ AC_SEARCH_LIBS([ev_run], [ev], , [AC_MSG_FAILURE([cannot find the required ev_ru
|
|||
|
||||
AC_SEARCH_LIBS([shm_open], [rt])
|
||||
|
||||
# Use system-auth instead of login on Arch (TODO: Implement Gentoo as well)
|
||||
if [[ -f /etc/arch-release ]]; then
|
||||
echo "Using PAM for Arch"
|
||||
sed -i "s/^#auth include system-auth/auth include system-auth/g" ../pam/i3lock
|
||||
sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
|
||||
fi
|
||||
|
||||
# Only disable PAM on OpenBSD where i3lock uses BSD Auth instead
|
||||
case "$host" in
|
||||
*-openbsd*)
|
||||
|
@ -87,12 +94,6 @@ case "$host" in
|
|||
;;
|
||||
esac
|
||||
|
||||
# Use system-auth instead of login on Arch (TODO: Implement Gentoo as well)
|
||||
if [[ -f /etc/arch-release ]]; then
|
||||
sed -i "s/^#auth include system-auth/auth include system-auth/g" pam/i3lock
|
||||
sed -i "s/^auth include login/#auth include login/g" pam/i3lock
|
||||
fi
|
||||
|
||||
AC_SEARCH_LIBS([iconv_open], [iconv], , [AC_MSG_FAILURE([cannot find the required iconv_open() function despite trying to link with -liconv])])
|
||||
|
||||
dnl Each prefix corresponds to a source tarball which users might have
|
||||
|
|
Loading…
Add table
Reference in a new issue