diff options
author | Steve Langasek <vorlon@debian.org> | 2008-12-28 01:31:21 -0600 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:20 -0800 |
commit | 65f06c6f86c3c538b4fb9e971b72246c4066f517 (patch) | |
tree | 13dc1cfb9dfab936d35143e7258df2644ddd429f /debian/libpam-modules.preinst | |
parent | 77244630ce373b906d4c18a08fcc9b4ac5dab4c8 (diff) | |
download | pam-65f06c6f86c3c538b4fb9e971b72246c4066f517.tar.gz pam-65f06c6f86c3c538b4fb9e971b72246c4066f517.tar.bz2 pam-65f06c6f86c3c538b4fb9e971b72246c4066f517.zip |
have libpam-modules Pre-Depend on ${misc:Depends} and add a debconf question to
the libpam-modules preinst, so we can reliably warn users about xscreensaver
and xlockmore before libpam-modules is unpacked; at the same time, clean up
the text of the libpam0g debconf template to not refer to the screensavers.
Diffstat (limited to 'debian/libpam-modules.preinst')
-rw-r--r-- | debian/libpam-modules.preinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/libpam-modules.preinst b/debian/libpam-modules.preinst new file mode 100644 index 00000000..5c106085 --- /dev/null +++ b/debian/libpam-modules.preinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +if dpkg --compare-versions "$2" lt-nl 0.99.10.0; then + db_version 2.0 + + if pidof xscreensaver xlockmore >/dev/null; then + db_input critical libpam-modules/disable-screensaver || true + db_go || true + fi +fi + +#DEBHELPER# |