diff options
author | abs <abs@pkgsrc.org> | 2000-10-17 11:12:37 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2000-10-17 11:12:37 +0000 |
commit | 94355214b0254bfeca3073d894dbf8d5650da658 (patch) | |
tree | aff2d87cd30934dc82565d2bd8c767ebca1dfd5f /print | |
parent | 72607fc69bed402046bfcbab208fa1628fef60fe (diff) | |
download | pkgsrc-94355214b0254bfeca3073d894dbf8d5650da658.tar.gz |
Update to 1.1
Rework inline notes into POD format and use pod2man to generate manpage
Diffstat (limited to 'print')
-rw-r--r-- | print/if-psprint/Makefile | 6 | ||||
-rwxr-xr-x | print/if-psprint/files/if-psprint.pl | 114 | ||||
-rw-r--r-- | print/if-psprint/pkg/PLIST | 3 |
3 files changed, 89 insertions, 34 deletions
diff --git a/print/if-psprint/Makefile b/print/if-psprint/Makefile index 6a2eb91794e..d88a1983dfe 100644 --- a/print/if-psprint/Makefile +++ b/print/if-psprint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.1.1.1 2000/10/16 12:19:06 abs Exp $ +# $NetBSD: Makefile,v 1.2 2000/10/17 11:12:37 abs Exp $ # -DISTNAME= if-psprint-1.0 +DISTNAME= if-psprint-1.1 CATEGORIES= print MASTER_SITES= # empty DISTFILES= # empty @@ -23,8 +23,10 @@ do-build: ${SED} -e 's|@PREFIX@|${PREFIX}|g' \ < ${FILESDIR}/if-psprint.pl \ > ${WRKSRC}/if-psprint + pod2man ${WRKSRC}/if-psprint > ${WRKSRC}/if-psprint.1 do-install: ${INSTALL_SCRIPT} ${WRKSRC}/if-psprint ${PREFIX}/libexec/if-psprint + ${INSTALL_MAN} ${WRKSRC}/if-psprint.1 ${PREFIX}/man/man1/if-psprint.1 .include "../../mk/bsd.pkg.mk" diff --git a/print/if-psprint/files/if-psprint.pl b/print/if-psprint/files/if-psprint.pl index 7db5819d665..399055d1709 100755 --- a/print/if-psprint/files/if-psprint.pl +++ b/print/if-psprint/files/if-psprint.pl @@ -1,6 +1,6 @@ #!@PREFIX@/bin/perl -w # -# $NetBSD: if-psprint.pl,v 1.1.1.1 2000/10/16 12:19:07 abs Exp $ +# $NetBSD: if-psprint.pl,v 1.2 2000/10/17 11:12:37 abs Exp $ # # Copyright (c) 2000 David Brownlee <abs@netbsd.org>. All rights # reserved. Provided as-is without express or implied warranties. @@ -9,36 +9,88 @@ # modification, are permitted provided the above copyright and this # notice is retained. # -# Print text, postscript, or native printer language to arbitrary printer, -# designed as a quick for for the random printers that get hooked up to -# the NetBSD server and random Windows boxes around the office... -# -# Overview: -# - Overloads 'af' entry to contain printer type, and optional location. -# in the form 'type[.model][/smb/smb_dest]'. 'ps' for no gs filter. -# - Reads first 1k and calls 'file' to determine filetype. -# - Builds a spool command based on filetype: -# - If text and not postscript, use enscript text->postscript -# - If enscripted or postscript, use gs postscript->printer_format -# - Otherwise assumed to be native printer language (its your rope) -# - Open pipe to spool command, send first 1k, then rest of data -# - requires ghostscript, enscript, and samba if printing to smb hosts -# -# Sample printcap entries: (Remember to create spool dir [sd]) -# -# HP deskjet named 'leaves' connected to smb host 'tea'. -# (using ghostscript 'hpdj' driver model 'unspec') -# -# leaves:\ -# :sh:mx=0:if=@PREFIX@/libexec/if-psprint:lf=/var/log/lpd-errs:\ -# :lp=/dev/null:sd=/var/spool/lpd/leaves:af=hpdj.unspec/smb/tea/leaves -# -# Canon bubblejet connected to /dev/lpa0 (using gs 'bjc800' driver) -# -# bubbly:\ -# :sh:mx=0:if=@PREFIX@/libexec/if-psprint:lf=/var/log/lpd-errs:\ -# :lp=/dev/lpa0:sd=/var/spool/lpd/bubbly:af=bjc800 -# + +=head1 Overview + +if-psprint will ssend text, postscript, or native printer language to an +arbitrary printer. + +Designed as a quick fix for the random printers that get hooked up to +the NetBSD server and random Windows boxes around the office. Uses enscript +to convert text to postscript, and ghostcript to convert to native printer +language as required. + +=head1 Details + +=over 4 + +=item * + +Overloads 'af' entry to contain printer type, and optional location. +in the form 'type[.model][/smb/smb_dest]'. Use type 'ps' for no gs filter. + +=item * + +Reads first 1k and calls 'file' to determine filetype. + +=item * + +Builds a spool command based on filetype: + +=over 4 + +=item * + +If text and not postscript, use enscript text->postscript + +=item * + +If enscripted or postscript, use gs postscript->printer_format + +=item * + +Otherwise assumed to be native printer language (its your rope) + +=back + +=item * + +Open pipe to spool command, send first 1k, then rest of data + +=item * + +requires ghostscript, enscript, and samba if printing to smb hosts + +=back + +=head1 Sample printcap entries + +(Remember to create spool dir [sd]) + +=over 4 + +=item * + +HP deskjet named 'leaves' connected to smb host 'tea'. +(using ghostscript 'hpdj' driver model 'unspec') + + leaves:\ + :if=@PREFIX@/libexec/if-psprint:lf=/var/log/lpd-errs:\ + :sh:mx=0:lp=/dev/null:sd=/var/spool/lpd/leaves:\ + :af=hpdj.unspec/smb/tea/leaves: + +=item * + +Canon bubblejet connected to /dev/lpa0 (using gs 'bjc800' driver) + + bubbly:\ + :if=@PREFIX@/libexec/if-psprint:lf=/var/log/lpd-errs:\ + :sh:mx=0:lp=/dev/lpa0:sd=/var/spool/lpd/bubbly:\ + :af=bjc800: + +=back + +=cut $ENV{'PATH'}="@PREFIX@/bin:/usr/bin:/bin"; diff --git a/print/if-psprint/pkg/PLIST b/print/if-psprint/pkg/PLIST index e21f3f55e87..f2ea17dd159 100644 --- a/print/if-psprint/pkg/PLIST +++ b/print/if-psprint/pkg/PLIST @@ -1,2 +1,3 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/16 12:19:07 abs Exp $ +@comment $NetBSD: PLIST,v 1.2 2000/10/17 11:12:37 abs Exp $ libexec/if-psprint +man/man1/if-psprint.1 |