]> git.pld-linux.org Git - packages/pam.git/commitdiff
- add triggers for removed modules
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 23 Dec 2023 08:24:52 +0000 (09:24 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 23 Dec 2023 08:24:52 +0000 (09:24 +0100)
pam.spec

index 8daeb423691277112bf013a589dba1a8e2c39295..a333ab97d53af022524d2466a26c7a81f7751df7 100644 (file)
--- a/pam.spec
+++ b/pam.spec
@@ -413,7 +413,15 @@ if [ "$1" != 1 ]; then
 fi
 exit 0
 
-%triggerpostun -- %{name} < 1:1.1.5-8
+%triggerpostun -- %{name} < 1:1.5.3
+# removed in 1.5.3
+if grep -qs pam_tally /etc/pam.d/system-auth; then
+       %{__sed} -i -e '/pam_tally/d' /etc/pam.d/system-auth
+fi
+if grep -qs pam_cracklib /etc/pam.d/system-auth; then
+       %{__sed} -i -e '/pam_cracklib/ s/pam_cracklib/pam_pwquality/; s/$/ use_authtok/' /etc/pam.d/system-auth
+fi
+
 # removed in 1.1.4
 if grep -qs change_uid /etc/pam.d/system-auth; then
        %{__sed} -i -e '/session/ s/change_uid//' /etc/pam.d/system-auth
This page took 0.155699 seconds and 4 git commands to generate.