Package: ecryptfs-utils
Version: 83-1+b1
Severity: normal
Tags: patch

The pam-auth-update command should be run on package installation and
removal to apply the configuration in the ecryptfs-utils.pam-auth-update
file.  Workaround is to manually run pam-auth-update as root after
installing or removing the package.

This patch incorporates the commands as found in other Debian packages
that depend on libpam-runtime.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ecryptfs-utils depends on:
ii  gettext-base                  0.18.1.1-1 GNU Internationalization utilities
ii  keyutils                      1.4-1      Linux Key Management Utilities
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libecryptfs0                  83-1+b1    ecryptfs cryptographic filesystem 
ii  libgpg-error0                 1.6-1      library for common error values an
ii  libgpgme11                    1.2.0-1.2  GPGME - GnuPG Made Easy
ii  libkeyutils1                  1.4-1      Linux Key Management Utilities (li
ii  libnss3-1d                    3.12.6-3   Network Security Service libraries
ii  libpam-runtime                1.1.1-4    Runtime support for the PAM librar
ii  libpam0g                      1.1.1-4    Pluggable Authentication Modules l

ecryptfs-utils recommends no packages.

Versions of packages ecryptfs-utils suggests:
ii  cryptsetup                    2:1.1.3-3  configures encrypted block devices
pn  opencryptoki                  <none>     (no description available)

-- no debconf information

diff --git a/debian/ecryptfs-utils.postinst b/debian/ecryptfs-utils.postinst
index bc830c6..90680b0 100644
--- a/debian/ecryptfs-utils.postinst
+++ b/debian/ecryptfs-utils.postinst
@@ -26,6 +26,8 @@ case "${1}" in
 		;;
 esac
 
+pam-auth-update --package
+
 #DEBHELPER#
 
 exit 0
diff --git a/debian/ecryptfs-utils.prerm b/debian/ecryptfs-utils.prerm
new file mode 100644
index 0000000..80cd5ba
--- /dev/null
+++ b/debian/ecryptfs-utils.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = remove ]; then
+	pam-auth-update --package --remove ecryptfs-utils
+fi
+
+exit 0

Reply via email to