Package: denyhosts Version: 2.6-6.1 Severity: normal I just nmu'ed denyhosts to fix two rc bugs. Patch is attached.
Michael -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-trunk-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages denyhosts depends on: ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip ii python 2.5.4-9 An interactive high-level object-o ii python-central 0.6.14+nmu2 register and build utility for Pyt denyhosts recommends no packages. denyhosts suggests no packages. -- no debconf information
diff -u denyhosts-2.6/debian/changelog denyhosts-2.6/debian/changelog --- denyhosts-2.6/debian/changelog +++ denyhosts-2.6/debian/changelog @@ -1,3 +1,13 @@ +denyhosts (2.6-6.1) unstable; urgency=low + + * Non-maintainer upload. + * Do not unconditionally delete logrotate file in postrm script. This breaks + all upgrades or makes the file silently disappear, although it should be + installed by the package. Patch the old postrm script to not delete the + file anymore. (Closes: #531627, #562555) + + -- Michael Meskes <mes...@debian.org> Sun, 24 Jan 2010 15:37:15 +0100 + denyhosts (2.6-6) unstable; urgency=low * fixed wrong warns in init script. Thanks to Marco Rodrigues diff -u denyhosts-2.6/debian/denyhosts.postrm denyhosts-2.6/debian/denyhosts.postrm --- denyhosts-2.6/debian/denyhosts.postrm +++ denyhosts-2.6/debian/denyhosts.postrm @@ -7,11 +7,10 @@ purge) rm -f /var/log/denyhosts /var/log/denyhosts.0 /var/log/denyhosts.[0-9].gz rm -fr /var/lib/denyhosts - rm -f /etc/logrotate.d/denyhosts ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - rm -f /etc/logrotate.d/denyhosts - ;; + ;; *) echo "postrm called with unknown argument \`$1'" >&2 only in patch2: unchanged: --- denyhosts-2.6.orig/debian/denyhosts.preinst +++ denyhosts-2.6/debian/denyhosts.preinst @@ -0,0 +1,14 @@ +#!/bin/sh +# preinst script for denyhosts + +set -e + +if dpkg --compare-versions "$2" lt 2.6-6.1 +then + sed -e 's#rm -f /etc/logrotate.d/denyhosts##g' < /var/lib/dpkg/info/denyhosts.postrm > /var/lib/dpkg/info/denyhosts.postrm.changed && \ + mv -f /var/lib/dpkg/info/denyhosts.postrm.changed /var/lib/dpkg/info/denyhosts.postrm +fi + +#DEBHELPER# + +exit 0