--- cups-pdf-2.5.0.orig/debian/prerm +++ cups-pdf-2.5.0/debian/prerm @@ -0,0 +1,29 @@ +#! /bin/sh +# prerm script for cups-pdf + +set -e + +case "$1" in + remove) + # Remove all PDF queues (only if CUPS daemon is running) + if `lpstat -r > /dev/null 2>&1` + then + for queue in `LC_ALL=C lpstat -v 2>/dev/null | grep 'cups-pdf:/' | cut -d ':' -f 1 | cut -d ' ' -f 3` + do + lpadmin -x $queue 2>/dev/null || : + done + fi + ;; + upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- cups-pdf-2.5.0.orig/debian/rules +++ cups-pdf-2.5.0/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f +# +# CDBS debian/rules for cups-pdf 1.7 +# Martin-Eric Racine +# +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/utils.mk +include /usr/share/cdbs/1/class/langcore.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +CC=gcc + +clean:: + rm -f src/*.o src/cups-pdf + +build-arch: + $(CC) $(CFLAGS) $(LDFLAGS) src/cups-pdf.c -o src/cups-pdf + +common-binary-post-install-arch:: list-missing +#EOF --- cups-pdf-2.5.0.orig/debian/changelog +++ cups-pdf-2.5.0/debian/changelog @@ -0,0 +1,797 @@ +cups-pdf (2.5.0-2ubuntu1) karmic; urgency=low + + * Merge from debian unstable, remaining changes: (LP: #373501) + - debian/postinst, debian/prerm: Let PDF print queue being created + automatically when installing the package and being removed + automatically when uninstalling the package. + - debian/postinst: Updated PPD file name to the new one used by the + upstream package (LP: #241701). Updated the name of the CUPS startup + script to "cups". + * debian/postrm: Changed cups checking command from invoke-rc.d to lpstat -r + + -- Andreas Moog Fri, 08 May 2009 02:34:29 +0200 + +cups-pdf (2.5.0-2) unstable; urgency=low + + * Bumped Standards-Version to 3.8.0: + + Moved the upstream URL from Description to Homepage field. + * Fixed [debian/copyright] to match GNU boilerplate text. + + -- Martin-Éric Racine Mon, 20 Apr 2009 01:27:46 +0300 + +cups-pdf (2.5.0-1ubuntu1) jaunty; urgency=low + + * Merge from Debian unstable (LP: #324508). Remaining Ubuntu changes: + - debian/postinst, debian/prerm: Let PDF print queue being created + automatically when installing the package and being removed + automatically when uninstalling the package. + - debian/postinst: Updated PPD file name to the new one used by the + upstream package (LP: #241701). Updated the name of the CUPS startup + script to "cups". + * debian/postrm: Changed cups checking command from invoke-rc.d to lpstat -r + + -- Fabrice Coutadeur Tue, 27 Jan 2009 16:31:09 +0100 + +cups-pdf (2.5.0-1) unstable; urgency=low + + * New upstream release: + + new option to truncate long filenames (Fixes Ubuntu #237224) + + spoolfile is purged on errors (Re: OpenSuSE complaint) + + failed chmod() on output is treated as non-fatal (Closes: #496317) + + updates and additions to the documentation (Closes: #501719, #502555) + + removed additional changelog from source code. + + -- Martin-Éric Racine Mon, 26 Jan 2009 20:38:49 +0200 + +cups-pdf (2.4.8-4ubuntu1) jaunty; urgency=low + + * Merge from debian unstable (LP: #310290), remaining changes: + - debian/postinst, debian/prerm: Let PDF print queue being created + automatically when installing the package and being removed + automatically when uninstalling the package. + - debian/postinst: Updated PPD file name to the new one used by the + upstream package (LP: #241701). Updated the name of the CUPS startup + script to "cups". + + -- Manny Vindiola Sun, 21 Dec 2008 14:46:56 -0500 + +cups-pdf (2.4.8-4) unstable; urgency=low + + * Updated README.Debian to reflect the fact that CUPS-PDF.PPD is now + the only recognized backend for CUPS-PDF. + * Added a warning about AppArmor to README.Debian for Ubuntu users. + + -- Martin-Éric Racine Sun, 14 Sep 2008 12:18:20 +0300 + +cups-pdf (2.4.8-3) unstable; urgency=low + + * Added patch to remove Bashisms from contributed third-party SELinux + sample scripts (Closes: #489554). + + -- Martin-Éric Racine Wed, 13 Aug 2008 13:06:13 +0300 + +cups-pdf (2.4.8-2) unstable; urgency=low + + * The "Brown Bag" release: + Migrating to cupsys also requires updating maintainer scripts. + + -- Martin-Éric Racine Mon, 23 Jun 2008 18:32:20 +0300 + +cups-pdf (2.4.8-1ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/postinst, debian/prerm: Let PDF print queue being created + automatically when installing the package and being removed + automatically when uninstalling the package. + * debian/postinst: Updated PPD file name to the new one used by the + upstream package (LP: #241701). Updated the name of t5he CUPS startup + script to "cups". + + -- Till Kamppeter Mon, 23 Jun 2008 15:42:30 +0200 + +cups-pdf (2.4.8-1) unstable; urgency=low + + * New upstream release (Closes: #472631). + + -- Martin-Éric Racine Sun, 22 Jun 2008 17:13:33 +0300 + +cups-pdf (2.4.7-4) unstable; urgency=low + + * Dropped references to gs-esp and cupsys in Depends and Recommends, + now that the CUPS renaming is done, on time for Lenny. + + -- Martin-Éric Racine Fri, 20 Jun 2008 20:14:08 +0300 + +cups-pdf (2.4.7-3ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/postinst, debian/prerm: Let PDF print queue being created + automatically when installing the package and being removed + automatically when uninstalling the package. + * debian/patches/10_auto_assign_ppd.patch: Removed, applied upstream. + * debian/patches/01_mkdir_as_user.patch: Removed, applied upstream. + + -- Till Kamppeter Wed, 11 Jun 2008 9:49:55 +0200 + +cups-pdf (2.4.7-3) unstable; urgency=low + + * Added alternatives for the upcoming Debian CUPS packages renaming. + + -- Martin-Éric Racine Sun, 25 May 2008 20:20:27 +0300 + +cups-pdf (2.4.7-2) unstable; urgency=low + + [ Martin-Éric Racine ] + * Merged useful changes from Ubuntu: + + [ Jonathan Riddell ] + + Suggests: system-config-printer-gnome | system-config-printer-kde + + [ Till Kamppeter ] + + Depends: ghostscript | gs-esp, libpaper-utils, cupsys, cupsys-client + + debian/rules: enabled the CDBS simple patching system. + + debian/patches/50_default_conf.patch on extra/cups-pdf.conf: + Move the default configuration changes into 50_default_conf.patch, + so that the diff.gz is now free of upstream diffs. + + -- Martin-Éric Racine Sun, 06 Apr 2008 12:08:05 +0300 + +cups-pdf (2.4.7-1) unstable; urgency=low + + * New upstream release: + + Implemented IEEE-1284 device ID to make the PPD auto-selectable. + + -- Martin-Éric Racine Mon, 24 Mar 2008 14:20:04 +0200 + +cups-pdf (2.4.6-5) unstable; urgency=low + + * Changed homepage and debian/watch to http://www.cups-pdf.de site. + * Upgraded Depends to ghostscript | gs-esp (Closes: #455647). + + -- Martin-Éric Racine Sun, 23 Dec 2007 15:46:31 +0200 + +cups-pdf (2.4.6-4ubuntu2) hardy; urgency=low + + * Suggest both frontends system-config-printer-gnome | + system-config-printer-kde + + -- Jonathan Riddell Thu, 24 Jan 2008 11:28:38 +0000 + +cups-pdf (2.4.6-4ubuntu1) hardy; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/control: "Depends: ghostscript | gs-esp | gs-gpl, libpaper-utils, + cupsys, cupsys-client", "Suggests: system-config-printer" + - debian/patches/01_mkdir_as_user.patch: Postpone creation of per-user + output directory until we setuid()'ed to the user. This both avoids + nasty mistakes, and also avoids using CAP_DAC_OVERRIDE, so that we + can tighten cups' apparmor profile. + - debian/patches/10_auto_assign_ppd.patch: Make the PPD automatically + assigned to the PDF printer by CUPS/printer setup tools + - debian/patches/50_default_conf.patch, extra/cups-pdf.conf: Move the + default configuration changes into a patch 50_default_conf.patch, so + that the diff.gz is now free of upstream diffs. + - debian/rules: Enabled the package for applying patches by adding + "include /usr/share/cdbs/1/rules/simple-patchsys.mk" + - debian/postinst, debian/prerm: Let PDF print queue being created + automatically when installing the package and being removed + automatically when uninstalling the package. + * debian/postinst, debian/postrm: Restart of CUPS daemon not needed, + restarting only causes CUPS daemon not listening immediately after + restart and so the PDF queue not being created. So removed any + restart of the CUPS daemon from the maintainer script. We only start + the CUPS daemon if it is not actually running, because we need it + for having a PDF printer (LP: #152293). + * debian/postinst: Create CUPS queue by modifying config files in the + case that the CUPS daemon could not be started or if CUPS is not + installed. + + -- Till Kamppeter Mon, 19 Nov 2007 15:00:19 +0000 + +cups-pdf (2.4.6-4) unstable; urgency=low + + [ Martin Pitt ] + * debian/postinst: Changed /usr/lib/cups/backend/cups-pdf permissions + from 4751 (which was still necessary for the non-root CUPS) to 0700 + (in accordance with upstream requirements). + * debian/postinst: Made /var/spool/cups-pdf/ANONYMOUS sticky, since it + is world-writeable. + + -- Martin-Éric Racine Sat, 11 Aug 2007 22:29:33 +0300 + +cups-pdf (2.4.6-3ubuntu10) gutsy; urgency=low + + * debian/postinst: Before creating a CUPS queue wait 3 seconds to be sure + that the CUPS daemon is listening (LP: #152293). + + -- Till Kamppeter Sat, 13 Oct 2007 19:56:19 +0100 + +cups-pdf (2.4.6-3ubuntu9) gutsy; urgency=low + + * debian/patches/50_default_conf.patch: Withdrawn the chnage of the PDF + destination to ~/Desktop, returned to ~/PDF, also do not let cups-pdf + label documents with job numbers by default (see LP bugs 134682 and + 134671). + * debian/control: Removed the versioned require on cupsys, as we have + withdrawn the change of the PDF destination. + + -- Till Kamppeter Thu, 5 Oct 2007 12:56:19 +0100 + +cups-pdf (2.4.6-3ubuntu8) gutsy; urgency=low + + * debian/patches/50_default_conf.patch: Use ~/Desktop as default destination + for the PDF files so that users find them more easily (LP: #134682, + LP: #134671) + * debian/prerm, debian/postinst: Make any failure of CUPS command line tools + non-fatal, to not affect the setup of cups-pdf if CUPS crashes immediately + after being restarted by the cups-pdf setup (LP: #136449, LP: #147974). + * debian/control: Require cupsys 1.3.2-1ubuntu2 or newer, to have + AppArmor restrictions allowing to write into ~/Desktop. + + -- Till Kamppeter Wed, 4 Oct 2007 17:56:19 +0100 + +cups-pdf (2.4.6-3ubuntu7) gutsy; urgency=low + + * debian/control: Add explicit cupsys-client dependency, since the postinst + needs 'lpadmin' and cupsys itself only recommends -client. + (LP: #134453) + + -- Martin Pitt Tue, 02 Oct 2007 09:14:03 +0200 + +cups-pdf (2.4.6-3ubuntu6) gutsy; urgency=low + + * debian/postinst: Fix invocation of "lpstat -r" (remove backticks). This + makes the automatic setup of the PDF queue actually work again. + + -- Martin Pitt Mon, 01 Oct 2007 16:49:53 +0200 + +cups-pdf (2.4.6-3ubuntu5) gutsy; urgency=low + + * debian/postinst: force PDF queues on localhost only; systems configured + for remote CUPS servers are not expecting it. + + -- Kees Cook Thu, 23 Aug 2007 13:24:36 -0700 + +cups-pdf (2.4.6-3ubuntu4) gutsy; urgency=low + + * debian/postinst, debian/prerm: Check, create, or remove PDF queues only + if the CUPS daemon is running, otherwise go on silently (LP: #133743). + + -- Till Kamppeter Tue, 21 Aug 2007 10:56:19 +0100 + +cups-pdf (2.4.6-3ubuntu3) gutsy; urgency=low + + * debian/postinst: Only set up the PDF queue, do not make it the default. + Otherwise the PDF queue would stay the default when the first real printer + is detected after installation and as the installation of the packages + happens before the detection of the printers all systems will have the PDF + queue as default. + + -- Till Kamppeter Mon, 20 Aug 2007 10:55:19 +0100 + +cups-pdf (2.4.6-3ubuntu2) gutsy; urgency=low + + [ Till Kamppeter ] + * debian/control: Updated dependencies: ghostscript, paperconf. + * debian/postinst, debian/prerm: Create a PDF print queue when installing + and take it down when uninstalling (LF: #82674) + * debian/patches/10_auto_assign_ppd.patch: Make the PPD automatically + assigned to the PDF printer by CUPS/printer setup tools + * debian/rules: Enabled the package for applying patches by adding + "include /usr/share/cdbs/1/rules/simple-patchsys.mk" + + [ Martin Pitt ] + * Now that we use simple-patchsys.mk, make a proper patch + debian/patches/01_mkdir_as_user.patch from the src/cups-pdf.c change in + the last upload. Also move the default configuration changes into a patch + 50_default_conf.patch, so that the diff.gz is now free of upstream diffs. + * debian/postinst: If paperconf fails, fall back to paper size "a4". + + -- Martin Pitt Wed, 15 Aug 2007 08:55:19 +0200 + +cups-pdf (2.4.6-3ubuntu1) gutsy; urgency=low + + * Sync with latest Debian version. + * src/cups-pdf.c: Postpone creation of per-user output directory until we + setuid()'ed to the user. This both avoids nasty mistakes, and also avoids + using CAP_DAC_OVERRIDE, so that we can tighten cups' apparmor profile. + * debian/postinst: Change /usr/lib/cups/backend/cups-pdf permissions from + 4751 (which was still necessary for the non-root cups) to 0700 (in + accordance with upstream's requirements). + * debian/postinst: Make /var/spool/cups-pdf/ANONYMOUS sticky, since it is + world-writeable. + + -- Martin Pitt Sat, 11 Aug 2007 16:20:23 +0200 + +cups-pdf (2.4.6-3) unstable; urgency=low + + * Implemented a basic reportbug script to remind people not to file + pointless CVE bugs concerning Poppler or XPDF, since we don't use + that code; we simply pass the document to external tools that do. + * Added the same warning to NEWS.Debian. + + -- Martin-Éric Racine Wed, 8 Aug 2007 01:10:19 +0300 + +cups-pdf (2.4.6-2) unstable; urgency=low + + * Bumped debhelper Build-Depends to (>= 5). + + -- Martin-Éric Racine Sun, 15 Jul 2007 18:13:45 +0300 + +cups-pdf (2.4.6-1) unstable; urgency=low + + * New upstream release: + - Changed GS options to save memory on some files (Closes: #421868). + - Changed CUPS printer description to CUPS-PDF (Closes: #411620). + * Made Debian CUPS Maintainers the Maintainer and myself Uploaders. + TODO: automagic installation of PDF printer for granny-friendliness. + + -- Martin-Éric Racine Thu, 24 May 2007 12:28:22 +0300 + +cups-pdf (2.4.2-3) unstable; urgency=high + + * Reversed order of chmod and chown in postinst (Closes: #411580). + + -- Martin-Éric Racine Tue, 20 Feb 2007 02:48:36 +0200 + +cups-pdf (2.4.2-2) unstable; urgency=high + + * Upgraded backend permissions to match Policy 10.9 (Closes: #409356). + + -- Martin-Éric Racine Mon, 12 Feb 2007 17:45:57 +0200 + +cups-pdf (2.4.2-1) unstable; urgency=low + + * New upstream maintenance release: + - Removed extraneous COPYRIGHT files (make Lintian happy). + - Cleaned up over 200 warnings issued by 'splint'. + - Renamed PPD v4 to match the single PPD file from the 1.7 codebase. + - Removed PPD v3. + - Shipped the PPD uncompressed. + * Migrated PPD to /usr/share/ppd/cups-pdf directory (Closes: #390141). + * Added missing invoke-rc.d reload loop in postrm. + Thanks to Roger Leigh for spotting this. + + -- Martin-Éric Racine Sat, 30 Sep 2006 22:51:33 +0300 + +cups-pdf (2.4.1-3) unstable; urgency=low + + * Changed the backend permissions to 6755 for Ubuntu compatibility. + + -- Martin-Éric Racine Fri, 29 Sep 2006 02:26:39 +0300 + +cups-pdf (2.4.1-2) unstable; urgency=low + + * Changed the backend permissions to 6700 for Ubuntu compatibility. + (Launchpad #36093, #42147) + + -- Martin-Éric Racine Tue, 19 Sep 2006 21:04:58 +0300 + +cups-pdf (2.4.1-1) unstable; urgency=low + + * New upstream release. + * Upgraded Standards-Version to 3.7.2; no change required. + * Upgraded debian/install to anticipate PPD revision numbers. + * Added debian/links to always track the latest PPD revision. + + -- Martin-Éric Racine Wed, 21 Jun 2006 15:47:26 +0300 + +cups-pdf (2.4.0-2) unstable; urgency=low + + * Fixed: restarting CUPS fails if it's not running (Closes: #372691). + + -- Martin-Éric Racine Sun, 11 Jun 2006 18:15:41 +0300 + +cups-pdf (2.4.0-1) unstable; urgency=medium + + * New upstream release. + * Installed contributed documentation as examples. + * Fixed backend permissions for CUPS 1.2 (Closes: #371143). + + -- Martin-Éric Racine Fri, 9 Jun 2006 13:46:44 +0300 + +cups-pdf (2.2.0-1) unstable; urgency=low + + * New upstream release. + * Document the fact that PPD drivers other than PostscriptColor are + not guaranteed to work with CUPS-PDF (Closes: #344872). + + -- Martin-Éric Racine Fri, 21 Apr 2006 14:18:32 +0300 + +cups-pdf (2.1.1-1) unstable; urgency=medium + + * New upstream release: + (Closes: #361062) thanks to Nickolay Kondrashov for the patch. + + -- Martin-Éric Racine Fri, 7 Apr 2006 06:25:32 +0300 + +cups-pdf (2.1.0-1) unstable; urgency=low + + * New upstream release. + * Rewrote long description to reflect configurable output path. + * Removed no longer needed preinst maintenance script. + * Dropped no longer needed Depends on adduser. + + -- Martin-Éric Racine Sun, 26 Mar 2006 07:27:01 +0300 + +cups-pdf (2.0.5-1) unstable; urgency=low + + * New upstream release. + + -- Martin-Éric Racine Sat, 4 Mar 2006 13:50:18 +0200 + +cups-pdf (2.0.4-1) unstable; urgency=low + + * New upstream release. + + -- Martin-Éric Racine Sun, 5 Feb 2006 00:23:06 +0200 + +cups-pdf (2.0.3-1) unstable; urgency=low + + * New upstream release. + + -- Martin-Éric Racine Sat, 7 Jan 2006 18:15:32 +0200 + +cups-pdf (2.0.2-1) unstable; urgency=low + + * New upstream release. + * Uploading to unstable (Closes: #329751). + + -- Martin-Éric Racine Wed, 4 Jan 2006 19:55:40 +0200 + +cups-pdf (2.0.1-1) experimental; urgency=low + + * New upstream release. + + -- Martin-Éric Racine Wed, 4 Jan 2006 02:01:26 +0200 + +cups-pdf (2.0.0-1) experimental; urgency=low + + * New upstream release (Closes: #329751): + - Improved PostscriptColor PPD now fully conforms with Adobe specs. + - Settings are now fully configurable via /etc/cups/cups-pdf.conf + using the administrator's favorite text editor. + * Updated README.Debian content to document the new features. + + -- Martin-Éric Racine Sat, 31 Dec 2005 18:18:43 +0200 + +cups-pdf (1.7.3-9) unstable; urgency=low + + * Added uupdate action to debian/watch. + + -- Martin-Éric Racine Thu, 22 Dec 2005 12:55:35 +0200 + +cups-pdf (1.7.3-8) unstable; urgency=low + + * Added call to list-missing target of utils.mk CDBS include. + * Replaced compiler options with langcore.mk CDBS include. + + -- Martin-Éric Racine Mon, 19 Dec 2005 20:26:07 +0200 + +cups-pdf (1.7.3-7) unstable; urgency=high + + * The "Making all changes really obvious" release (Closes: #331378): + - Corrected package description to match current output directory. + - Added a debian/NEWS that describes all changes since Sarge. + + -- Martin-Éric Racine Mon, 3 Oct 2005 11:30:08 +0300 + +cups-pdf (1.7.3-6) unstable; urgency=low + + * Fixed maintainer scripts to correctly shuffle the directories. + + -- Martin-Éric Racine Fri, 23 Sep 2005 14:42:30 +0300 + +cups-pdf (1.7.3-5) unstable; urgency=high + + * Changed output directory to $HOME/PDF/ to prevent file clobbering. + * Created a "cups-pdf" system user for anonymous Samba printing jobs: + - Printouts go to /var/spool/cups-pdf/ANONYMOUS/ + (Closes: #319353, #325584, #326001, #326034). + + -- Martin-Éric Racine Fri, 23 Sep 2005 13:36:22 +0300 + +cups-pdf (1.7.3-4) unstable; urgency=low + + * Changed anonymous output directory to upstream default "ANONYMOUS". + * Rewrote README.Debian for better clarity. + + -- Martin-Éric Racine Sat, 27 Aug 2005 14:25:43 +0300 + +cups-pdf (1.7.3-3) unstable; urgency=low + + * Corrected 'gs' dependency to non-virtual package 'gs-esp'. + + -- Martin-Éric Racine Thu, 18 Aug 2005 19:31:12 +0300 + +cups-pdf (1.7.3-2) unstable; urgency=low + + * Added explicit dependency on virtual package 'gs' (Closes: #323012). + + -- Martin-Éric Racine Sun, 14 Aug 2005 19:59:06 +0300 + +cups-pdf (1.7.3-1) unstable; urgency=low + + * New upstream release. + + -- Martin-Éric Racine Thu, 11 Aug 2005 18:52:00 +0300 + +cups-pdf (1.7.1-1) unstable; urgency=low + + * New upstream release. + - Note about CUPS options to operate under Ubuntu (Closes: #300320). + - Note about mounting options for NFS directories (Closes: #307872). + See author's README for details. + * Changed output path from ~/cups-pdf/ to ~/ as per Ubuntu suggestion. + * Updated debian/watch URL. + + -- Martin-Éric Racine Fri, 1 Jul 2005 10:13:31 +0300 + +cups-pdf (1.7.0a-3) unstable; urgency=low + + * Converted debian/control to debian/control.in for CDBS auto-updating. + * Upgraded to Debian Policy 3.6.2 standards; no change required. + + -- Martin-Éric Racine Sun, 19 Jun 2005 12:19:16 +0300 + +cups-pdf (1.7.0a-2) unstable; urgency=low + + * Moved file installation process from debian/rules to debian/install. + * Rewrote the preinst script to handle creation of /var/spool/cups-pdf. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Wed, 4 May 2005 03:47:43 +0300 + +cups-pdf (1.7.0a-1) unstable; urgency=low + + * New upstream release. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Tue, 8 Mar 2005 01:00:36 +0200 + +cups-pdf (1.7.0-1) unstable; urgency=low + + * New upstream release. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sun, 6 Mar 2005 15:35:50 +0200 + +cups-pdf (1.6.6-1) unstable; urgency=low + + * New upstream release. + * The "We sing the Postscript electric" release (Closes: #293428): + + - additional PA4 (mixes A4 and Letter) paper description from me. + - additional A0-A3 paper descriptions from Sebastian Hegler. + - additional A6-A10 paper descriptions from me. + - changed PC filename to POSTSCRIPTCOLOR.PPD. + - really made A4 the default paper size. + + More paper descriptions could eventually be supported. Please check + and file "wishlist" + items into the Debian BTS for package "cups-pdf". + + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Thu, 10 Feb 2005 10:27:37 +0200 + +cups-pdf (1.6.5-1) unstable; urgency=medium + + * New upstream release. + Definitely closes #286024 with a macro to define the group of new files. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Wed, 5 Jan 2005 07:24:00 +0200 + +cups-pdf (1.6.4-1) unstable; urgency=low + + * New upstream release. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Tue, 4 Jan 2005 03:22:14 +0200 + +cups-pdf (1.6.3-3) unstable; urgency=medium + + * Moved cupsys to Pre-Depends, to ensure that group lpadmin is created + before the installation of cups-pdf (Closes: #286024). + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Fri, 17 Dec 2004 16:13:37 +0200 + +cups-pdf (1.6.3-2) unstable; urgency=medium + + * Changed preinst script to fix ownership of /var/log/cups/cups-pdf_log + to root:lpadmin and permissions to 0600. (Closes: #279251). + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sat, 27 Nov 2004 10:47:34 +0200 + +cups-pdf (1.6.3-1) unstable; urgency=high + + * New upstream release. + Really fixes Ghostscript call to ensure compatibility with complex + user directory paths. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Fri, 8 Oct 2004 12:44:27 +0300 + +cups-pdf (1.6.2-1) unstable; urgency=high + + * New upstream release. + Fixes user directory case-sensitivity bug. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Tue, 5 Oct 2004 20:17:42 +0300 + +cups-pdf (1.6.1-1) unstable; urgency=low + + * New upstream release (Closes: #267950). + No longer requires users to have a valid shell defined in /etc/passwd. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sun, 3 Oct 2004 14:10:50 +0300 + +cups-pdf (1.5.2-4) unstable; urgency=high + + * urgency=high because CUPS doesn't update its backend list after cups-pdf + is installed, which required adding a postinstall script to restart it. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Wed, 25 Aug 2004 14:04:38 +0300 + +cups-pdf (1.5.2-3) unstable; urgency=high + + * urgency=high because /var/spool/cups-pdf wasn't automatically created, + which completely prevented normal operation for some people. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Wed, 25 Aug 2004 11:52:38 +0300 + +cups-pdf (1.5.2-2) unstable; urgency=high + + * urgency=high to provoke a build on architectures that remained jamed + during the GCC RC bug this week, which prevented all previous security + fixes from the 1.5.x releases from reaching Testing. + * Changed preinst script to check if /var/log/cups/cups-pdf_log exists, + before trying to secure its permissions (Closes: #265672). + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sat, 14 Aug 2004 20:39:34 +0300 + +cups-pdf (1.5.2-1) unstable; urgency=high + + * New upstream release. + * urgency=high; fixes vulnerability: + - insecure creation of spoolfile. + Thanks to Florian Zumbiehl for additional auditing. + * Added preinst script that secures /var/log/cups/cups-pdf_log* files. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Wed, 11 Aug 2004 01:06:27 +0300 + +cups-pdf (1.5.1-1) unstable; urgency=high + + * New upstream release. + * urgency=high; fixes several vulnerabilities: + - dangerous access to array element (Closes: #262403). + - format string vulnerability (#262762) patch merged by upstream. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Mon, 9 Aug 2004 13:36:22 +0300 + +cups-pdf (1.5.0-1) unstable; urgency=high + + * New upstream release. + * urgency=high; fixes vulnerability: + - race condition (Closes: #259993). + * Added debian/watch file. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Tue, 3 Aug 2004 20:25:55 +0300 + +cups-pdf (1.4.3-3) unstable; urgency=high + + * urgency=high; fixes vulnerability: + - format string vulnerability (Closes: #262762). + Thanks to Florian Zumbiehl for the patch. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Mon, 2 Aug 2004 13:13:25 +0300 + +cups-pdf (1.4.3-2) unstable; urgency=low + + * Changed file creation mask to 0027. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sun, 1 Aug 2004 21:07:10 +0300 + +cups-pdf (1.4.3-1) unstable; urgency=high + + * New upstream release. + * urgency=high; fixes several vulnerabilities: + - insecure Ghostscript invocation (Closes: #262402). + - insecure file creation mask (Closes: #262404). + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sun, 1 Aug 2004 13:03:46 +0300 + +cups-pdf (1.3.1-6) unstable; urgency=low + + * Updated my contact info. No other change. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sat, 26 Jun 2004 14:17:54 +0300 + +cups-pdf (1.3.1-5) unstable; urgency=low + + * Added NEWS file explaining the situation regarding newer CUPS-PDF releases. + * Sanitized the control file into policy compliance. + * Added missing shlibs:Depends to control file. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Sun, 4 Apr 2004 20:17:15 +0300 + +cups-pdf (1.3.1-4) unstable; urgency=low + + * Upgraded all Debian packaging files to UTF-8 compliance. + * Sponsored by Kenshi Muto. + + -- Martin-Éric Racine Fri, 2 Apr 2004 11:46:45 +0300 + +cups-pdf (1.3.1-3) unstable; urgency=low + + * First Debian upload - sponsored by Kenshi Muto. Thanks! (Closes: #237028) + * Tidied up the documentation and control file. + + -- Martin-Éric Racine Mon, 22 Mar 2004 13:51:28 +0200 + +cups-pdf (1.3.1-2) unstable; urgency=low + + * Upgraded to CDBS. + * Replaced Makefile with debian/rules additions. + + -- Martin-Éric Racine Thu, 4 Dec 2003 20:13:07 +0200 + +cups-pdf (1.3.1-1) unstable; urgency=low + + * New upstream release. + + -- Martin-Éric Racine Sat, 29 Nov 2003 19:20:33 +0200 + +cups-pdf (1.3-1) unstable; urgency=low + + * New upstream release. + * Changelog copied verbatim from cups-pdf.c comments instead of web site. + * README.Debian updated to reflect current default settings. + + -- Martin-Éric Racine Sun, 2 Nov 2003 03:50:03 +0200 + +cups-pdf (1.2-1) unstable; urgency=low + + * New upstream release. + * Created changelog from + + -- Martin-Éric Racine Sun, 26 Oct 2003 13:11:18 +0200 + +cups-pdf (1.1-3) unstable; urgency=low + + * Cleaned up the debian/control file with even more stringent Lintian rules. + * Upgraded Makefile to use debuild. + + -- Martin-Éric Racine Wed, 15 Oct 2003 12:29:18 +0300 + +cups-pdf (1.1-2) unstable; urgency=low + + * Cleaned up the Makefile. + * Cleaned up debian directory with Lintian and Linda. + + -- Martin-Éric Racine Mon, 22 Sep 2003 22:47:47 +0300 + +cups-pdf (1.1-1) unstable; urgency=low + + * First Debian release. + * Created Makefile from scratch. + * Created README from + + -- Martin-Éric Racine Mon, 22 Sep 2003 16:27:44 +0300 + --- cups-pdf-2.5.0.orig/debian/examples +++ cups-pdf-2.5.0/debian/examples @@ -0,0 +1 @@ +contrib/* --- cups-pdf-2.5.0.orig/debian/watch +++ cups-pdf-2.5.0/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.cups-pdf.de/src/cups-pdf_(.*)\.tar\.gz \ + debian uupdate --no-symlink --- cups-pdf-2.5.0.orig/debian/dirs +++ cups-pdf-2.5.0/debian/dirs @@ -0,0 +1 @@ +var/spool/cups-pdf/ANONYMOUS --- cups-pdf-2.5.0.orig/debian/postinst +++ cups-pdf-2.5.0/debian/postinst @@ -0,0 +1,107 @@ +#!/bin/sh +# postinst script for cups-pdf + +set -e + +case "$1" in + configure|removing) + 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 nobody:nogroup /var/spool/cups-pdf/ANONYMOUS + chmod 1777 /var/spool/cups-pdf/ANONYMOUS + chmod 0700 /usr/lib/cups/backend/cups-pdf + # This package needs the CUPS daemon running to actually work + if [ -f /etc/init.d/cups ] + then + lpstat -r > /dev/null 2>&1 || invoke-rc.d cups start || /bin/true + fi + if lpstat -r > /dev/null 2>&1 + then + # Create a PDF CUPS queue if we have none yet (only + # if CUPS daemon is running) + if [ -z "`LC_ALL=C lpstat -v 2>/dev/null | grep 'cups-pdf:/'`" ] + then + # Find a name for the PDF queue + queue=PDF + number=0 + while LC_ALL=C lpstat -v 2>/dev/null | cut -d ':' -f 1 | cut -d ' ' -f 3 | grep -q ^$queue\$ + do + number=$(($number + 1)) + queue="PDF$number" + done + # Find system's default paper size + size="`LC_ALL=C paperconf 2>/dev/null`" || size=a4 + # Create the queue + lpadmin -h localhost -p $queue -E -v cups-pdf:/ -m lsb/usr/cups-pdf/CUPS-PDF.ppd -o printer-is-shared=no -o PageSize=$size 2>/dev/null || : + # Set the PDF printer as default when there is not + # already a default printer + #if [ -z "`LC_ALL=C lpstat -d 2>/dev/null | grep 'system default destination:'`" ] + #then + # lpadmin -d $queue 2>/dev/null || : + #fi + fi + else + # Create a PDF CUPS queue if we have none yet (for the + # case that CUPS is not running or even not installed) + if [ -z "`grep 'DeviceURI cups-pdf:/' /etc/cups/printers.conf 2> /dev/null`" ] + then + # Find a name for the PDF queue + queue=PDF + number=0 + while grep -q "Printer $queue>" /etc/cups/printers.conf + do + number=$(($number + 1)) + queue="PDF$number" + done + # Find system's default paper size + size="`LC_ALL=C paperconf 2>/dev/null`" || size=a4 + # Create the queue + time=`date +%s` + mkdir -p /etc/cups/ppd + cat << EOF >> /etc/cups/printers.conf + +Info Print into PDF file +DeviceURI cups-pdf:/ +State Idle +StateTime $time +Accepting Yes +Shared No +JobSheets none none +QuotaPeriod 0 +PageLimit 0 +KLimit 0 +OpPolicy default +ErrorPolicy retry-job + +EOF + cp /usr/share/ppd/cups-pdf/CUPS-PDF.ppd /etc/cups/ppd/$queue.ppd + ucsize=`echo $size | perl -p -e 's/^(\S)(\S*)/uc($1) . $2/e'` + perl -p -i -e 's/^(\*DefaultPageSize:\s*)\S+/$1'$ucsize'/' /etc/cups/ppd/$queue.ppd + perl -p -i -e 's/^(\*DefaultPageRegion:\s*)\S+/$1'$ucsize'/' /etc/cups/ppd/$queue.ppd + perl -p -i -e 's/^(\*DefaultImageableArea:\s*)\S+/$1'$ucsize'/' /etc/cups/ppd/$queue.ppd + perl -p -i -e 's/^(\*DefaultPaperDimension:\s*)\S+/$1'$ucsize'/' /etc/cups/ppd/$queue.ppd + if [ -f /etc/init.d/cups ] + then + lpstat -r > /dev/null 2>&1 || invoke-rc.d cups start || /bin/true + fi + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- cups-pdf-2.5.0.orig/debian/copyright +++ cups-pdf-2.5.0/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Martin-Eric Racine on +Mon, 22 Sep 2003 16:27:44 +0300. + +It was downloaded from + +Copyright (C) 2003-2008, Volker C. Behr + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +On Debian systems, the complete text of the GNU General Public License +can be found in . --- cups-pdf-2.5.0.orig/debian/compat +++ cups-pdf-2.5.0/debian/compat @@ -0,0 +1 @@ +5 --- cups-pdf-2.5.0.orig/debian/install +++ cups-pdf-2.5.0/debian/install @@ -0,0 +1,4 @@ +debian/presubj usr/share/bug/cups-pdf +extra/cups-pdf.conf etc/cups +extra/*.ppd* usr/share/ppd/cups-pdf +src/cups-pdf usr/lib/cups/backend --- cups-pdf-2.5.0.orig/debian/presubj +++ cups-pdf-2.5.0/debian/presubj @@ -0,0 +1,3 @@ +Please note that CUPS-PDF is never affected by Poppler or XPDF bugs; +only external tools that it uses to generate the PDF are. Therefore, +avoid filing bugs related to those codebases against CUPS-PDF. --- cups-pdf-2.5.0.orig/debian/NEWS +++ cups-pdf-2.5.0/debian/NEWS @@ -0,0 +1,15 @@ +cups-pdf (2.4.6-3) unstable; urgency=low + + Please note that CUPS-PDF is never affected by Poppler or XPDF bugs; + only external tools that it uses to generate the PDF are. Therefore, + avoid filing bugs related to those codebases against CUPS-PDF. + + -- Martin-Éric Racine Wed, 08 Aug 2007 00:42:44 +0300 + +cups-pdf (1.7.3-6) unstable; urgency=low + + The Sarge release of CUPS-PDF sent PDF printouts to ~/cups-pdf. + Starting with Etch release 1.7.3-6 this location moves to ~/PDF. + Anonymous Samba output goes to /var/spool/cups-pdf/ANONYMOUS/. + + -- Martin-Éric Racine Mon, 3 Oct 2005 11:34:56 +0300 --- cups-pdf-2.5.0.orig/debian/README.Debian +++ cups-pdf-2.5.0/debian/README.Debian @@ -0,0 +1,30 @@ +CUPS-PDF for Debian +------------------- +This Debian package of CUPS-PDF is configured as follow: + + * Logging option set to minimum (level 1: errors only). + * Log files created by group "lpadmin" to match CUPS permissions. + * Anonymous Samba output to /var/spool/cups-pdf/ANONYMOUS/ directory. + * Standard output to ${HOME}/PDF/ directory. + +These settings are fully configurable by editing /etc/cups/cups-pdf.conf +using the system administrator's favorite text editor. + +NOTES + + * The optional GNOME package gnome-cups-manager is capable of detecting + this CUPS backend as a suitable ready-to-use printer. + + * CUPS-PDF.PPD is the only recognized backend since 2.4.7 and this is a + feature intended to reduce confusion for the end-user. If you require + paper sizes not supported by CUPS-PDF.PPD, please file a bug report. + + * Ubuntu users should be aware that AppArmor prevents outputing PDF to + non-default locations. AppArmor configurations must be modified also; + editing /etc/cups/cups-pdf.conf isn't enough. + + Executing "sudo aa-complain cupsd" might provide a temporary fix, but + CUPS-PDF maintainers offer no guarantee as to how this might affect a + system's overall security. + + -- Martin-Éric Racine Sun, 14 Sep 2008 12:07:33 +0300 --- cups-pdf-2.5.0.orig/debian/control +++ cups-pdf-2.5.0/debian/control @@ -0,0 +1,22 @@ +Homepage: http://www.cups-pdf.de +Source: cups-pdf +Section: graphics +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian CUPS Maintainers +Uploaders: Martin-Éric Racine +Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5) +Standards-Version: 3.8.0 + +Package: cups-pdf +Architecture: any +Pre-Depends: cups (>= 1.1.15) +Depends: ghostscript, libpaper-utils, cups-client, ${shlibs:Depends}, ${misc:Depends} +Suggests: system-config-printer-gnome | system-config-printer-kde | system-config-printer +Enhances: cups +Description: PDF printer for CUPS + CUPS-PDF provides a PDF Writer backend to CUPS. This can be used as a + virtual printer in a paperless network or to perform testing on CUPS. + . + Documents are written to a configurable directory (by default to ~/PDF) + or can be further manipulated by a post-processing command. --- cups-pdf-2.5.0.orig/debian/postrm +++ cups-pdf-2.5.0/debian/postrm @@ -0,0 +1,34 @@ +#!/bin/sh +# postrm script for cups-pdf + +set -e + +case "$1" in + purge|abort-install) + if [ -f /var/log/cups/cups-pdf_log ] + then + rm /var/log/cups/cups-pdf_log* + fi + if [ -d /var/spool/cups-pdf ] + then + rm -rf /var/spool/cups-pdf + fi + if [ -f /etc/init.d/cups ] + then + lpstat -r > /dev/null 2>&1 || invoke-rc.d cups start || /bin/true + fi + ;; + + abort-upgrade|upgrade|failed-upgrade|remove|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- cups-pdf-2.5.0.orig/debian/patches/60_contrib_SELinux-HOWTO_update-module.patch +++ cups-pdf-2.5.0/debian/patches/60_contrib_SELinux-HOWTO_update-module.patch @@ -0,0 +1,57 @@ +--- contrib/SELinux-HOWTO/update-module.orig 2007-05-04 14:47:43.000000000 +0300 ++++ contrib/SELinux-HOWTO/update-module 2008-08-13 12:44:21.000000000 +0300 +@@ -16,25 +16,25 @@ SEMODULE=`which semodule` + + echo "" + +-if [ "x$SELINUXENABLED" == "x" ]; then ++if [ "x$SELINUXENABLED" = "x" ]; then + echo "Cannot locate executable 'selinuxenabled' (via 'which' command)." + echo "Script '$0' terminated (exit code 1)." + exit 1 + fi + +-if [ x"$GETENFORCE" == "x" ]; then ++if [ x"$GETENFORCE" = "x" ]; then + echo "Cannot locate executable 'getenforce' (via 'which' command)." + echo "Script '$0' terminated (exit code 2)." + exit 2 + fi + +-if [ x"$GETSEBOOL" == "x" ]; then ++if [ x"$GETSEBOOL" = "x" ]; then + echo "Cannot locate executable 'getsebool' (via 'which' command)." + echo "Script '$0' terminated (exit code 3)." + exit 3 + fi + +-if [ x"$CHECKMODULE" == "x" ]; then ++if [ x"$CHECKMODULE" = "x" ]; then + echo "Cannot locate executable 'checkmodule' (via 'which' command)." + echo "The following command will correct this (re-run this script afterward):" + echo "$ sudo yum install checkpolicy" +@@ -42,13 +42,13 @@ if [ x"$CHECKMODULE" == "x" ]; then + exit 4 + fi + +-if [ x"$SEMODULE_PACKAGE" == "x" ]; then ++if [ x"$SEMODULE_PACKAGE" = "x" ]; then + echo "Cannot locate executable 'semodule_package' (via 'which' command)." + echo "Script '$0' terminated (exit code 5)." + exit 5 + fi + +-if [ x"$SEMODULE" == "x" ]; then ++if [ x"$SEMODULE" = "x" ]; then + echo "Cannot locate executable 'semodule' (via 'which' command)." + echo "Script '$0' terminated (exit code 6)." + exit 6 +@@ -68,7 +68,7 @@ if [ `$GETENFORCE` != "Enforcing" ]; the + exit 12 + fi + +-if [ "`$GETSEBOOL cupsd_disable_trans`" == "cupsd_disable_trans --> on" ]; then ++if [ "`$GETSEBOOL cupsd_disable_trans`" = "cupsd_disable_trans --> on" ]; then + echo "Security policy ignored for cupsd transactions; this script is unnecessary." + echo "The following command will correct this (re-run this script afterward):" + echo "$ sudo setsebool -P cupsd_disable_trans 0" --- cups-pdf-2.5.0.orig/debian/patches/50_default_conf.patch +++ cups-pdf-2.5.0/debian/patches/50_default_conf.patch @@ -0,0 +1,40 @@ +diff -Nur cups-pdf-2.4.7/extra/cups-pdf.conf cups-pdf-2.4.7.new/extra/cups-pdf.conf +--- cups-pdf-2.4.7/extra/cups-pdf.conf 2007-05-04 12:54:49.000000000 +0100 ++++ cups-pdf-2.4.7.new/extra/cups-pdf.conf 2007-10-03 19:12:33.000000000 +0100 +@@ -40,7 +40,7 @@ + ## root_squash! + ### Default: /var/spool/cups-pdf/${USER} + +-#Out /var/spool/cups-pdf/${USER} ++Out ${HOME}/PDF + + ### Key: AnonDirName + ## ABSOLUTE path for anonymously created PDF files +@@ -82,7 +82,7 @@ + ## 0: label untitled documents only, 1: label all documents + ### Default: 0 + +-#Label 0 ++Label 0 + + ### Key: TitlePref + ## where to look first for a title when creating the output filename +@@ -170,8 +170,7 @@ + ## created directories and log files + ### Default: lp + +-#Grp lp +- ++Grp lpadmin + + ########################################################################### + # # +@@ -195,7 +194,7 @@ + ## if logging is disabled these setting have no effect + ### Default: 3 + +-#LogType 3 ++LogType 1 + + + ###########################################################################