diff -u cups-pdf-2.5.0/debian/postinst cups-pdf-2.5.0/debian/postinst --- cups-pdf-2.5.0/debian/postinst +++ cups-pdf-2.5.0/debian/postinst @@ -4,16 +4,19 @@ set -e case "$1" in - configure|removing) + configure) + # Remove lint from possible upgrades. + rm -rf /var/spool/cups-pdf/SPOOL + # Sanitize ownerships and permissions. + chmod 0700 /usr/lib/cups/backend/cups-pdf if ! [ -f /var/log/cups/cups-pdf_log ] then touch /var/log/cups/cups-pdf_log fi - chown root:lpadmin /var/log/cups/cups-pdf_log* - chmod 0600 /var/log/cups/cups-pdf_log* + chown -R root:lpadmin /var/log/cups + chmod 0640 /var/log/cups/cups-pdf_log* chown nobody:nogroup /var/spool/cups-pdf/ANONYMOUS chmod 1777 /var/spool/cups-pdf/ANONYMOUS - chmod 0700 /usr/lib/cups/backend/cups-pdf # We need CUPS to reload its configuration before the backend is available. if [ -f /etc/init.d/cups ] then diff -u cups-pdf-2.5.0/debian/control cups-pdf-2.5.0/debian/control --- cups-pdf-2.5.0/debian/control +++ cups-pdf-2.5.0/debian/control @@ -2,15 +2,14 @@ Source: cups-pdf Section: graphics Priority: optional -Maintainer: Ubuntu Developers -XSBC-Original-Maintainer: Debian CUPS Maintainers +Maintainer: Debian CUPS Maintainers Uploaders: Martin-Éric Racine Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5) Standards-Version: 3.8.3 Package: cups-pdf Architecture: any -Depends: ghostscript, ${shlibs:Depends}, ${misc:Depends}, cups (>= 1.1.15), cups-client, libpaper-utils +Depends: cups (>= 1.1.15), cups-client, libpaper-utils, ghostscript, ${shlibs:Depends}, ${misc:Depends} Suggests: system-config-printer-gnome | system-config-printer-kde | system-config-printer Enhances: cups Description: PDF printer for CUPS diff -u cups-pdf-2.5.0/debian/dirs cups-pdf-2.5.0/debian/dirs --- cups-pdf-2.5.0/debian/dirs +++ cups-pdf-2.5.0/debian/dirs @@ -1,0 +2 @@ +var/log/cups diff -u cups-pdf-2.5.0/debian/changelog cups-pdf-2.5.0/debian/changelog --- cups-pdf-2.5.0/debian/changelog +++ cups-pdf-2.5.0/debian/changelog @@ -1,11 +1,27 @@ -cups-pdf (2.5.0-8ubuntu1) karmic; urgency=low +cups-pdf (2.5.0-12) unstable; urgency=low - * debian/control: - -Drop pre-depends and move them to normal depends. There is no - preinst anymore that requires the use of pre-depends. This - fixes a upgrade ordering bug (LP: #356781) + * Sanitized ownerships and permissions of all our files via postinst. + * Added cruft removal to postinst script. - -- Michael Vogt Wed, 21 Oct 2009 13:59:55 +0200 + -- Martin-Éric Racine Sun, 15 Nov 2009 11:38:11 +0000 + +cups-pdf (2.5.0-11) unstable; urgency=low + + * Reverted Pre-Depends:cups change from 1.6.3-3 (LP: #356781). + + -- Martin-Éric Racine Tue, 27 Oct 2009 11:59:22 +0000 + +cups-pdf (2.5.0-10) unstable; urgency=low + + * Removed 'removing' case from postinst (Closes: #552389). + + -- Martin-Éric Racine Mon, 26 Oct 2009 08:55:28 +0000 + +cups-pdf (2.5.0-9) unstable; urgency=low + + * Added explicit creation of /var/log/cups/ to debian/dirs (LP: #441123). + + -- Martin-Éric Racine Fri, 23 Oct 2009 14:47:32 +0000 cups-pdf (2.5.0-8) unstable; urgency=low