summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-20 00:39:11 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:25 -0800
commitd045b57c7d94f08cbe46b0c2515d54986b41f37d (patch)
treef10d863c78896ad02289b195e17e67264fad0b9a /debian
parentce664b3e918128e6394626f848ab24fb69703626 (diff)
libpam-cracklib: versioned depend on libpam-runtime, and invoke pam-auth-config
in the postinst
Diffstat (limited to 'debian')
-rw-r--r--debian/control2
-rw-r--r--debian/libpam-cracklib.postinst9
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index f5d1a0d9..ed4a4f8d 100644
--- a/debian/control
+++ b/debian/control
@@ -72,7 +72,7 @@ Package: libpam-cracklib
Priority: optional
Architecture: any
Replaces: libpam0g-cracklib
-Depends: ${shlibs:Depends}, cracklib-runtime, wamerican | wordlist
+Depends: ${shlibs:Depends}, libpam-runtime (>= 1.0.1-3), cracklib-runtime, wamerican | wordlist
Description: PAM module to enable cracklib support
This package includes libpam_cracklib, a PAM module that tests
passwords to make sure they are not too weak during password change.
diff --git a/debian/libpam-cracklib.postinst b/debian/libpam-cracklib.postinst
new file mode 100644
index 00000000..6c8b85f4
--- /dev/null
+++ b/debian/libpam-cracklib.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if dpkg --compare-versions "$2" lt 1.0.1-3; then
+ /usr/sbin/pam-auth-config
+fi
+
+#DEBHELPER#