commit 201cb6739a14557a0ec8bf7c3dd171b4fc06afeb
Author: Jan RÄ™korajski <[email protected]>
Date:   Sat Dec 23 09:24:52 2023 +0100

    - add triggers for removed modules

 pam.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/pam.spec b/pam.spec
index 8daeb42..a333ab9 100644
--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pam.git/commitdiff/23fa49333acbd78ce8d4861c0734e45bd43d0437

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to