tags 606777 + pending thanks Dear maintainer,
Chris Butler has prepared an NMU for sendfile (versioned as 2.1b.20080616-4.1) and I've uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards. -- .''`. http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4 : :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe `- NP: Donovan: Abraham, Martin And John
diff -u sendfile-2.1b.20080616/debian/rules sendfile-2.1b.20080616/debian/rules
--- sendfile-2.1b.20080616/debian/rules
+++ sendfile-2.1b.20080616/debian/rules
@@ -54,7 +54,7 @@
$(installbin) -d debian/tmp/DEBIAN
chown -R root.root debian/tmp
chmod -R g-ws debian/tmp
- $(installbin) debian/{prerm,postinst,postrm} debian/tmp/DEBIAN
+ $(installbin) debian/{preinst,prerm,postinst,postrm} debian/tmp/DEBIAN
$(installdoc) debian/conffiles debian/tmp/DEBIAN
#
$(installbin) -d debian/tmp/usr/share/doc/$(package){,/german}
diff -u sendfile-2.1b.20080616/debian/changelog sendfile-2.1b.20080616/debian/changelog
--- sendfile-2.1b.20080616/debian/changelog
+++ sendfile-2.1b.20080616/debian/changelog
@@ -1,3 +1,11 @@
+sendfile (2.1b.20080616-4.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Check if /etc/cron.weekly/sendfile is unmodified when upgrading from
+ lenny, and remove it if so; avoids spurious dpkg warning (closes: #606777)
+
+ -- Chris Butler <[email protected]> Sun, 19 Dec 2010 15:31:42 +0000
+
sendfile (2.1b.20080616-4) unstable; urgency=low
* Terminate weekly cronjob (sf_cleenup) preemptively when no sendfile
only in patch2:
unchanged:
--- sendfile-2.1b.20080616.orig/debian/preinst
+++ sendfile-2.1b.20080616/debian/preinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# /etc/cron.weekly/sendfile was marked as a conffile in 2.1b.20080616-2.1.
+# dpkg will warn about local changes even if there aren't any, so if it's
+# unmodified then we remove it. (Bug #606777)
+
+if [ -f /etc/cron.weekly/sendfile ]; then
+ MD5="`md5sum /etc/cron.weekly/sendfile | sed -e 's/ .*//'`"
+ if dpkg --compare-versions "$2" lt "2.1b.20080616-2.1" && [ "${MD5}" = "fe757d596df419aaec4495a9645be94d" ]; then
+ rm /etc/cron.weekly/sendfile
+ fi
+fi
signature.asc
Description: Digital signature

