summaryrefslogtreecommitdiffstats
path: root/debian/libpam-runtime.prerm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:22:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:22:53 +0000
commitf4b22a2f215f6f80558d9e4075c9de306c8b9953 (patch)
tree05142dd668b11fc304d1c15faa52dee3784f8fa0 /debian/libpam-runtime.prerm
parentAdding upstream version 1.5.2. (diff)
downloadpam-debian.tar.xz
pam-debian.zip
Adding debian version 1.5.2-6+deb12u1.debian/1.5.2-6+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/libpam-runtime.prerm')
-rw-r--r--debian/libpam-runtime.prerm20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/libpam-runtime.prerm b/debian/libpam-runtime.prerm
new file mode 100644
index 0000000..2690cc0
--- /dev/null
+++ b/debian/libpam-runtime.prerm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+# Packages including pam configurations need to include a block like
+# the following to arrange for removal of the PAM profile prior to
+# package removale. Libpam-runtime is special because it includes the
+# machinery for managing the profiles and because there is a check to
+# make sure at least one profile is enabled. Libpam-runtime can only
+# be removed in a situation where dpkg checks are being overriden; in
+# that case the resulting PAM config is likely to be broken anyway.
+# But we prefer to permit the removal if enough dpkg force options are
+# given than to create an infinite loop. So, this block is commented
+# out, left here as an example for other packages.
+
+
+# if [ "$1" = remove ] ; then
+# pam-auth-update --package --remove unix
+# fi
+
+#DEBHELPER#