diff --git a/++log.pnm2ppa--debian--1.0--chewie@debian.org--debian b/++log.pnm2ppa--debian--1.0--chewie@debian.org--debian new file mode 100644 index 0000000..8cfdcd4 --- /dev/null +++ b/++log.pnm2ppa--debian--1.0--chewie@debian.org--debian @@ -0,0 +1,4 @@ +Summary: Debian updates +Keywords: debian + + diff --git a/debian/.todo b/debian/.todo new file mode 100644 index 0000000..9ad3ac8 --- /dev/null +++ b/debian/.todo @@ -0,0 +1,12 @@ + + + + Debian pnm2ppa TODO List + + + Add "### BEGIN DEBCONF ###" or some such tag as visual reaffirmation to the sysadmin that debconf edits the config file. + + + Add a manpage for the update-magicfilter script + + diff --git a/debian/README.Debian b/debian/README.Debian index 348cd72..ecaa7fe 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,32 +1,43 @@ pnm2ppa for Debian ---------------------- -Using the pnm2ppa filter, it's possible to use printer with the PPA protocol. -PPA is a proprietary protocol by Hewlett Packard. Printers using PPA are -normally Windows-only. pnm2ppa supports color now. +This Debian package is a rewrite of the original pnm2ppa package using the +Debian Build System (dbs) and debconf templates. The goal of this conversion +was to bring pnm2ppa packages up to date with current Debian standards and to +clean up the installation and upgrade process. This package provides the +following: -The configuration files are in /etc/ppa/. The papersize is being autodetected -since this version. + o A reasonable default configuration file + o Clean generation of magicfilter files + o Basic debconf management of the pnm2ppa.conf file -This package is based on the pbm2ppa package. Thanks to Ionutz Borcoman -. +Debconf and Configuration +------------------------- +Debconf asks whether or not you'ld like it to manage your /etc/pnm2ppa.conf +file and whether or not you want magicfilters generated in the /etc/magicfilter +directory. If you choose to do this manually, you will need to edit the +/etc/pnm2ppa.conf file yourself. - -- Roland Bauerschmidt , Thu, 30 Mar 2000 20:51:28 +0100 + You MUST choose a printer model for pnm2ppa to work! + +Some models behave differently than others, so pnm2ppa will fail if you do not +choose a model. -Starting with pnm2ppa-1.0, pbm2ppa is completely replaced by pnm2ppa. pnm2ppa -will create symlinks for old filters, so your old printcap should work without -changes. +Magicfilter +----------- +Magicfilter is a useful print filtering tool to help you manage your +/etc/printcap with print servers such as lpd or lprng. If you are using +cupsys, you will not need magicfilter. There is a template for these filters +located in /usr/share/pnm2ppa/templates called pnm2ppa-magicfilter.in. The +scriptlet /usr/share/pnm2ppa/update-magicfilter will take this template and +generate four filters: color, color economy, black and white, and black and +white economy. - -- Ionutz Borcoman , Fri, 11 Aug 2000 +Additionally, symbolic links are created from the generated pnm2ppa magicfilter +files to pbm2ppa filters (the deprecated predecessor to pnm2ppa). This is +simply provided for backwards compatibility with an existing /etc/printcap you +may be using. This feature may be removed in the future. -As of Nov 2000, I don't use a PPA printer anymore. I'll continue to maintain -this package untill Roland can maintain it again, but I'll be unable to -test it myself. +Once the filters are installed, run magicfilterconfig to generate your +/etc/printcap. - -- Ionutz Borcoman , Thu, 09 Nov 2000 - -If you're using magicfilter or apsfilter, run magicfilterconfig or -apsfilterconfig and simply follow the instructions. - - -- Matej Vela Tue, 17 Apr 2001 17:48:24 +0200 - diff --git a/debian/TODO b/debian/TODO new file mode 100644 index 0000000..02740d3 --- /dev/null +++ b/debian/TODO @@ -0,0 +1,7 @@ +- Add "### BEGIN DEBCONF ###" or some such tag as visual reaffirmation to the sysadmin + that debconf edits the config file. + (added Sun Dec 21 12:16:29 2003, incomplete, priority high) + +- Add a manpage for the update-magicfilter script + (added Sun Dec 21 12:17:08 2003, incomplete, priority low) + diff --git a/debian/calibrate_ppa.8 b/debian/calibrate_ppa.8 index 717bc20..4a7092f 100644 --- a/debian/calibrate_ppa.8 +++ b/debian/calibrate_ppa.8 @@ -62,6 +62,6 @@ This manual page was written by Chad C. Walstrom , for the Debian GNU/Linux system (but may be used by others). .SH SEE ALSO -.IR pnm2ppa (8), +.IR pnm2ppa (1), .IR magicfilter (8), .IR apsfilter (8) diff --git a/debian/changelog b/debian/changelog index 618e5fb..8aaa635 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,156 @@ +pnm2ppa (1.12-13) unstable; urgency=low + + * debian/po/de.po: Added German debconf templated submitted by Erik Schanze + . Closes: #280039 + * debian/watch: Added to please the "watchers" + * debian/share/update-magicfilter: Check for root permissions upon + execution. Fixed file permissions to please lintian. + * debian/pnm2ppa.install.in: Explicitly installed files in debian/share + rather than using a wildcard (don't want to install any CVS or ARCH files) + * debian/rules (clean): Removed BASH'ism in clean target. + + -- Chad Walstrom Fri, 12 Nov 2004 09:58:07 -0600 + +pnm2ppa (1.12-12) unstable; urgency=low + + * debian/*.doc-base.*: Missing "Files:" field in two of the three doc-base + spec files. Closes: #235520 + + -- Chad Walstrom Sun, 29 Feb 2004 17:12:21 -0600 + +pnm2ppa (1.12-11) unstable; urgency=low + + * debian/po/da.po: Added Danish Debconf translation. Thank you, Claus + Hindsgaul . Closes: #234946 + * debian/rules: Removed the '-n' option from dh_installdocs so that + debhelper can automatically add the install-docs call to the postinst + and prerm scripts. + + -- Chad Walstrom Fri, 27 Feb 2004 18:04:41 -0600 + +pnm2ppa (1.12-10) unstable; urgency=low + + * debian/config, debian/postinst: More cleanups of package scripts. This + fixes the failure to install if the user chooses NOT to configure the + package with debconf. Closes: #229674 + + -- Chad Walstrom Sun, 25 Jan 2004 21:42:14 -0600 + +pnm2ppa (1.12-9) unstable; urgency=low + + * The "What was I thinking?" release. + * Cleanup in postinst; use update-magicfilter. Closes: #226341 + * French translation cleanup. Thanks to Denis Barbier + Closes: #225900 + + -- Chad Walstrom Tue, 6 Jan 2004 10:13:12 -0600 + +pnm2ppa (1.12-8) unstable; urgency=low + + * Japanese translation updated. Closes: #224155 + * Fixed small typo in pnm2ppa manpage that caused it to be installed in + /usr/share/man/man23 + * Miscellaneous cleanup: + - Removed extra copies of pnm2ppa.conf + - Updated debhelper compat level + - Updated control and rules files + - Updated templates & po files to reflect correct pathnames of files + * Fixed typo in call to dh_fixperms for update-magicfilter. Closes: #225258 + + -- Chad Walstrom Sun, 28 Dec 2003 11:21:25 -0600 + +pnm2ppa (1.12-7) unstable; urgency=low + + * Added Japanese translation to debconf. Thanks to OHURA Makoto + . Closes: #218189 + * Removed the "note" template and moved the information to README.Debian. + Although the "note" template may have be informational, it was not + critical to package installation. + + -- Chad Walstrom Wed, 29 Oct 2003 10:54:33 -0600 + +pnm2ppa (1.12-6) unstable; urgency=low + + * Fixed "wrong assumption on char signedness". Closes: #177295 + * Cleaned up the messy debconf config script. Moved the filesystem + alterations to postinst (i.e. config file manipulation). + * Added /etc/pnm2ppa.conf to config file list + * Switched to to gettext-based debconf, and added the French translation. + Thanks, Michel Grentzinger ! Closes: #209105, #211266 + * Added doc-base file to register SGML, HTML, and TXT documents. + + -- Chad Walstrom Thu, 23 Oct 2003 00:15:03 -0500 + +pnm2ppa (1.12-5) unstable; urgency=low + + * Fixed a typo in the templates file. + * "Fixed" failure in preconfigure with the execution of update-magicfilter. + Closes: #170844. (I'm starting to think that the magicfilter files + shouldn't even be in this package, or should be placed in the doc + directory under examples. Feedback welcome.) + * Edited the copyright file, added some more information about Upstream + Authors, Homepage, and Download URL's. + + -- Chad Walstrom Fri, 6 Dec 2002 10:40:54 -0600 + +pnm2ppa (1.12-4) unstable; urgency=low + + * Updated the /usr/share/pnm2ppa/templates/pnm2ppa-filter file with the + correct sed replacement string (@OPTIONS@). + * Fixed the permissions of the installed /etc/pnm2ppa.conf file. + + -- Chad Walstrom Sun, 24 Nov 2002 20:23:46 -0600 + +pnm2ppa (1.12-3) unstable; urgency=high + + * ACK! Introduced a bug that effectively deleted /bin/tempfile in 1.12-2. + * update-magicfilter was not set executable. + * config script exited incorrectly, which caused an error when the user + chose NOT to use debconf to configure the /etc/pnm2ppa.conf file. + + -- Chad Walstrom Sun, 24 Nov 2002 00:44:13 -0600 + +pnm2ppa (1.12-2) unstable; urgency=low + + * Fix auto-build bug regarding removal of generated control files + pnm2ppa.{install,examples}. Closes: #170249 + * Added 'rmdir' for /etc/magicfilter if the directory is empty. (Complying + to policy to remove all configuration files on a 'purge'.) + + -- Chad Walstrom Fri, 22 Nov 2002 11:10:28 -0600 + +pnm2ppa (1.12-1) unstable; urgency=low + + * New upstream release. Re-fixes the old "hangs at last centimeter" bug. + * Fix brain-dead config bug; tests for existance of template or config file + before trying to execute sed and mv. Closes: #169728 + * Using sed to generate pnm2ppa.{install,examples} from *.in files. Cleans + up build process so that editing for new upstream packages requires only a + change to TAR_DIR variable in debian/rules. + * Added 'purge' directives in pnm2ppa.postrm to remove /etc/pnm2ppa.conf + and /etc/magicfilter/p?m2ppa*-filter files. + + -- Chad Walstrom Thu, 21 Nov 2002 13:20:56 -0600 + +pnm2ppa (1.11-1) unstable; urgency=low + + * The "tape-monkey time-killer" release. + * New upstream version. Fixes typos and improves performance. + Closes: #156825, #150244 + * If no /etc/pnm2ppa.conf file exists, one is copied from + /usr/share/pnm2ppa/templates. Closes: #151325 + * Added debconf support to customize the model number for /etc/pnm2ppa.conf + and can generate the magicfilter files. Closes: #120603 + * Magicfilter file creation was cleaned up to use sed over a template file + in /usr/share/pnm2ppa/templates. Admin can elect to not generate the + magicfilters in debconf or run it manually from + /usr/share/pnm2ppa/update-magicfilter. + * Added more upstream documentation to the /usr/share/doc/pnm2ppa directory. + * Rewrote package files to use the Debian Build System (dbs). Added + Build-Depends to reflect this change. + + -- Chad Walstrom Mon, 18 Nov 2002 11:32:51 -0600 + pnm2ppa (1.04-4) unstable; urgency=low * Long overdue adopted package. Closes: #88234 @@ -8,7 +161,10 @@ pnm2ppa (1.04-3) unstable; urgency=low * `Suggests: magicfilter | apsfilter' rather than `Depends: - magicfilter'. The postinst no longer calls magicfilterconfig. + magicfilter'. + * The postinst no longer calls magicfilterconfig. If you're using + magicfilter or apsfilter, run magicfilterconfig or apsfilterconfig and + simply follow the instructions. -- Matej Vela Tue, 17 Apr 2001 18:09:39 +0200 @@ -33,6 +189,9 @@ pnm2ppa (1.03-1) unstable; urgency=low * New upstream release. + * As of Nov 2000, I don't use a PPA printer anymore. I'll continue to + maintain this package untill Roland can maintain it again, but I'll be + unable to test it myself. -- Ionutz Borcoman Thu, 9 Nov 2000 13:53:51 +0900 @@ -41,6 +200,8 @@ * New upstream release. * New maintainer. * Completly replaces pbm2ppa. + * pnm2ppa will create symlinks for old filters, so your old printcap should + work without changes. -- Ionutz Borcoman Fri, 11 Aug 2000 12:19:15 +0900 @@ -67,6 +228,10 @@ pnm2ppa (0.20000326-1) unstable; urgency=low * New upstream release + * The configuration files are in /etc/ppa/. The papersize is being + autodetected since this version. + * This package is based on the pbm2ppa package. Thanks to Ionutz Borcoman + . -- Roland Bauerschmidt Wed, 29 Mar 2000 16:38:26 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/config b/debian/config new file mode 100644 index 0000000..0ff17d8 --- /dev/null +++ b/debian/config @@ -0,0 +1,28 @@ +#!/bin/sh +# +# Config script for pnm2ppa +# +# Only ask the questions here. Make the changes to the filesystem in the +# postinst script. +# +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Let debconf manage the file? +db_input medium pnm2ppa/use_debconf || true +db_go + +# Get the value +db_get pnm2ppa/use_debconf +if [ "$RET" = "true" ] ; then + # Ask which printer + db_input medium pnm2ppa/printer_model || true + db_go + + # Create magicfilter for printer model? + db_input low pnm2ppa/create_magicfilter || true + db_go +fi + diff --git a/debian/control b/debian/control index 5796830..47932e7 100644 --- a/debian/control +++ b/debian/control @@ -2,15 +2,13 @@ Section: text Priority: optional Maintainer: Chad Walstrom -Standards-Version: 3.5.2 -Build-Depends: debhelper (>= 3) +Build-Depends: debhelper (>= 4), dbs (>= 0.9) +Standards-Version: 3.6.1 Package: pnm2ppa Architecture: any -Depends: ${shlibs:Depends}, gs +Depends: ${shlibs:Depends}, ${misc:Depends}, gs Suggests: magicfilter | apsfilter -Replaces: pbm2ppa -Provides: pbm2ppa Conflicts: pbm2ppa Description: PPM to PPA converter Using pnm2ppa it's possible to run HP-GDI printers on Linux. These printers diff --git a/debian/copyright b/debian/copyright index faba78c..7138e9f 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,10 +1,27 @@ -This package was debianized by Roland Bauerschmidt on -Sat, 4 Mar 2000 20:51:28 +0100. +This package was originally debianized by Roland Bauerschmidt + on Sat, 4 Mar 2000 20:51:28 +0100. -It was downloaded from http://sourceforge.net/projects/pnm2ppa/ - -Upstream Author(s): Tim Norman +Homepage: http://pnm2ppa.sourceforge.net/ +Download: http://sourceforge.net/projects/showfiles.php?group_id=1322 +Upstream Authors: A complete list of authors and their contributions can be + found in /usr/share/doc/pnm2ppa/CREDITS. Copyright: -GPL (see /usr/share/common-licenses/GPL for details) + 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 GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + diff --git a/debian/etc/magicfilter/pnm2ppa-1000-bw-eco-filter b/debian/etc/magicfilter/pnm2ppa-1000-bw-eco-filter deleted file mode 100644 index 16ad119..0000000 --- a/debian/etc/magicfilter/pnm2ppa-1000-bw-eco-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --bw --eco -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-1000-bw-filter b/debian/etc/magicfilter/pnm2ppa-1000-bw-filter deleted file mode 100644 index ab27dc5..0000000 --- a/debian/etc/magicfilter/pnm2ppa-1000-bw-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --bw -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-1000-color-eco-filter b/debian/etc/magicfilter/pnm2ppa-1000-color-eco-filter deleted file mode 100644 index 87bdedd..0000000 --- a/debian/etc/magicfilter/pnm2ppa-1000-color-eco-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --eco -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-1000-color-filter b/debian/etc/magicfilter/pnm2ppa-1000-color-filter deleted file mode 100644 index 620420f..0000000 --- a/debian/etc/magicfilter/pnm2ppa-1000-color-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-720-bw-eco-filter b/debian/etc/magicfilter/pnm2ppa-720-bw-eco-filter deleted file mode 100644 index d6aab44..0000000 --- a/debian/etc/magicfilter/pnm2ppa-720-bw-eco-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --bw --eco -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-720-bw-filter b/debian/etc/magicfilter/pnm2ppa-720-bw-filter deleted file mode 100644 index 48e6c6a..0000000 --- a/debian/etc/magicfilter/pnm2ppa-720-bw-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --bw -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-720-color-eco-filter b/debian/etc/magicfilter/pnm2ppa-720-color-eco-filter deleted file mode 100644 index 62f2b17..0000000 --- a/debian/etc/magicfilter/pnm2ppa-720-color-eco-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --eco -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-720-color-filter b/debian/etc/magicfilter/pnm2ppa-720-color-filter deleted file mode 100644 index b0d1d4e..0000000 --- a/debian/etc/magicfilter/pnm2ppa-720-color-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-820-bw-eco-filter b/debian/etc/magicfilter/pnm2ppa-820-bw-eco-filter deleted file mode 100644 index ca30508..0000000 --- a/debian/etc/magicfilter/pnm2ppa-820-bw-eco-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --bw --eco -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-820-bw-filter b/debian/etc/magicfilter/pnm2ppa-820-bw-filter deleted file mode 100644 index c80f7de..0000000 --- a/debian/etc/magicfilter/pnm2ppa-820-bw-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --bw -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-820-color-eco-filter b/debian/etc/magicfilter/pnm2ppa-820-color-eco-filter deleted file mode 100644 index 4fc0c7b..0000000 --- a/debian/etc/magicfilter/pnm2ppa-820-color-eco-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa --eco -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/magicfilter/pnm2ppa-820-color-filter b/debian/etc/magicfilter/pnm2ppa-820-color-filter deleted file mode 100644 index 937c593..0000000 --- a/debian/etc/magicfilter/pnm2ppa-820-color-filter +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/sbin/magicfilter -# -# Magic filter setup file for HP printers 720, 820 and 1000 series. - -# pnm2ppa supports color and black/white printing. This file was -# tested on a HP Deskjet 720C printer, but is supposed to work on -# other printers using the HP PPA protocol, too. Supported pagesizes -# are a4, letter and legal. The pagesize has to be set in /etc/papersize -# and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. - -# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter -# by Roland Bauerschmidt , 2000 - -# PostScript -0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit -0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit - -# PDF -0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit - - -# TeX DVI -0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f - -# compress'd data -0 \037\235 pipe /bin/gzip -cdq - -# packed, gzipped, frozen and SCO LZH data -0 \037\036 pipe /bin/gzip -cdq -0 \037\213 pipe /bin/gzip -cdq -0 \037\236 pipe /bin/gzip -cdq -0 \037\240 pipe /bin/gzip -cdq - -# troff documents -0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` -0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` -0 \\\" fpipe `/usr/bin/grog -Tps $FILE` - -# ditroff -0 "x T ps" pipe /usr/bin/grops -0 "x T dvi" pipe /usr/bin/grodvi -0 "x T ascii" pipe /usr/bin/grotty -0 "x T latin1" pipe /usr/bin/grotty -0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. - -# Portable bit-, grey- and pixmaps -0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null -0 P6\n filter /usr/bin/pnm2ppa -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - - -# HP Printer Control Language (PCL) -- assume start with reset code -0 \033E\033 reject Cannot print PCL files on this printer. - -# HP Printer Job Language (PJL) -0 \033%-12345X reject Cannot print PJL files on this printer. -0 "@PJL " reject Cannot print PJL files on this printer. -0 @PJL\t reject Cannot print PJL files on this printer. -0 @PJL\r reject Cannot print PJL files on this printer. -0 @PJL\n reject Cannot print PJL files on this printer. - -# GIF files -0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null -0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null - -# JFIF (JPEG) files -0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm - -# TIFF files (the last two bytes of the "magic" is really a version number; -# but the magic is really lame and as far as I have understood the version -# number has never changed and never will, so we include it.) -0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE -0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE - -# BMP files (even lousier magic -- Microsoft strikes again!) -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ - /usr/bin/bmptoppm 2>/dev/null -0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ - /usr/bin/bmptoppm 2>/dev/null - -# Garbage delivered from Windows via Samba -# (donated by Andree Leidenfrost ) -# 300 \033\052\157 cat -# later changed to -# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) -0 \000\000\000\000\000 cat - -# Sun rasterfiles -0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null - -# SGI Imagelib (IRIS RGB) files -0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null -0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null - -# FIG files; reported by Steven P. Hill -0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy - -# -# Standard rejects... things we don't want to print -# - -# Various archive formats -257 ustar\0 reject Attempted to print a tar file. -257 "ustar \0" reject Attempted to print a tar file. -0 07070 reject Attempted to print a cpio file. -0 PK\3\4 reject Attempted to print a zip file. -20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. - -# Binaries (Linux): reject with email message -0 \013\1d\0 reject Attempted to print a compiled binary. -0 \100\1d\0 reject Attempted to print a compiled binary. -0 \007\1d\0 reject Attempted to print a compiled binary. -0 \314\0d\0 reject Attempted to print a compiled binary. -0 \177ELF reject Attempted to print an ELF object. -0 \007\001\0 reject Attempted to print an object file. -216 \021\001\0\0 reject Attempted to print a core dump file. -0 ! reject Attempted to print an archive. -0 = reject Attempted to print an archive. - -# Don't confuse this one with troff! -0 .snd reject Attempted to print Sun/NeXT audio data. - -# wacko troff magic -0 ''' fpipe `/usr/bin/grog -Tps $FILE` - -# wild guess: PCL control codes start with -0 \033 reject Cannot print PCL files on this printer. - -# Default entry -- for normal (text) files. MUST BE LAST. -# If you do not have djscript use the other default line or, better, install -# it. MM -# -default pipe /usr/bin/enscript -B -p- diff --git a/debian/etc/ppa/pnm2ppa.conf.hp1000 b/debian/etc/ppa/pnm2ppa.conf.hp1000 deleted file mode 100644 index f613f2c..0000000 --- a/debian/etc/ppa/pnm2ppa.conf.hp1000 +++ /dev/null @@ -1,161 +0,0 @@ -# Sample configuration file -# -# This file will be automatically read upon startup if it is placed in -# /etc/pnm2ppa.conf -# -# uncomment entries by removing "#" to activate them. -# -#-----------set the printer model--------------------------- -# YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE! -# -# If there is more than one "version" entry activated, the last one -# will be used. The printer version can also be set with the command line -# option e.g., "-v 720". - -#version ERROR # PNM2PPA WIIL *NOT* WORK UNTIUL THIS ENTRY IS REMOVED!!!! -#version 720 # 710, 712, 722 also acceptable -#version 820 -version 1000 - - -#--------control system log messages from pnm2ppa------------------- -# pnm2ppa issues progress and error messages to the system log (syslog). -# For security reasons, no input from the user is ever sent to the syslog. -# The setting "silent 1" suppresses messages to the syslog. The -# setting "verbose 1" sends messages to the standard error stream (stderr) -# in addition to the syslog. (Note: on BeOS, syslog messages are -# diverted to stderr; use "silent 1" to suppress them.) -# Note: the "silent 1" keyword is only accepted from the system -# configuration file (/etc/pnm2ppa.conf), and not from configuration files -# specified with the pnm2ppa option "-f". - -#silent 1 -#verbose 1 - -#---------set the margins of the printed page------------------- -# Margins: these are distances from the edges of the paper in -# "dots" ( 600 dots = 1 inch = 2.54 cm). -# Nothing outside these margins will be printed. -# Default values are give below; uncomment and change, if necessary. -# (Older versions of pnm2ppa required larger left and right margins to avoid -# printer failure with "flashing lights", but this problem is believed to -# be solved) - -#topmargin 10 -#bottommargin 150 -#leftmargin 10 -#rightmargin 10 - -#----------center the printer output on the paper------------------- -# Offsets: these are adjustments for centering the print correctly on the -# paper. Units are dots (1/600 inch). Add a positive number of dots to -# xoff to move the printed image to the right, relative to the paper. -# add to yoff to move it down. The helper program calibrate_ppa prints -# a test page to check the offsets (see CALIBRATON.txt): -# usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l -# Default values are: - -#xoffset 160 -#yoffset 50 - -#------------align the black and color ink cartridges-------- -# Color Offsets: these control alignment between the black ink -# and color ink print cartridges. This changes a little whenever you -# replace an ink cartridge, so the default values are just approximate. -# -# Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l " -# to print a test page to help you adjust the color offsets. -# -# The first line checks horizontal alignment ColOffsX,: -# The second line checks vertical alignment ColOffsY,: -# The alignment is correct if alignment patterns "0" is best. -# If a diffent alignment pattern is best, add or subtract the + or -# - value shown below it to ColOffsX or ColOffSy. -# -# See CALIBRATION.txt for more details. -# Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your -# new settings. - -#ColOffsX 0 -#ColOffsY 0 - -#---------------"shearing" corrections------------------------------------- -# shearing correction (for bidirectional printing modes) -# if there is a horizontal offset between right-to-left and left-to-right -# sweeps of the print head, adjust these in units of 1"/600 (1 dot). -# There are separate corrections colorshear and blackshear for the -# color and black print heads. The third and fourth lines of the -# alignment test page (see above) tests these. -# The setting is correct when alignments "0" are correct. -# Add or subtract the + or - number shown under the best-aligned shearing -# alignment pattern. - -#colorshear 0 -#blackshear 0 - -#-------------blackness control----------------------------- -# this controls the density of black ink used. -# valid blackness choices are 1 2 3 4; controls the -# density of black ink used: 1 (least ink), 2 (default), 4 (most). -# 0 = no black ink. This affects black ink bordered by whitespace -# only (e.g. text, but not black in color images) - -#blackness 2 - -#------------Color correct curve Gamma parameters------------------------- -# Gamma color correction values for Red, Green and Blue: -# (Note: a more effective method of color correction is to use -# a calibration file /etc/pnm2ppa.gamma, in which case these -# Gamma values will not be used. See COLOR.html or COLOR.txt) -# The pnm2ppa option --noGamma suppresses color correction. - -# The standard Gamma enhancement curve is -# gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 ) -# (i.e., 256 times ( i*(1.0/256)) to the power Gamma ), -# where (int) i is the ppm color intensity, in the range 0 - 255. -# positive values of Gamma enhance (increase the intensity of) -# the corresponding color. Gamma = 1.0 corresponds to no -# color correction, gEnh[i] = i. - -# You can specify Gamma values as a decimal number for each primary color - -#GammaR 1.0 # red enhancement -#GammaG 1.0 # green enhancement -#GammaB 1.0 # blue enhancement - -# For use with the printed output of "pnm2ppa -g ", -# you can also specify Gamma values using the integer GammaIdx, -# which gives Gamma = 1.0 - 0.033 * GammaIdx : - -#RedGammaIdx 0 -#GreenGammaIdx 0 -#BlueGammaIdx 0 - -# Default papersize (only used for printing the color calibration -# test page with pnm2ppa -g). -# Valid choices are: a4, letter, legal: - -#papersize letter # this is the default -#papersize legal -#papersize a4 - -#-----------suppress bidirectional printing--------------------- - -# by default the printing sweeps are now bidirectional (unimode 0); -# to make unidirectional printing (left-to-right) the default behavior, -# (unimode 1) uncomment the next line . (The command line options --uni -# and --bi override the default behavior). You might wish to print -# unidirectionally to avoid shearing effects in high-quality -# color images, for example) - -#unimode 1 - -#===================================================================== -# the following are switches for debugging purposes only: -# set their values to 0 to switch off the corresponding ink type: - -#black_ink 1 -#color_ink 1 -#cyan_ink 1 -#magenta_ink 1 -#yellow_ink 1 diff --git a/debian/etc/ppa/pnm2ppa.conf.hp720 b/debian/etc/ppa/pnm2ppa.conf.hp720 deleted file mode 100644 index 9edb0f3..0000000 --- a/debian/etc/ppa/pnm2ppa.conf.hp720 +++ /dev/null @@ -1,161 +0,0 @@ -# Sample configuration file -# -# This file will be automatically read upon startup if it is placed in -# /etc/pnm2ppa.conf -# -# uncomment entries by removing "#" to activate them. -# -#-----------set the printer model--------------------------- -# YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE! -# -# If there is more than one "version" entry activated, the last one -# will be used. The printer version can also be set with the command line -# option e.g., "-v 720". - -#version ERROR # PNM2PPA WIIL *NOT* WORK UNTIUL THIS ENTRY IS REMOVED!!!! -version 720 # 710, 712, 722 also acceptable -#version 820 -#version 1000 - - -#--------control system log messages from pnm2ppa------------------- -# pnm2ppa issues progress and error messages to the system log (syslog). -# For security reasons, no input from the user is ever sent to the syslog. -# The setting "silent 1" suppresses messages to the syslog. The -# setting "verbose 1" sends messages to the standard error stream (stderr) -# in addition to the syslog. (Note: on BeOS, syslog messages are -# diverted to stderr; use "silent 1" to suppress them.) -# Note: the "silent 1" keyword is only accepted from the system -# configuration file (/etc/pnm2ppa.conf), and not from configuration files -# specified with the pnm2ppa option "-f". - -#silent 1 -#verbose 1 - -#---------set the margins of the printed page------------------- -# Margins: these are distances from the edges of the paper in -# "dots" ( 600 dots = 1 inch = 2.54 cm). -# Nothing outside these margins will be printed. -# Default values are give below; uncomment and change, if necessary. -# (Older versions of pnm2ppa required larger left and right margins to avoid -# printer failure with "flashing lights", but this problem is believed to -# be solved) - -#topmargin 10 -#bottommargin 150 -#leftmargin 10 -#rightmargin 10 - -#----------center the printer output on the paper------------------- -# Offsets: these are adjustments for centering the print correctly on the -# paper. Units are dots (1/600 inch). Add a positive number of dots to -# xoff to move the printed image to the right, relative to the paper. -# add to yoff to move it down. The helper program calibrate_ppa prints -# a test page to check the offsets (see CALIBRATON.txt): -# usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l -# Default values are: - -#xoffset 160 -#yoffset 50 - -#------------align the black and color ink cartridges-------- -# Color Offsets: these control alignment between the black ink -# and color ink print cartridges. This changes a little whenever you -# replace an ink cartridge, so the default values are just approximate. -# -# Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l " -# to print a test page to help you adjust the color offsets. -# -# The first line checks horizontal alignment ColOffsX,: -# The second line checks vertical alignment ColOffsY,: -# The alignment is correct if alignment patterns "0" is best. -# If a diffent alignment pattern is best, add or subtract the + or -# - value shown below it to ColOffsX or ColOffSy. -# -# See CALIBRATION.txt for more details. -# Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your -# new settings. - -#ColOffsX 0 -#ColOffsY 0 - -#---------------"shearing" corrections------------------------------------- -# shearing correction (for bidirectional printing modes) -# if there is a horizontal offset between right-to-left and left-to-right -# sweeps of the print head, adjust these in units of 1"/600 (1 dot). -# There are separate corrections colorshear and blackshear for the -# color and black print heads. The third and fourth lines of the -# alignment test page (see above) tests these. -# The setting is correct when alignments "0" are correct. -# Add or subtract the + or - number shown under the best-aligned shearing -# alignment pattern. - -#colorshear 0 -#blackshear 0 - -#-------------blackness control----------------------------- -# this controls the density of black ink used. -# valid blackness choices are 1 2 3 4; controls the -# density of black ink used: 1 (least ink), 2 (default), 4 (most). -# 0 = no black ink. This affects black ink bordered by whitespace -# only (e.g. text, but not black in color images) - -#blackness 2 - -#------------Color correct curve Gamma parameters------------------------- -# Gamma color correction values for Red, Green and Blue: -# (Note: a more effective method of color correction is to use -# a calibration file /etc/pnm2ppa.gamma, in which case these -# Gamma values will not be used. See COLOR.html or COLOR.txt) -# The pnm2ppa option --noGamma suppresses color correction. - -# The standard Gamma enhancement curve is -# gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 ) -# (i.e., 256 times ( i*(1.0/256)) to the power Gamma ), -# where (int) i is the ppm color intensity, in the range 0 - 255. -# positive values of Gamma enhance (increase the intensity of) -# the corresponding color. Gamma = 1.0 corresponds to no -# color correction, gEnh[i] = i. - -# You can specify Gamma values as a decimal number for each primary color - -#GammaR 1.0 # red enhancement -#GammaG 1.0 # green enhancement -#GammaB 1.0 # blue enhancement - -# For use with the printed output of "pnm2ppa -g ", -# you can also specify Gamma values using the integer GammaIdx, -# which gives Gamma = 1.0 - 0.033 * GammaIdx : - -#RedGammaIdx 0 -#GreenGammaIdx 0 -#BlueGammaIdx 0 - -# Default papersize (only used for printing the color calibration -# test page with pnm2ppa -g). -# Valid choices are: a4, letter, legal: - -#papersize letter # this is the default -#papersize legal -#papersize a4 - -#-----------suppress bidirectional printing--------------------- - -# by default the printing sweeps are now bidirectional (unimode 0); -# to make unidirectional printing (left-to-right) the default behavior, -# (unimode 1) uncomment the next line . (The command line options --uni -# and --bi override the default behavior). You might wish to print -# unidirectionally to avoid shearing effects in high-quality -# color images, for example) - -#unimode 1 - -#===================================================================== -# the following are switches for debugging purposes only: -# set their values to 0 to switch off the corresponding ink type: - -#black_ink 1 -#color_ink 1 -#cyan_ink 1 -#magenta_ink 1 -#yellow_ink 1 diff --git a/debian/etc/ppa/pnm2ppa.conf.hp820 b/debian/etc/ppa/pnm2ppa.conf.hp820 deleted file mode 100644 index 7bfab87..0000000 --- a/debian/etc/ppa/pnm2ppa.conf.hp820 +++ /dev/null @@ -1,161 +0,0 @@ -# Sample configuration file -# -# This file will be automatically read upon startup if it is placed in -# /etc/pnm2ppa.conf -# -# uncomment entries by removing "#" to activate them. -# -#-----------set the printer model--------------------------- -# YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE! -# -# If there is more than one "version" entry activated, the last one -# will be used. The printer version can also be set with the command line -# option e.g., "-v 720". - -#version ERROR # PNM2PPA WIIL *NOT* WORK UNTIUL THIS ENTRY IS REMOVED!!!! -#version 720 # 710, 712, 722 also acceptable -version 820 -#version 1000 - - -#--------control system log messages from pnm2ppa------------------- -# pnm2ppa issues progress and error messages to the system log (syslog). -# For security reasons, no input from the user is ever sent to the syslog. -# The setting "silent 1" suppresses messages to the syslog. The -# setting "verbose 1" sends messages to the standard error stream (stderr) -# in addition to the syslog. (Note: on BeOS, syslog messages are -# diverted to stderr; use "silent 1" to suppress them.) -# Note: the "silent 1" keyword is only accepted from the system -# configuration file (/etc/pnm2ppa.conf), and not from configuration files -# specified with the pnm2ppa option "-f". - -#silent 1 -#verbose 1 - -#---------set the margins of the printed page------------------- -# Margins: these are distances from the edges of the paper in -# "dots" ( 600 dots = 1 inch = 2.54 cm). -# Nothing outside these margins will be printed. -# Default values are give below; uncomment and change, if necessary. -# (Older versions of pnm2ppa required larger left and right margins to avoid -# printer failure with "flashing lights", but this problem is believed to -# be solved) - -#topmargin 10 -#bottommargin 150 -#leftmargin 10 -#rightmargin 10 - -#----------center the printer output on the paper------------------- -# Offsets: these are adjustments for centering the print correctly on the -# paper. Units are dots (1/600 inch). Add a positive number of dots to -# xoff to move the printed image to the right, relative to the paper. -# add to yoff to move it down. The helper program calibrate_ppa prints -# a test page to check the offsets (see CALIBRATON.txt): -# usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l -# Default values are: - -#xoffset 160 -#yoffset 50 - -#------------align the black and color ink cartridges-------- -# Color Offsets: these control alignment between the black ink -# and color ink print cartridges. This changes a little whenever you -# replace an ink cartridge, so the default values are just approximate. -# -# Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l " -# to print a test page to help you adjust the color offsets. -# -# The first line checks horizontal alignment ColOffsX,: -# The second line checks vertical alignment ColOffsY,: -# The alignment is correct if alignment patterns "0" is best. -# If a diffent alignment pattern is best, add or subtract the + or -# - value shown below it to ColOffsX or ColOffSy. -# -# See CALIBRATION.txt for more details. -# Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your -# new settings. - -#ColOffsX 0 -#ColOffsY 0 - -#---------------"shearing" corrections------------------------------------- -# shearing correction (for bidirectional printing modes) -# if there is a horizontal offset between right-to-left and left-to-right -# sweeps of the print head, adjust these in units of 1"/600 (1 dot). -# There are separate corrections colorshear and blackshear for the -# color and black print heads. The third and fourth lines of the -# alignment test page (see above) tests these. -# The setting is correct when alignments "0" are correct. -# Add or subtract the + or - number shown under the best-aligned shearing -# alignment pattern. - -#colorshear 0 -#blackshear 0 - -#-------------blackness control----------------------------- -# this controls the density of black ink used. -# valid blackness choices are 1 2 3 4; controls the -# density of black ink used: 1 (least ink), 2 (default), 4 (most). -# 0 = no black ink. This affects black ink bordered by whitespace -# only (e.g. text, but not black in color images) - -#blackness 2 - -#------------Color correct curve Gamma parameters------------------------- -# Gamma color correction values for Red, Green and Blue: -# (Note: a more effective method of color correction is to use -# a calibration file /etc/pnm2ppa.gamma, in which case these -# Gamma values will not be used. See COLOR.html or COLOR.txt) -# The pnm2ppa option --noGamma suppresses color correction. - -# The standard Gamma enhancement curve is -# gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 ) -# (i.e., 256 times ( i*(1.0/256)) to the power Gamma ), -# where (int) i is the ppm color intensity, in the range 0 - 255. -# positive values of Gamma enhance (increase the intensity of) -# the corresponding color. Gamma = 1.0 corresponds to no -# color correction, gEnh[i] = i. - -# You can specify Gamma values as a decimal number for each primary color - -#GammaR 1.0 # red enhancement -#GammaG 1.0 # green enhancement -#GammaB 1.0 # blue enhancement - -# For use with the printed output of "pnm2ppa -g ", -# you can also specify Gamma values using the integer GammaIdx, -# which gives Gamma = 1.0 - 0.033 * GammaIdx : - -#RedGammaIdx 0 -#GreenGammaIdx 0 -#BlueGammaIdx 0 - -# Default papersize (only used for printing the color calibration -# test page with pnm2ppa -g). -# Valid choices are: a4, letter, legal: - -#papersize letter # this is the default -#papersize legal -#papersize a4 - -#-----------suppress bidirectional printing--------------------- - -# by default the printing sweeps are now bidirectional (unimode 0); -# to make unidirectional printing (left-to-right) the default behavior, -# (unimode 1) uncomment the next line . (The command line options --uni -# and --bi override the default behavior). You might wish to print -# unidirectionally to avoid shearing effects in high-quality -# color images, for example) - -#unimode 1 - -#===================================================================== -# the following are switches for debugging purposes only: -# set their values to 0 to switch off the corresponding ink type: - -#black_ink 1 -#color_ink 1 -#cyan_ink 1 -#magenta_ink 1 -#yellow_ink 1 diff --git a/debian/manpages b/debian/manpages deleted file mode 100644 index b4ac28d..0000000 --- a/debian/manpages +++ /dev/null @@ -1,2 +0,0 @@ -debian/pnm2ppa.8 -debian/calibrate_ppa.8 diff --git a/debian/patches/10_177295-fix_signedness.patch b/debian/patches/10_177295-fix_signedness.patch new file mode 100644 index 0000000..dfa7d60 --- /dev/null +++ b/debian/patches/10_177295-fix_signedness.patch @@ -0,0 +1,24 @@ +diff -urN pnm2ppa-1.12/calibrate_ppa.c pnm2ppa-1.12.new/calibrate_ppa.c +--- pnm2ppa-1.12/calibrate_ppa.c Mon Jun 10 01:46:19 2002 ++++ pnm2ppa-1.12.new/calibrate_ppa.c Mon Sep 15 07:57:28 2003 +@@ -78,7 +78,7 @@ + FILE *outFile = NULL ; + int testPattern = 0; + char *out_filepath = NULL; +- char c; ++ int c; + static struct option long_opts[] = { + {"gamma",0,0,'g'}, + {"align",0,0,0}, +diff -urN pnm2ppa-1.12/pnm2ppa.c pnm2ppa-1.12.new/pnm2ppa.c +--- pnm2ppa-1.12/pnm2ppa.c Sat Nov 9 15:47:47 2002 ++++ pnm2ppa-1.12.new/pnm2ppa.c Mon Sep 15 07:57:03 2003 +@@ -626,7 +626,7 @@ + int i, opt_index; + FILE *in = NULL, *out = NULL, *gf = NULL; + struct stat tmpstat; +- char c; ++ int c; + BOOLEAN get_Gamma = true; + + char gammaFile[MAXPATHLEN]; diff --git a/debian/patches/99-examples_shbangs.patch b/debian/patches/99-examples_shbangs.patch new file mode 100644 index 0000000..98b12a2 --- /dev/null +++ b/debian/patches/99-examples_shbangs.patch @@ -0,0 +1,24 @@ +diff -ruN pnm2ppa-1.12-old/sample_scripts/lprbw pnm2ppa-1.11/sample_scripts/lprbw +--- pnm2ppa-1.12-old/sample_scripts/lprbw 2002-10-02 20:32:36.000000000 -0500 ++++ pnm2ppa-1.12/sample_scripts/lprbw 2002-11-13 15:21:21.000000000 -0600 +@@ -1,3 +1,4 @@ ++#!/bin/sh + cat $1 | \ + gs -sDEVICE=pbmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ + pnm2ppa --bw --eco $2 $3 $4 $5 -i - -o /dev/lp0 +diff -ruN pnm2ppa-1.12-old/sample_scripts/lprcolor pnm2ppa-1.11/sample_scripts/lprcolor +--- pnm2ppa-1.12-old/sample_scripts/lprcolor 2002-10-02 20:32:36.000000000 -0500 ++++ pnm2ppa-1.12/sample_scripts/lprcolor 2002-11-13 15:21:25.000000000 -0600 +@@ -1,3 +1,4 @@ ++#!/bin/sh + cat $1 | \ + gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ + pnm2ppa $2 $3 $4 $5 -i - -o /dev/lp0 +diff -ruN pnm2ppa-1.12-old/sample_scripts/lpreco pnm2ppa-1.11/sample_scripts/lpreco +--- pnm2ppa-1.12-old/sample_scripts/lpreco 2002-10-02 20:32:36.000000000 -0500 ++++ pnm2ppa-1.12/sample_scripts/lpreco 2002-11-13 15:21:27.000000000 -0600 +@@ -1,3 +1,4 @@ ++#!/bin/sh + cat $1 | \ + gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ + pnm2ppa --eco $2 $3 $4 $5 -i - -o /dev/lp0 diff --git a/debian/patches/99-pnm2ppa_manpage.patch b/debian/patches/99-pnm2ppa_manpage.patch new file mode 100644 index 0000000..8d9f839 --- /dev/null +++ b/debian/patches/99-pnm2ppa_manpage.patch @@ -0,0 +1,9 @@ +diff -urN pnm2ppa-1.12/docs/en/pnm2ppa.1 pnm2ppa-1.12.new/docs/en/pnm2ppa.1 +--- pnm2ppa-1.12/docs/en/pnm2ppa.1 2002-06-23 00:17:58.000000000 -0500 ++++ pnm2ppa-1.12.new/docs/en/pnm2ppa.1 2003-12-16 09:33:58.000000000 -0600 +@@ -1,4 +1,4 @@ +-.TH pnm2ppa "23 Jun 2002" ++.TH pnm2ppa 1 "23 Jun 2002" + .SH NAME + pnm2ppa - convert portable anymap (PNM) images to HP's PPA printer format. + .SH SYNOPSIS diff --git a/debian/pnm2ppa.8 b/debian/pnm2ppa.8 deleted file mode 100644 index 16f53ec..0000000 --- a/debian/pnm2ppa.8 +++ /dev/null @@ -1,137 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH pnm2ppa 8 "November 2000" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.\" -.SH NAME -pnm2ppa \- PPM to PPA converter -.SH SYNOPSIS -.B pnm2ppa -.RI [options] -.SH DESCRIPTION -Using pnm2ppa it's possible to run HP-GDI printers on Linux. These printers are normally "Windows-only" and use the PPA protocol which is proprietary. pnm2ppa supports color and is supposed to work faster than pbm2ppa. pnm2ppa supports the following printers: HP Deskjet 7XX Series, HP Deskjet 820 Series and HP Deskjet 1000 Series. -.SH OPTIONS -.TP -.B \-b -bottom margin in 1"/600 (default: 150 = 0.25") -.TP -.B \-\-bi -forces bidirectional print head sweeps -.TP -.B \-B -density of black ink (n = 0,1,2,3 or 4) -.TP -.B \-\-bw -forces black/white output -.TP -.B \-d -dumps the configuration to stdout -.TP -.B \-\-eco -Econofast mode (uses less ink) -.TP -.B \-f -read printer settings from configuration file -.TP -.B \-F -read color correction table from file -.TP -.B \-\-fd -use fast dithering mode -.TP -.B \-g -print color calibration page. See CALIBRATION.txt -.TP -.B \-h, \-\-help displays this help text. -.TP -.B \-i -input from file , "-i -" means stdin -.TP -.B \-l -left margin in 1"/600 (default: 150 = 0.25") -.TP -.B \-\-noGamma -suppresses any color correction -.TP -.B \-o -output to file , "-o -" means stdout -.TP -.B \-p -disable black ink cartridge -.TP -.B \-r -right margin in 1"/600 (default: 150 = 0.25") -.TP -.B \-s -default papersize (a4, legal, letter = us (default)) -.TP -.B \-t -top margin in 1"/600 (default: 150 = 0.25") -.TP -.B \-\-uni -forces unidirectional print head sweeps -.TP -.B \-v -set the printer model (710, 712, 720, 722, 820, or 1000) -.TP -.B \-\-verbose -outputs syslog output to stderr as well -.TP -.B \-\-version -Display the version of pnm2ppa to the syslog -.TP -.B \-x -vertical offset adjustment in 1"/600 -.TP -.B \-y -horizontal offset adjustment in 1"/600 -.TP -The \fB\-v\fR option resets the margins and offset adjustments to the default values for that printer model. and default to stdin and stdout. '-' is a synonym for stdin and stdout. -.SH CONFIGURATION FILES -The order in which parameters are specified is important: The file /etc/pnm2ppa.conf, if it exists, is processed as a configuration file before any command-line parameters are processed. If an alternate configuration file is specified on the command line with the '-f' parameter, its contents are processed at that point. If a parameter is specified more than once, only its last value is used. Configuration files specified with the '-f' parameter have the following format: -.IP -# Comment -.IP - -.IP - -.IP -[etc.] -.TP -Valid keys include: -.IP -version, xoffset, yoffset, topmargin, leftmargin, rightmargin, bottommargin, blackness, papersize -.TP -or any non-null truncated version of these words. Valid values are the same as with the corresponding command-line parameters. -.TP -Other keys that can be set in the configuration file include: -.IP -silent, verbose, unimode, blackshear, colorshear, RedGammaIdx, BlueGammaIdx, GreenGammaIdx, GammaR, GammaG, GammaB, ColOffsX, ColOffsY, black_ink, color_ink, cyan_ink, magenta_ink, yellow_ink -.TP -See documentation in the sample configuration file for their usage. -.SH FILES -.PD 0 -.IR /etc/ppa/gamma.ppm -gamma correction file -.TP -\fI/etc/ppa/pnm2ppa.conf.hp1000\fP, \fI /etc/ppa/pnm2ppa.conf.hp820\fP, \fI /etc/ppa/pnm2ppa.conf.hp720\fP -.TP -Configuration files for the HP1000, HP820, and HP720 Series respectively. -.PD -.SH SEE ALSO -.IR calibrate_ppa (8), -.IR magicfilter (8), -.IR apsfilter(8) diff --git a/debian/pnm2ppa.dirs b/debian/pnm2ppa.dirs new file mode 100644 index 0000000..f53ff9c --- /dev/null +++ b/debian/pnm2ppa.dirs @@ -0,0 +1,3 @@ +usr/share/pnm2ppa +usr/share/doc/pnm2ppa/en +usr/share/doc/pnm2ppa/pl diff --git a/debian/pnm2ppa.doc-base.calibrate b/debian/pnm2ppa.doc-base.calibrate new file mode 100644 index 0000000..8846a95 --- /dev/null +++ b/debian/pnm2ppa.doc-base.calibrate @@ -0,0 +1,16 @@ +Document: pnm2ppa-calibrate +Title: PPA Printer calibration for pnm2ppa +Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net +Abstract: This manual describes how to calibrate a PPA Printer for use with + pnm2ppa. +Section: text + +Format: debiandoc-sgml +Files: /usr/share/doc/pnm2ppa/en/sgml/CALIBRATION.sgml.gz + +Format: text +Files: /usr/share/doc/pnm2ppa/en/CALIBRATION.txt.gz + +Format: HTML +Index: /usr/share/doc/pnm2ppa/en/CALIBRATION.html +Files: /usr/share/doc/pnm2ppa/en/CALIBRATION.html diff --git a/debian/pnm2ppa.doc-base.color b/debian/pnm2ppa.doc-base.color new file mode 100644 index 0000000..ac79add --- /dev/null +++ b/debian/pnm2ppa.doc-base.color @@ -0,0 +1,17 @@ +Document: pnm2ppa-color +Title: Color correction for pnm2ppa +Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net +Abstract: Information and instructions for color correction of pnm2ppa color + printing. http://sourceforge.net/projects/pnm2ppa (Updated for pnm2ppa-1.0 and + later.) +Section: text + +Format: debiandoc-sgml +Files: /usr/share/doc/pnm2ppa/en/sgml/COLOR.sgml.gz + +Format: text +Files: /usr/share/doc/pnm2ppa/en/COLOR.txt.gz + +Format: HTML +Index: /usr/share/doc/pnm2ppa/en/COLOR.html +Files: /usr/share/doc/pnm2ppa/en/COLOR.html diff --git a/debian/pnm2ppa.doc-base.networking b/debian/pnm2ppa.doc-base.networking new file mode 100644 index 0000000..e6c5fdd --- /dev/null +++ b/debian/pnm2ppa.doc-base.networking @@ -0,0 +1,20 @@ +Document: pnm2ppa-ppa_networking +Title: PPA Networking for Non-Windows Hosts or Clients using SAMBA +Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net +Abstract: This document discusses Networking HP 710C, 720C 820C or 1000C Series + (PPA Protocol) HP DeskJet printers with non-Windows Hosts or Clients, using + SAMBA. Topics include choosing between transmitting PPA or PostScript + across the network, Windows and Linux/Unix Hosts, Windows and Linux/Unix + Clients, and emulating a PostScript printer on Windows. (Updated for + pnm2ppa-1.04 and later.) +Section: text + +Format: debiandoc-sgml +Files: /usr/share/doc/pnm2ppa/en/sgml/PPA_networking.sgml.gz + +Format: text +Files: /usr/share/doc/pnm2ppa/en/PPA_networking.txt.gz + +Format: HTML +Index: /usr/share/doc/pnm2ppa/en/PPA_networking.html +Files: /usr/share/doc/pnm2ppa/en/PPA_networking*.html diff --git a/debian/pnm2ppa.examples.in b/debian/pnm2ppa.examples.in new file mode 100644 index 0000000..1a72ea4 --- /dev/null +++ b/debian/pnm2ppa.examples.in @@ -0,0 +1,4 @@ +build-tree/@TAR_DIR@/lpd/ +build-tree/@TAR_DIR@/pdq/ +build-tree/@TAR_DIR@/sample_scripts/ +build-tree/@TAR_DIR@/test* diff --git a/debian/pnm2ppa.install.in b/debian/pnm2ppa.install.in new file mode 100644 index 0000000..1bf125d --- /dev/null +++ b/debian/pnm2ppa.install.in @@ -0,0 +1,25 @@ +debian/tmp/usr/bin/calibrate_ppa +debian/tmp/usr/bin/pnm2ppa +debian/share/pnm2ppa-magicfilter.in usr/share/pnm2ppa +debian/share/update-magicfilter usr/share/pnm2ppa +build-tree/@TAR_DIR@/pnm2ppa.conf usr/share/pnm2ppa +build-tree/@TAR_DIR@/README.security usr/share/doc/pnm2ppa +build-tree/@TAR_DIR@/docs/en/CREDITS usr/share/doc/pnm2ppa +build-tree/@TAR_DIR@/docs/en/README usr/share/doc/pnm2ppa +build-tree/@TAR_DIR@/docs/en/RELEASE-NOTES usr/share/doc/pnm2ppa +build-tree/@TAR_DIR@/docs/en/TODO usr/share/doc/pnm2ppa +build-tree/@TAR_DIR@/docs/en/CALIBRATION.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/CALIBRATION.txt usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/COLOR.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/COLOR.txt usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/PPA_networking-1.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/PPA_networking-2.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/PPA_networking-3.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/PPA_networking-4.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/PPA_networking.html usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/PPA_networking.txt usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/en/sgml/ usr/share/doc/pnm2ppa/en +build-tree/@TAR_DIR@/docs/pl/AUTORZY usr/share/doc/pnm2ppa/pl +build-tree/@TAR_DIR@/docs/pl/CZYTAJ.TO usr/share/doc/pnm2ppa/pl +build-tree/@TAR_DIR@/docs/pl/KALIBRACJA usr/share/doc/pnm2ppa/pl +build-tree/@TAR_DIR@/docs/pl/text-pl.h usr/share/doc/pnm2ppa/pl diff --git a/debian/pnm2ppa.manpages b/debian/pnm2ppa.manpages new file mode 100644 index 0000000..1ef8b97 --- /dev/null +++ b/debian/pnm2ppa.manpages @@ -0,0 +1,2 @@ +debian/calibrate_ppa.8 +debian/tmp/usr/share/man/man1/pnm2ppa.1 diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..cef83a3 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/debian/po/da.po b/debian/po/da.po new file mode 100644 index 0000000..7cce6de --- /dev/null +++ b/debian/po/da.po @@ -0,0 +1,109 @@ +# translation of pnm2ppa_1.12-10-da.po to Danish +# translation of pnm2ppa_1.12-10_templates.po to Danish +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# Claus Hindsgaul , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: pnm2ppa_1.12-10-da\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-06 10:43-0600\n" +"PO-Revision-Date: 2004-02-26 19:57+0100\n" +"Last-Translator: Claus Hindsgaul \n" +"Language-Team: Danish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.0.2\n" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "Would you like debconf to configure pnm2ppa?" +msgstr "Vil du have debconf til at sætte pnm2ppa op?" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "" +"You can have debconf perform some simple configuration steps for your " +"default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." +msgstr "" +"Du kan fÃ¥ debconf til at udføre nogle simple opsætningstrin pÃ¥ din " +"standardopsætning af pnm2ppa (ved at redigere i filen /etc/pnm2ppa.conf)." + +#. Type: select +#. Description +#: ../templates:11 +msgid "What model of HP Deskjet printer do you use?" +msgstr "Hvilken model er den HP Deskjet-printer, du bruger?" + +#. Type: select +#. Description +#: ../templates:11 +msgid "" +"The pnm2ppa printer filter behaves differently depending upon which HP " +"DeskJet model you use. Choose your model of printer for the default " +"configuration file /etc/pnm2ppa.conf." +msgstr "" +"pnm2ppa-printerfiltret opfører sig forskelligt afhængigt af hvilken HP " +"DeskJet-model, du bruger. Vælg din printermodel til standard-opsætningsfilen " +"/etc/pnm2ppa.conf." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "Would you like debconf to create magicfilter filters?" +msgstr "Vil du have at debconf opretter magicfilter-filtre?" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"Magicfilter is a customizable, extensible automatic printer filter. It uses " +"its own magic database (a la file(1)) to decide how to print out a given " +"print job. Debconf can run the custom pnm2ppa script called \"update-" +"magicfilter\" to generate a default set of filters for color and black-and-" +"white printing." +msgstr "" +"Magicfilter er et automatisk printerfilter, der kan tilrettes og udvides. " +"Det benytter sin egen magiske oversigt (a'la file(1)) til at afgøre hvordan " +"det skal udskrive et givet udskriftsjob. Debconf kan køre det tilpassede " +"pnm2ppa-skript \"update-magicfilter\" for at generere et standard-filsæt " +"til udskrivning i farver og sort/hvid." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." +"in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " +"and place the resulting filters in /etc/magicfilter. Additionally, symbolic " +"links are created from the generated pnm2ppa filters to pbm2ppa filters (the " +"deprecated predecessor to pnm2ppa)." +msgstr "" +"Skabelonfiltret ligger i /usr/share/pnm2ppa/ som \"pnm2ppa-magicfilter." +"in\". update-magicfilter benytter sed til at erstatte @OPTIONS@ fra skabelonen " +"og lægge de resulterende filtre i /etc/magicfilter. Derudover oprettes " +"symbolske lænker fra de genererede pnm2ppa-filtre til pbm2ppa-filtre (den " +"nu forældede forgænger til pnm2ppa)." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The only thing left for you to do is run magicfilterconfig to generate your /" +"etc/printcap." +msgstr "" +"Det eneste du derefter behøver at gøre, er at køre magicfilterconfig for at " +"generere din /etc/printcap." + diff --git a/debian/po/de.po b/debian/po/de.po new file mode 100644 index 0000000..a11e2e0 --- /dev/null +++ b/debian/po/de.po @@ -0,0 +1,110 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# Erik Schanze , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: pnm2ppa_1.12-12_templates\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-06 10:43-0600\n" +"PO-Revision-Date: 2004-11-06 21:22+0100\n" +"Last-Translator: Erik Schanze \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.3.1\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "Would you like debconf to configure pnm2ppa?" +msgstr "Soll debconf für die Einstellungen verwendet werden?" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "" +"You can have debconf perform some simple configuration steps for your " +"default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." +msgstr "" +"Sie können debconf benutzen, um einige einfache Anpassungen an den " +"Standardeinstellungen von pnm2ppa (in Ihrer Datei /etc/pnm2ppa.conf) " +"vorzunehmen." + +#. Type: select +#. Description +#: ../templates:11 +msgid "What model of HP Deskjet printer do you use?" +msgstr "Welches Modell eines HP-Deskjet-Druckers benutzen Sie?" + +#. Type: select +#. Description +#: ../templates:11 +msgid "" +"The pnm2ppa printer filter behaves differently depending upon which HP " +"DeskJet model you use. Choose your model of printer for the default " +"configuration file /etc/pnm2ppa.conf." +msgstr "" +"Der verwendete Drucker-Filter in pnm2ppa hängt vom Typ des HP-Deskjets ab, " +"den Sie einsetzen. Wählen Sie Ihr Druckermodell für die systemweite " +"Konfigurationsdatei /etc/pnm2ppa.conf aus." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "Would you like debconf to create magicfilter filters?" +msgstr "Soll debconf \"magicfilter\" erstellen?" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"Magicfilter is a customizable, extensible automatic printer filter. It uses " +"its own magic database (a la file(1)) to decide how to print out a given " +"print job. Debconf can run the custom pnm2ppa script called \"update-" +"magicfilter\" to generate a default set of filters for color and black-and-" +"white printing." +msgstr "" +"Magicfilter ist ein anpassbarer, erweiterbarer automatischer Druckerfilter. Er " +"nutzt seine eigene magische Datenbank (wie file(1)), um zu entscheiden, wie " +"ein übergebener Druckjob ausgedruckt wird. Debconf kann das Skript " +"\"update-magicfilter\" aufrufen, um einige Standardfilter für Farb- und " +"Schwarz-Weiß-Druck zu erstellen." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." +"in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " +"and place the resulting filters in /etc/magicfilter. Additionally, symbolic " +"links are created from the generated pnm2ppa filters to pbm2ppa filters (the " +"deprecated predecessor to pnm2ppa)." +msgstr "" +"Die Vorlage für den Filter befindet sich im Verzeichnis /usr/share/pnm2ppa/ " +"als \"pnm2ppa-magicfilter.in\". Das Skript update-magicfilter nutzt 'sed', um " +"@OPTIONS@ in der Vorlage zu ersetzen und legt den erstellten Filter im " +"Verzeichnis /etc/magicfilter ab. Zusätzlich werden symbolische Links von den " +"erstellten pnm2ppa-Filtern zu den pbm2ppa-Filtern (dem veralteten Vorgänger " +"von pnm2ppa) angelegt." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The only thing left for you to do is run magicfilterconfig to generate your /" +"etc/printcap." +msgstr "" +"Sie müssen nun nur noch das Programm 'magicfilterconfig' starten, um die Datei " +"/etc/printcap zu erzeugen." + diff --git a/debian/po/fr.po b/debian/po/fr.po new file mode 100644 index 0000000..76e8d6d --- /dev/null +++ b/debian/po/fr.po @@ -0,0 +1,107 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: pnm2ppa 1.12-5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-06 10:43-0600\n" +"PO-Revision-Date: 2003-09-07 12:38+0200\n" +"Last-Translator: Nicolas Bertolissio \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "Would you like debconf to configure pnm2ppa?" +msgstr "Faut-il utiliser debconf pour configurer pnm2ppa ?" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "" +"You can have debconf perform some simple configuration steps for your " +"default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." +msgstr "" +"Debconf peut réaliser quelques étapes de configuration simples pour le " +"paramétrage par défaut de pnm2ppa (dans le fichier /etc/pnm2ppa.conf)." + +#. Type: select +#. Description +#: ../templates:11 +msgid "What model of HP Deskjet printer do you use?" +msgstr "Quel modèle d'imprimante HP Deskjet utilisez-vous ?" + +#. Type: select +#. Description +#: ../templates:11 +msgid "" +"The pnm2ppa printer filter behaves differently depending upon which HP " +"DeskJet model you use. Choose your model of printer for the default " +"configuration file /etc/pnm2ppa.conf." +msgstr "" +"Le filtre d'impression pnm2ppa se comporte différemment selon le modèle " +"d'imprimante HP Deskjet. Veuillez choisir le modèle d'imprimante pour le " +"fichier de configuration par défaut /etc/pnm2ppa.conf." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "Would you like debconf to create magicfilter filters?" +msgstr "Faut-il utiliser debconf pour configurer pnm2ppa ?" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"Magicfilter is a customizable, extensible automatic printer filter. It uses " +"its own magic database (a la file(1)) to decide how to print out a given " +"print job. Debconf can run the custom pnm2ppa script called \"update-" +"magicfilter\" to generate a default set of filters for color and black-and-" +"white printing." +msgstr "" +"Magicfilter est un filtre d'impression automatique extensible et " +"personnalisable. Il utilise sa propre base de données magique (à la file(1)) " +"pour déterminer comment imprimer un travail donné. Debconf peut utiliser le " +"script personnalisé de pnm2ppa appelé « update-magicfilter » pour générer un " +"ensemble de filtres par défaut pour les impressions en couleurs et en noir " +"et blanc." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." +"in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " +"and place the resulting filters in /etc/magicfilter. Additionally, symbolic " +"links are created from the generated pnm2ppa filters to pbm2ppa filters (the " +"deprecated predecessor to pnm2ppa)." +msgstr "" +"Le filtre du modèle se trouve dans /usr/share/pnm2ppa/ et est nommé pnm2ppa-" +"magicfilter.in. update-magicfilter utilise sed pour remplacer les chaînes " +"« @OPTIONS@ » du modèle et installe le filtre résultant dans /etc/" +"magicfilter. De plus, des liens symboliques sont créés des filtres de " +"pnm2ppa générés vers ceux de pbm2ppa (le prédécesseur obsolète de pnm2ppa)." + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The only thing left for you to do is run magicfilterconfig to generate your /" +"etc/printcap." +msgstr "" +"La seule chose qu'il vous reste à faire est de lancer magicfilterconfig pour " +"générer /etc/printcap." diff --git a/debian/po/ja.po b/debian/po/ja.po new file mode 100644 index 0000000..f24e117 --- /dev/null +++ b/debian/po/ja.po @@ -0,0 +1,108 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: pmn2ppa 1.12-7\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-06 10:43-0600\n" +"PO-Revision-Date: 2003-12-16 23:12+0900\n" +"Last-Translator: OHURA Makoto \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "Would you like debconf to configure pnm2ppa?" +msgstr "pnm2ppa ¤òÀßÄꤹ¤ë¤¿¤á¤Ë debconf ¤ò»È¤¤¤¿¤¤¤Ç¤¹¤«¡£" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "" +"You can have debconf perform some simple configuration steps for your " +"default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." +msgstr "" +"(/etc/pnm2ppa.conf ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢) ɸ½à¤Î pnm2ppa ¤Î¥»¥Ã¥È" +"¥¢¥Ã¥×¤Î¤¿¤á¤Î´Êñ¤ÊÀßÄê¤Î¼ê³¤­¤ò debconf ¤Ë¹Ô¤ï¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£" + +#. Type: select +#. Description +#: ../templates:11 +msgid "What model of HP Deskjet printer do you use?" +msgstr "»ÈÍѤ·¤Æ¤¤¤ë HP Deskjet ¥×¥ê¥ó¥¿¤Î¥â¥Ç¥ë¤Ï²¿¤Ç¤¹¤«¡£" + +#. Type: select +#. Description +#: ../templates:11 +msgid "" +"The pnm2ppa printer filter behaves differently depending upon which HP " +"DeskJet model you use. Choose your model of printer for the default " +"configuration file /etc/pnm2ppa.conf." +msgstr "" +"pnm2ppa ¥×¥ê¥ó¥¿¥Õ¥£¥ë¥¿¤Ï¡¢¤É¤Î HP DeskJet ¤Î¥â¥Ç¥ë¤ò»È¤Ã¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ¡¢" +"°Û¤Ê¤Ã¤¿¿¶Éñ¤ò¤·¤Þ¤¹¡£É¸½à¤ÎÀßÄê¥Õ¥¡¥¤¥ë /etc/pnm2ppa.conf ¤Ë¤ª¤±¤ë¥×¥ê¥ó¥¿¤Î" +"¥â¥Ç¥ë¤òÁªÂò¤·¤Æ²¼¤µ¤¤¡£" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "Would you like debconf to create magicfilter filters?" +msgstr "magicfilter ¤Î¥Õ¥£¥ë¥¿¤òºî¤ë¤¿¤á¤Ë debconf ¤ò»È¤¤¤Þ¤¹¤«¡£" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"Magicfilter is a customizable, extensible automatic printer filter. It uses " +"its own magic database (a la file(1)) to decide how to print out a given " +"print job. Debconf can run the custom pnm2ppa script called \"update-" +"magicfilter\" to generate a default set of filters for color and black-and-" +"white printing." +msgstr "" +"magicfilter ¤Ï¥«¥¹¥¿¥Þ¥¤¥º²Äǽ¤Ç¡¢³ÈÄ¥À­¤Î¤¢¤ë¼«Æ°¥×¥ê¥ó¥¿¥Õ¥£¥ë¥¿¤Ç¤¹¡£¤³¤ì" +"¤Ï¡¢Í¿¤¨¤é¤ì¤¿¥×¥ê¥ó¥È¥¸¥ç¥Ö¤ò¤É¤Î¤è¤¦¤Ë°õºþ¤¹¤ë¤«·èÄꤹ¤ë¤¿¤á¤Î (file(1) ή" +"¤Î) magic ¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£debconf ¤Ï update-magicfilter ¤È¤¤¤¦ " +"pnm2ppa ¤Î¥¹¥¯¥ê¥×¥È¤ò»È¤Ã¤Æ¡¢¥«¥é¡¼¤ÈÇò¹õ°õºþ¤Î¤¿¤á¤Îɸ½à¤Î¥Õ¥£¥ë¥¿¤òÀ¸À®¤¹" +"¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£" + +#. Type: boolean +#. Description +#: ../templates:19 +#, fuzzy +msgid "" +"The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." +"in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " +"and place the resulting filters in /etc/magicfilter. Additionally, symbolic " +"links are created from the generated pnm2ppa filters to pbm2ppa filters (the " +"deprecated predecessor to pnm2ppa)." +msgstr "" +"¿÷·¿¤Î¥Õ¥£¥ë¥¿¤Ï pnm2ppa-magicfilter.in ¤È¤¤¤¦Ì¾Á°¤Ç /usr/share/pnm2ppa/ ¤Ë¤¢" +"¤ê¤Þ¤¹¡£update-magicfilter ¤Ï¿÷·¿¤Î @OPTIONS@ ¤ò sed ¤ò»È¤Ã¤ÆÃÖ¤­´¹¤¨¤Æ¡¢¤½¤Î" +"·ë²Ì¤ò /etc/magicfilter ¤ËÃÖ¤¯¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£¤µ¤é¤Ë¡¢À¸À®¤µ¤ì¤¿ pnm2ppa ¤Î" +"¥Õ¥£¥ë¥¿¤«¤é¡¢(pnm2ppa ¤ÎÀèÁĤǤ¢¤ë) pbm2ppa ¤Î¥Õ¥£¥ë¥¿¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯" +"¤¬ºî¤é¤ì¤Þ¤¹¡£" + +#. Type: boolean +#. Description +#: ../templates:19 +#, fuzzy +msgid "" +"The only thing left for you to do is run magicfilterconfig to generate your /" +"etc/printcap." +msgstr "" +"¸å¤Ï¡¢/etc/printcap ¤òÀ¸À®¤¹¤ë¤¿¤á¤Ë magicfilterconfig ¤ò¼Â¹Ô¤¹¤ë¤À¤±¤Ç¤¹¡£" diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..ac12244 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,90 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-06 10:43-0600\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "Would you like debconf to configure pnm2ppa?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4 +msgid "" +"You can have debconf perform some simple configuration steps for your " +"default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." +msgstr "" + +#. Type: select +#. Description +#: ../templates:11 +msgid "What model of HP Deskjet printer do you use?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:11 +msgid "" +"The pnm2ppa printer filter behaves differently depending upon which HP " +"DeskJet model you use. Choose your model of printer for the default " +"configuration file /etc/pnm2ppa.conf." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "Would you like debconf to create magicfilter filters?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"Magicfilter is a customizable, extensible automatic printer filter. It uses " +"its own magic database (a la file(1)) to decide how to print out a given " +"print job. Debconf can run the custom pnm2ppa script called \"update-" +"magicfilter\" to generate a default set of filters for color and black-and-" +"white printing." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." +"in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " +"and place the resulting filters in /etc/magicfilter. Additionally, symbolic " +"links are created from the generated pnm2ppa filters to pbm2ppa filters (the " +"deprecated predecessor to pnm2ppa)." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19 +msgid "" +"The only thing left for you to do is run magicfilterconfig to generate your /" +"etc/printcap." +msgstr "" diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..f02338b --- /dev/null +++ b/debian/postinst @@ -0,0 +1,63 @@ +#! /bin/sh +# postinst script for pnm2ppa +# +# see: dh_installdeb(1) +set -e + +# Variables +CONFFILE="/etc/pnm2ppa.conf" +CONFTMPL="/usr/share/pnm2ppa/pnm2ppa.conf" +MKMAGIC="/usr/share/pnm2ppa/update-magicfilter" + +# Debconf, baby -- no tests. It's a dependency for installation. +. /usr/share/debconf/confmodule + +case "${1}" in + configure) + # Make sure we have a config file in place + if [ ! -f ${CONFFILE} ] ; then + /usr/bin/install -m644 ${CONFTMPL} ${CONFFILE} + fi + + db_get pnm2ppa/use_debconf + if [ "${RET}" = "true" ] ; then + # If conf file already exists, use that + if [ -f ${CONFFILE} ] ; then + CONFSRC=${CONFFILE} + else + CONFSRC=${CONFTMPL} + fi + + # VERY simple sed replacement + if [ -f ${CONFSRC} ] ; then + db_get pnm2ppa/printer_model + TEMPFILE=`/bin/tempfile` + # Replace everything following "version " w/model + /bin/sed -e "s,^\(version \).*$,\1 ${RET}," ${CONFSRC} > \ + ${TEMPFILE} + /usr/bin/install -m644 ${TEMPFILE} ${CONFFILE} + /bin/rm ${TEMPFILE} + fi + + # Simple magicfilter processing... + db_get pnm2ppa/create_magicfilter + if [ "${RET}" = "true" ] ; then + sh $MKMAGIC + fi + fi + + ;; + 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 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..ef99d99 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,22 @@ +#!/bin/sh -e +# +# Purge actions +if [ "$1" = purge ] ; then + # Get rid of configuration file + if [ -f /etc/pnm2ppa.conf ]; then + rm -f /etc/pnm2ppa.conf + fi + # We're pretty sure that the pnm2ppa magicfilter files were generated + # or installed by pnm2ppa packages. + if [ -d /etc/magicfilter ] ; then + for i in /etc/magicfilter/p?m2ppa*-filter ; do + rm -f $i || true + done + + # If there are no files in the magicfilter directory, remove. + # rmdir will fail if there are files... Not an error. + rmdir /etc/magicfilter 2> /dev/null || true + fi +fi + +#DEBHELPER# diff --git a/debian/prerm b/debian/prerm index 1e8d4f2..cfaa46a 100644 --- a/debian/prerm +++ b/debian/prerm @@ -1,8 +1,44 @@ -#!/bin/sh -e +#! /bin/sh +# prerm script for pnm2ppa +# +# see: dh_installdeb(1) -if [ "$1" = purge ] -then - rm -f /etc/magicfilter/pbm2ppa* -fi +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/pnm2ppa.info.gz + ;; + failed-upgrade) + ;; + purge) + for i in /etc/magicfilter/pbm2ppa* ; do + rm -f $i + done + ;; + *) + echo "prerm 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 + + diff --git a/debian/rules b/debian/rules index ea6d4bd..0b8a093 100755 --- a/debian/rules +++ b/debian/rules @@ -1,92 +1,96 @@ #!/usr/bin/make -f -# This file is public domain software, originally written by Joey Hess. +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independent +# package. -# Uncomment this to turn on verbose mode. +# Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# This is the debhelper compatibility version to use. -export DH_COMPAT=3 +# DBS setup (See also: dbs(7)) +TAR_DIR = pnm2ppa-1.12 +include /usr/share/dbs/dbs-build.mk +ifeq (,$(DEB_BUILD_GNU_TYPE)) + include /usr/share/dbs/dpkg-arch.mk +endif CFLAGS=-DLANG_EN -O2 -Wall ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) -CFLAGS+=-g + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s endif -build: build-stamp -build-stamp: +configure: configure-stamp +configure-stamp: $(patched) + dh_testdir + # Add here commands to configure the package. + sed -e "s/@TAR_DIR@/$(TAR_DIR)/" debian/pnm2ppa.install.in \ + > debian/pnm2ppa.install + sed -e "s/@TAR_DIR@/$(TAR_DIR)/" debian/pnm2ppa.examples.in \ + > debian/pnm2ppa.examples + touch configure-stamp + +build-arch: configure-stamp build-arch-stamp +build-arch-stamp: $(patched) dh_testdir - # Add here commands to compile the package. - $(MAKE) CFLAGS="$(CFLAGS)" + # Add here command to compile/build the package. + cd $(BUILD_TREE) && $(MAKE) - touch build-stamp + touch build-arch-stamp + +build: build-arch clean: dh_testdir dh_testroot - rm -f build-stamp + -rm -f build-arch-stamp configure-stamp - # Add here commands to clean up after the build process. - $(MAKE) clean + # DBS -- remove the source and stamp dirs + -rm -rf $(STAMP_DIR) $(SOURCE_DIR) + + # clean up generated control files + -rm -f debian/pnm2ppa.install debian/pnm2ppa.examples dh_clean +install: DH_OPTIONS= install: build dh_testdir dh_testroot dh_clean -k - dh_installdirs usr/bin etc usr/share/man/man1 - # Add here commands to install the package into debian/ - $(MAKE) install INSTALLDIR=`pwd`/debian/pnm2ppa/usr/bin \ - CONFDIR=`pwd`/debian/pnm2ppa/etc \ - MANDIR=`pwd`/debian/pnm2ppa/usr/share/man/man1 - rm -r debian/pnm2ppa/etc - cp -a debian/etc debian/pnm2ppa - set -e; \ - cd debian/pnm2ppa/etc/magicfilter; \ - chmod 755 *; \ - for m in 1000 720 820; do \ - ln -s pnm2ppa-$$m-bw-filter pbm2ppa-$$m-filter; \ - ln -s pnm2ppa-$$m-bw-eco-filter pbm2ppa-draft-$$m-filter; \ - done - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. + # Add here commands to install the package into debian/pnm2ppa. + cd $(BUILD_TREE) && \ + $(MAKE) -e install \ + BINDIR=$(CURDIR)/debian/tmp/usr/bin \ + CONFDIR=$(CURDIR)/debian/tmp/etc \ + MANDIR=$(CURDIR)/debian/tmp/usr/share/man/man1 # Build architecture-dependent files here. binary-arch: build install - dh_testdir - dh_testroot -# dh_installdebconf - dh_installdocs docs lpd pdq - cd debian/pnm2ppa/usr/share/doc/pnm2ppa/docs/en && rm LICENSE *.1 - dh_installexamples sample_scripts/* *.ps - perl -pi -e 'print "#!/bin/sh -e\n" if $$. == 1; close ARGV if eof;' \ - debian/pnm2ppa/usr/share/doc/pnm2ppa/examples/lpr* - dh_installmenu -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit - dh_installcron - dh_installman - dh_installinfo -# dh_undocumented calibrate_ppa.1 - dh_installchangelogs Changelog - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_makeshlibs - dh_installdeb -# dh_perl - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb + dh_testdir -a + dh_testroot -a + dh_installdebconf -a + dh_installdirs -a + dh_install -a + dh_installdocs -a + dh_installexamples -a + dh_installman -a + dh_installchangelogs -a build-tree/$(TAR_DIR)/Changelog + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a -Xupdate-magicfilter + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +binary: binary-arch +.PHONY: build clean binary-arch binary install configure diff --git a/debian/share/pnm2ppa-magicfilter.in b/debian/share/pnm2ppa-magicfilter.in new file mode 100644 index 0000000..140e818 --- /dev/null +++ b/debian/share/pnm2ppa-magicfilter.in @@ -0,0 +1,142 @@ +#!/usr/sbin/magicfilter +# +# Magic filter setup file for HP printers 720, 820 and 1000 series. + +# pnm2ppa supports color and black/white printing. This file was +# tested on a HP Deskjet 720C printer, but is supposed to work on +# other printers using the HP PPA protocol, too. Supported pagesizes +# are a4, letter and legal. The pagesize has to be set in /etc/papersize +# and not in the configuration file /etc/pnm2ppa.conf. +# +# To change the model of the printer, do not edit this file. Instead, change +# the "version" setting in /etc/pnm2ppa.conf + +# Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter +# by Roland Bauerschmidt , 2000 + +# PostScript +0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit +0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit + +# PDF +0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit + + +# TeX DVI +0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f + +# compress'd data +0 \037\235 pipe /bin/gzip -cdq + +# packed, gzipped, frozen and SCO LZH data +0 \037\036 pipe /bin/gzip -cdq +0 \037\213 pipe /bin/gzip -cdq +0 \037\236 pipe /bin/gzip -cdq +0 \037\240 pipe /bin/gzip -cdq + +# troff documents +0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` +0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` +0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` +0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` +0 \\\" fpipe `/usr/bin/grog -Tps $FILE` + +# ditroff +0 "x T ps" pipe /usr/bin/grops +0 "x T dvi" pipe /usr/bin/grodvi +0 "x T ascii" pipe /usr/bin/grotty +0 "x T latin1" pipe /usr/bin/grotty +0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. + +# Portable bit-, grey- and pixmaps +0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null +0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null +0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null +0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null +0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null +0 P6\n filter /usr/bin/pnm2ppa @OPTIONS@ $ZOPT -i - -o - + +# HP Printer Control Language (PCL) -- assume start with reset code +0 \033E\033 reject Cannot print PCL files on this printer. + +# HP Printer Job Language (PJL) +0 \033%-12345X reject Cannot print PJL files on this printer. +0 "@PJL " reject Cannot print PJL files on this printer. +0 @PJL\t reject Cannot print PJL files on this printer. +0 @PJL\r reject Cannot print PJL files on this printer. +0 @PJL\n reject Cannot print PJL files on this printer. + +# GIF files +0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null +0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null + +# JFIF (JPEG) files +0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm + +# TIFF files (the last two bytes of the "magic" is really a version number; +# but the magic is really lame and as far as I have understood the version +# number has never changed and never will, so we include it.) +0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE +0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE + +# BMP files (even lousier magic -- Microsoft strikes again!) +0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ + /usr/bin/bmptoppm 2>/dev/null +0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ + /usr/bin/bmptoppm 2>/dev/null +0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ + /usr/bin/bmptoppm 2>/dev/null + +# Garbage delivered from Windows via Samba +# (donated by Andree Leidenfrost ) +# 300 \033\052\157 cat +# later changed to +# (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) +0 \000\000\000\000\000 cat + +# Sun rasterfiles +0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null + +# SGI Imagelib (IRIS RGB) files +0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null +0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null + +# FIG files; reported by Steven P. Hill +0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy + +# +# Standard rejects... things we don't want to print +# + +# Various archive formats +257 ustar\0 reject Attempted to print a tar file. +257 "ustar \0" reject Attempted to print a tar file. +0 07070 reject Attempted to print a cpio file. +0 PK\3\4 reject Attempted to print a zip file. +20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. + +# Binaries (Linux): reject with email message +0 \013\1d\0 reject Attempted to print a compiled binary. +0 \100\1d\0 reject Attempted to print a compiled binary. +0 \007\1d\0 reject Attempted to print a compiled binary. +0 \314\0d\0 reject Attempted to print a compiled binary. +0 \177ELF reject Attempted to print an ELF object. +0 \007\001\0 reject Attempted to print an object file. +216 \021\001\0\0 reject Attempted to print a core dump file. +0 ! reject Attempted to print an archive. +0 = reject Attempted to print an archive. + +# Don't confuse this one with troff! +0 .snd reject Attempted to print Sun/NeXT audio data. + +# wacko troff magic +0 ''' fpipe `/usr/bin/grog -Tps $FILE` + +# wild guess: PCL control codes start with +0 \033 reject Cannot print PCL files on this printer. + +# Default entry -- for normal (text) files. MUST BE LAST. +# If you do not have djscript use the other default line or, better, install +# it. MM +# +default pipe /usr/bin/enscript -B -p- diff --git a/debian/share/update-magicfilter b/debian/share/update-magicfilter new file mode 100644 index 0000000..af62647 --- /dev/null +++ b/debian/share/update-magicfilter @@ -0,0 +1,48 @@ +#!/bin/sh -e +# Build magicfilters for the pnm2ppa package. +# +# Copyright Public Domain +# Written for Debian by Chad Walstrom + +################################ +# Function: make the magicfilter +make_filter(){ + template=$1 + shift + options=${@} + + target=`echo "/etc/magicfilter/pnm2ppa${options}-filter"| + sed -e 's/--/-/g' -e 's/ //'` + + # Replace keyword strings in the file + sed -e "s,@OPTIONS@,${options}," ${template} > ${target} + chmod +x ${target} + + # Old pbm2ppa legacy filter file linkage + ln -fs ${target} `echo ${target} | sed -e 's/pnm2ppa/pbm2ppa/'` +} + +################################# +# Check for template + +# If you're not root, you shouldn't be running this +if [ `id -u` -ne 0 ] ; then + echo "You need root permissions to run this script." 1>&2 + exit 1 +fi + +TEMPLATE=/usr/share/pnm2ppa/pnm2ppa-magicfilter.in +test ! -f $TEMPLATE && exit $? + +# Make sure directory exists +if [ ! -d /etc/magicfilter ] ; then + mkdir -p /etc/magicfilter || exit $? +fi + +# Make a filter for each colormode and each quality of print +make_filter $TEMPLATE +make_filter $TEMPLATE --eco +make_filter $TEMPLATE --bw +make_filter $TEMPLATE --bw --eco + +# End of stupid hack diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..c5ca88d --- /dev/null +++ b/debian/templates @@ -0,0 +1,34 @@ +Template: pnm2ppa/use_debconf +Type: boolean +Default: true +_Description: Would you like debconf to configure pnm2ppa? + You can have debconf perform some simple configuration steps for your + default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file). + +Template: pnm2ppa/printer_model +Type: select +Choices: 710, 712, 720, 722, 820, 1000 +_Description: What model of HP Deskjet printer do you use? + The pnm2ppa printer filter behaves differently depending upon which HP + DeskJet model you use. Choose your model of printer for the default + configuration file /etc/pnm2ppa.conf. + +Template: pnm2ppa/create_magicfilter +Type: boolean +Default: false +_Description: Would you like debconf to create magicfilter filters? + Magicfilter is a customizable, extensible automatic printer filter. It + uses its own magic database (a la file(1)) to decide how to print out a + given print job. Debconf can run the custom pnm2ppa script called + "update-magicfilter" to generate a default set of filters for color and + black-and-white printing. + . + The template filter is found in /usr/share/pnm2ppa/ as + "pnm2ppa-magicfilter.in". update-magicfilter uses sed to replace + @OPTIONS@ from the template and place the resulting filters in + /etc/magicfilter. Additionally, symbolic links are created from the + generated pnm2ppa filters to pbm2ppa filters (the deprecated + predecessor to pnm2ppa). + . + The only thing left for you to do is run magicfilterconfig to + generate your /etc/printcap. diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..06c7f4e --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +# +# watch -- uscan configuration file for pnm2ppa +# +version=2 +ftp://ftp2.sf.net/pub/sourceforge/p/pn/pnm2ppa/pnm2ppa-?_?\d+\.([\w+\d+\.]+|\d+)(\.tar|\.tgz)(\.gz|\.bz2|) debian