Followup-For: Bug #563065 Control: tag -1 patch Hi,
I'm adding a small patch that actually backports pam_shield.cron from 0.9.6 as found in experimental. This exits with 0 if the package was removed. I plan to NMU libpam-shield in a few days with this patch and hope we can still get this fix into wheezy. Andreas
diff -u pam-shield-0.9.2/debian/changelog pam-shield-0.9.2/debian/changelog --- pam-shield-0.9.2/debian/changelog +++ pam-shield-0.9.2/debian/changelog @@ -1,3 +1,12 @@ +pam-shield (0.9.2-3.4) unstable; urgency=low + + * Non-maintainer upload. + * cron_fix.patch: Update patch and use pam_shield.cron from 0.9.6. Let the + cronjob skip gracefully with exit code 0 after the package was removed. + (Closes: #563065) + + -- Andreas Beckmann <a...@debian.org> Wed, 30 Jan 2013 22:03:41 +0100 + pam-shield (0.9.2-3.3) unstable; urgency=high * Non-maintainer upload. diff -u pam-shield-0.9.2/debian/patches/cron_fix.patch pam-shield-0.9.2/debian/patches/cron_fix.patch --- pam-shield-0.9.2/debian/patches/cron_fix.patch +++ pam-shield-0.9.2/debian/patches/cron_fix.patch @@ -1,8 +1,9 @@ ---- a/pam_shield.cron 2008-05-01 17:52:01.000000000 +0200 -+++ b/pam_shield.cron 2008-05-01 17:52:21.000000000 +0200 -@@ -1,4 +1,4 @@ +--- a/pam_shield.cron ++++ b/pam_shield.cron +@@ -1,4 +1,5 @@ #! /bin/sh -/usr/sbin/shield-purge -c /etc/security/shield.conf -+[ -x /usr/sbin/shield-purge ] && /usr/sbin/shield-purge -c /etc/security/shield.conf ++if [ -x /usr/sbin/shield-purge ]; then /usr/sbin/shield-purge -c /etc/security/shield.conf ++fi