--- foomatic-filters-ppds-20060406.orig/install +++ foomatic-filters-ppds-20060406/install @@ -9,7 +9,7 @@ prefix=/usr/local gzip=0 moreoptions=1 -while [ $moreoptions == 1 ] +while [ $moreoptions -eq 1 ] do case $1 in -p|--prefix) @@ -49,7 +49,7 @@ cp -ax bin share $destdir$prefix # Compress files -if [ $gzip == 1 ]; then +if [ $gzip -eq 1 ]; then echo "Compressing PPD files ..." gzip -rf $destdir$prefix/share/ppd fi @@ -57,7 +57,7 @@ # Link for CUPS (do only if we have a CUPS daemon, PPD link to # /usr/share/cups/model not needed on pure CUPS clients) cups=0 -if ( which cupsd > /dev/null 2>&1 ); then +if ( true ); then echo "Setting link for CUPS ..." if ( which cups-config > /dev/null 2>&1 ); then # CUPS installed from source or "devel" package installed @@ -74,7 +74,7 @@ fi # Do we have PPR installed -if ( which ppad > /dev/null 2>&1 ); then +if ( true ); then echo "Setting link for PPR ..." if [ -d $destdir/usr/share/ppr/PPDFiles/ ]; then rm -f $destdir/usr/share/ppr/PPDFiles/foomatic-ppds @@ -93,7 +93,7 @@ echo "Installation finished" echo "" -if [ $cups == 1 ]; then +if [ $cups -eq 1 ]; then echo "Please restart the CUPS daemon. Note that the CUPS daemon" echo "needs some minutes to register all PPD files." echo --- foomatic-filters-ppds-20060406.orig/debian/docs +++ foomatic-filters-ppds-20060406/debian/docs @@ -0,0 +1 @@ +README --- foomatic-filters-ppds-20060406.orig/debian/compat +++ foomatic-filters-ppds-20060406/debian/compat @@ -0,0 +1 @@ +4 --- foomatic-filters-ppds-20060406.orig/debian/README.Debian +++ foomatic-filters-ppds-20060406/debian/README.Debian @@ -0,0 +1,37 @@ +foomatic-filters-ppds for Debian +-------------------------------- + +This package replaces the old cupsomatic-ppd package. It is generally +only useful if you use CUPS (in the cupsys package) or PPR (which +isn't yet in Debian), or if you just like having 22MB of mostly +useless data sitting on your disk. + +Note that unlike the upstream foomatic-filters-ppds package, this +package doesn't include any binaries (like the foomatic-rip script); +they are provided by the dependencies of this package. + +IMPORTANT: + +Please *seriously* consider whether or not you need this package. +Most users are better off using one of the following three methods to +configure printer queues: + +1. Use the "foomatic-gui" package. It does almost everything the CUPS +web interface does, with a user-friendly GNOME interface. The only +downside is that there's not a web browser interface, if that's +important to you. + +2. Download any needed PPD files from www.linuxprinting.org and +configure your queue(s) using the lpadmin command-line tool. + +3. Generate the PPD files directly with foomatic-configure. + +Also, note that if CUPS is installed on your system, it may be +nonresponsive for a few minutes after first installing this package, +particularly on a slow system, as it takes a while to process and +cache the new PPD files. + +For additional notes on Foomatic and its organization in Debian, see: +/usr/share/doc/foomatic-db-engine/README.Debian + + -- Chris Lawrence , Sat Jun 14 19:53:48 2003 --- foomatic-filters-ppds-20060406.orig/debian/copyright +++ foomatic-filters-ppds-20060406/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Chris Lawrence on +Sat, 14 Jun 2003 18:59:57 -0500. + +It was downloaded from http://www.linuxprinting.org/download/foomatic/ + +Upstream Authors: Grant Taylor , + Till Kamppeter + +Copyright: + + 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; version 2 dated June, 1991. + + 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. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. + --- foomatic-filters-ppds-20060406.orig/debian/postinst +++ foomatic-filters-ppds-20060406/debian/postinst @@ -0,0 +1,49 @@ +#! /bin/sh +# postinst script for foomatic-filters-ppds +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + # Attempt to reload CUPS if installed + invoke-rc.d cupsys force-reload || true + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- foomatic-filters-ppds-20060406.orig/debian/watch +++ foomatic-filters-ppds-20060406/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.linuxprinting.org/download/foomatic/foomatic-filters-ppds-(\d+)\.tar\.gz --- foomatic-filters-ppds-20060406.orig/debian/changelog +++ foomatic-filters-ppds-20060406/debian/changelog @@ -0,0 +1,167 @@ +foomatic-filters-ppds (20060406-0ubuntu1) dapper; urgency=low + + * New upstream release. + * New printers since 20060318: + Brother-PT (18), Brother-QT (2), Gestetner (8), Infotex-IS (7), + Lanier-LD (8), NRG (8), Ricoh-Aficio (8), Savin (8). + + * Synchronize with Debian unstable. + * Depend on hpijs-ppds instead of hplip-ppds. + + -- Matthias Klose Thu, 6 Apr 2006 18:11:30 +0200 + +foomatic-filters-ppds (20060318-1) unstable; urgency=low + + * New upstream release. + * Move destination again, per + http://wiki.debian.org/PpdFileStructureSpecification. + + -- Chris Lawrence Sat, 18 Mar 2006 23:20:02 -0500 + +foomatic-filters-ppds (20060113-2) unstable; urgency=low + + * Remove symlinks into /usr/share/ppd for CUPS and PPR, since they + should be handled by the spoolers now. + + -- Chris Lawrence Tue, 17 Jan 2006 17:12:56 -0500 + +foomatic-filters-ppds (20060113-1ubuntu2) dapper; urgency=low + + * Adjust the description so it doesn't say you almost certainly don't + want the package, when it's installed by default. Ubuntu: #30134. + + -- Scott James Remnant Wed, 5 Apr 2006 02:00:19 +0100 + +foomatic-filters-ppds (20060113-1ubuntu1) dapper; urgency=low + + * Do not compress the single .ppd files. Saves 3MB on the CD images. + + -- Matthias Klose Sun, 26 Mar 2006 14:43:27 +0200 + +foomatic-filters-ppds (20060113-1) unstable; urgency=low + + * New upstream release. (Closes: #347668) + * PPD files are moved into /usr/share/ppd/foomatic-rip, consistent with + the spirit of http://wiki.debian.org/PpdFileStructureSpecification + * HPIJS PPDs are now in hplip-ppds; to ease the transition, this package + now depends on that package (and will do so through the release of etch). + + -- Chris Lawrence Fri, 13 Jan 2006 18:46:54 -0500 + +foomatic-filters-ppds (20050720-1) unstable; urgency=low + + * New upstream release. + + -- Chris Lawrence Wed, 20 Jul 2005 03:27:50 -0500 + +foomatic-filters-ppds (20050705-3) unstable; urgency=low + + * *Really* remove cupsomatic-ppd. Grr... + + -- Chris Lawrence Tue, 5 Jul 2005 16:10:07 -0500 + +foomatic-filters-ppds (20050705-2) unstable; urgency=low + + * Remove transition package cupsomatic-ppd. (Closes: #308716) + + -- Chris Lawrence Tue, 5 Jul 2005 02:11:18 -0500 + +foomatic-filters-ppds (20050705-1) unstable; urgency=low + + * New upstream release. + + -- Chris Lawrence Tue, 5 Jul 2005 01:48:19 -0500 + +foomatic-filters-ppds (20050430-1) unstable; urgency=low + + * New upstream release. + * The FoomaticRIPCommandLine printf problem appears to be fixed in this + release. (Closes: #299513) + + -- Chris Lawrence Sat, 30 Apr 2005 22:55:33 -0500 + +foomatic-filters-ppds (20050403-1) unstable; urgency=low + + * New upstream release. + + -- Chris Lawrence Sun, 3 Apr 2005 23:05:03 -0500 + +foomatic-filters-ppds (20050121-1) unstable; urgency=low + + * New upstream release. + * A lot of PPDs were missing upstream in 20050118; this appears to be + fixed in 20050121. (Closes: #291624) + + -- Chris Lawrence Fri, 21 Jan 2005 18:07:21 -0600 + +foomatic-filters-ppds (20050118-1) unstable; urgency=low + + * New upstream release. + * Conflict with old versions of foomatic-filters-ppds. (Closes: #291046) + * Use force-reload instead of reload in postinst. (Closes: #270201) + * No PPDs use "Lexmark International" in this release. + (Closes: #261271) + + -- Chris Lawrence Wed, 19 Jan 2005 22:46:42 -0600 + +foomatic-filters-ppds (20050114-1) unstable; urgency=low + + * New upstream release, fixes bashism in PPDs. (Closes: #208318) + + -- Chris Lawrence Fri, 14 Jan 2005 23:13:12 -0600 + +foomatic-filters-ppds (20041013-1) unstable; urgency=low + + * New upstream release + + -- Chris Lawrence Wed, 13 Oct 2004 04:27:22 -0500 + +foomatic-filters-ppds (20040506-1) unstable; urgency=low + + * New upstream release + + -- Chris Lawrence Thu, 6 May 2004 23:00:46 -0500 + +foomatic-filters-ppds (20040220-1) unstable; urgency=low + + * New upstream release. + + Fixed DeviceModel for HP Color Inkjet CP1700. (Closes: #231812) + + -- Chris Lawrence Fri, 20 Feb 2004 22:24:12 -0600 + +foomatic-filters-ppds (20040203-1) unstable; urgency=low + + * New upstream release + + -- Chris Lawrence Tue, 3 Feb 2004 20:30:47 -0600 + +foomatic-filters-ppds (20040102-1) unstable; urgency=low + + * New upstream release. + + -- Chris Lawrence Wed, 14 Jan 2004 22:12:26 -0600 + +foomatic-filters-ppds (20031118-1) unstable; urgency=low + + * New upstream release. + + -- Chris Lawrence Tue, 18 Nov 2003 15:26:01 -0600 + +foomatic-filters-ppds (20030929-1) unstable; urgency=low + + * New upstream release. + * Fix bashisms in install script in source package. (Closes: #201029) + + -- Chris Lawrence Mon, 29 Sep 2003 10:13:38 -0500 + +foomatic-filters-ppds (20030907-1) unstable; urgency=low + + * New upstream release. + + -- Chris Lawrence Sun, 7 Sep 2003 12:25:00 -0500 + +foomatic-filters-ppds (20030507-1) unstable; urgency=low + + * Initial Release. + + -- Chris Lawrence Sat, 14 Jun 2003 18:59:57 -0500 --- foomatic-filters-ppds-20060406.orig/debian/dirs.old +++ foomatic-filters-ppds-20060406/debian/dirs.old @@ -0,0 +1,3 @@ +usr/share/ppd +usr/share/cups/model +usr/share/ppr/PPDFiles --- foomatic-filters-ppds-20060406.orig/debian/dirs +++ foomatic-filters-ppds-20060406/debian/dirs @@ -0,0 +1 @@ +usr/share/ppd --- foomatic-filters-ppds-20060406.orig/debian/control +++ foomatic-filters-ppds-20060406/debian/control @@ -0,0 +1,28 @@ +Source: foomatic-filters-ppds +Section: text +Priority: extra +Maintainer: Chris Lawrence +Build-Depends-Indep: debhelper (>> 4.0.0) +Standards-Version: 3.6.2 + +Package: foomatic-filters-ppds +Architecture: all +Depends: foomatic-filters, hplip-ppds +Recommends: cupsys +Suggests: foomatic-db, foomatic-db-engine, foomatic-db-hpijs, foomatic-db-gutenprint, foo2zjs +Conflicts: cupsomatic-ppd (<< 20030507), hpijs (<< 2) +Replaces: cupsomatic-ppd (<< 20030507) +Description: linuxprinting.org printer support - prebuilt PPD files + Foomatic is a printer database designed to make it easier to set up + common printers for use with Debian (and other operating systems). + It provides the "glue" between a print spooler (like CUPS or lpr) and + your actual printer, by telling your computer how to process files + sent to the printer. + . + This package provides Adobe-compliant PPD files for *every single + printer* supported by Foomatic. + . + This package *does not* provide the linuxprinting.org PPD files for + PostScript printers; those are included in the foomatic-db package. + . + Home Page: http://www.linuxprinting.org/ --- foomatic-filters-ppds-20060406.orig/debian/rules +++ foomatic-filters-ppds-20060406/debian/rules @@ -0,0 +1,107 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + #/usr/bin/docbook-to-man debian/foomatic-filters-ppds.sgml > foomatic-filters-ppds.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/foomatic-filters-ppds. + ./install -d $(CURDIR)/debian/foomatic-filters-ppds -p /usr # -z + rm -rf $(CURDIR)/debian/foomatic-filters-ppds/usr/bin + rm -rf $(CURDIR)/debian/foomatic-filters-ppds/usr/share/man + + # Move the PPDs into lp.o-gs-builtin subdirectory of /usr/share/ppd + (cd $(CURDIR)/debian/foomatic-filters-ppds/usr/share/ppd; mfrs=`echo *`; mkdir linuxprinting.org-gs-builtin; mv $$mfrs linuxprinting.org-gs-builtin) + # Delete all the HPIJS PPDs, which are elsewhere now + rm `find $(CURDIR)/debian/foomatic-filters-ppds/usr/share/ppd -name '*-hpijs.ppd*'` + + rm -f $(CURDIR)/debian/foomatic-filters-ppds/usr/share/cups/model/* + mkdir -p $(CURDIR)/debian/foomatic-filters-ppds/usr/share/cups + dh_link /usr/share/ppd/linuxprinting.org-gs-builtin /usr/share/cups/model/linuxprinting.org-gs-builtin + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure