summaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1996-11-25 01:04:58 +0000
committerobrien <obrien@FreeBSD.org>1996-11-25 01:04:58 +0000
commitf18f779434d152cc2a78dc8f53cc07c1516b03c6 (patch)
tree2611a3cbf8e0c4576d8fbaae6998276e4a927e5a /print
parent9bbd3cf2df479fa5b951726b45e20979823d971f (diff)
downloadFreeBSD-ports-f18f779434d152cc2a78dc8f53cc07c1516b03c6.zip
FreeBSD-ports-f18f779434d152cc2a78dc8f53cc07c1516b03c6.tar.gz
Lprps is a collection of programs for using lpr with a PostScript printer.
(it used to be mentioned in the Handbook in the printing chapter)
Diffstat (limited to 'print')
-rw-r--r--print/lprps-letter/Makefile83
-rw-r--r--print/lprps-letter/distinfo1
-rw-r--r--print/lprps-letter/files/patch-aa29
-rw-r--r--print/lprps-letter/files/patch-ab11
-rw-r--r--print/lprps-letter/files/patch-ac11
-rw-r--r--print/lprps-letter/files/patch-ad13
-rw-r--r--print/lprps-letter/pkg-comment1
-rw-r--r--print/lprps-letter/pkg-descr23
-rw-r--r--print/lprps-letter/pkg-plist14
9 files changed, 186 insertions, 0 deletions
diff --git a/print/lprps-letter/Makefile b/print/lprps-letter/Makefile
new file mode 100644
index 0000000..98d62a0
--- /dev/null
+++ b/print/lprps-letter/Makefile
@@ -0,0 +1,83 @@
+# ex:ts=8
+# New ports collection makefile for: lprps
+# Version required: 2.50
+# Date created: Sat Aug 3, 1996
+# Whom: David O'Brien (obrien@cs.ucdavis.edu)
+#
+# $Id: Makefile,v 1.1.1.1 1996/08/16 07:23:00 asami Exp $
+#
+
+DISTNAME= lprps-2.5
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.jclark.com/pub/lprps/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= obrien@cs.ucdavis.edu
+
+MAKE_FLAGS?= PAPERSIZE=${PAPERSIZE} -f
+MAN1= psrev.1 textps.1
+MAN8= lprps.8 psif.8 psof.8
+
+
+letter::
+ ${MAKE} PAPERSIZE=letter
+
+letter-install::
+ ${MAKE} PAPERSIZE=letter install
+
+a4::
+ ${MAKE} PAPERSIZE=a4
+
+a4-install::
+ ${MAKE} PAPERSIZE=a4 install
+
+
+.if !defined(PAPERSIZE)
+PAPERSIZE=LETTER
+PAPERSIZE_UNSPECIFIED= yes
+.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
+PAPERSIZE=A4
+.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER
+PAPERSIZE=LETTER
+.else
+PAPERSIZE_INVALID= yes
+.endif # not defined PAPERSIZE
+
+pre-fetch:
+.if defined(PAPERSIZE_UNSPECIFIED)
+ @echo "Defaulting to ${PAPERSIZE} sized paper."
+ @echo ""
+ @echo "Set the environment variable PAPERSIZE if you want to use other sizes."
+ @echo "Possible values are: A4 or letter (default)"
+.elif defined(PAPERSIZE_INVALID)
+ @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
+ @echo "Possible values are: A4 or letter (default)"
+ @/usr/bin/false
+.endif
+
+pre-install:
+ -test -d ${PREFIX}/share/lprps || ${MKDIR} ${PREFIX}/share/lprps
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/psif ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/lprps ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/psof ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/textps ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/psrev ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/psif-text ${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKSRC}/psif-ps ${PREFIX}/libexec
+ ${INSTALL_DATA} ${WRKSRC}/banner.ps ${PREFIX}/share/lprps
+ ${INSTALL_MAN} ${WRKSRC}/textps.n ${PREFIX}/man/man1/textps.1
+ ${INSTALL_MAN} ${WRKSRC}/psrev.n ${PREFIX}/man/man1/psrev.1
+ ${INSTALL_MAN} ${WRKSRC}/lprps.n ${PREFIX}/man/man8/lprps.8
+ ${INSTALL_MAN} ${WRKSRC}/psif.n ${PREFIX}/man/man8/psif.8
+ ${INSTALL_MAN} ${WRKSRC}/psof.n ${PREFIX}/man/man8/psof.8
+ @${ECHO} Now edit /etc/printcap
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/lprps
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/lprps
+.endif
+
+.include <bsd.port.mk>
diff --git a/print/lprps-letter/distinfo b/print/lprps-letter/distinfo
new file mode 100644
index 0000000..b2d7b1f
--- /dev/null
+++ b/print/lprps-letter/distinfo
@@ -0,0 +1 @@
+MD5 (lprps-2.5.tar.Z) = 284fb0568fb1e277a34f0eb98f6f38cb
diff --git a/print/lprps-letter/files/patch-aa b/print/lprps-letter/files/patch-aa
new file mode 100644
index 0000000..343b982
--- /dev/null
+++ b/print/lprps-letter/files/patch-aa
@@ -0,0 +1,29 @@
+--- Makefile.orig Wed Sep 11 03:08:08 1996
++++ Makefile Wed Sep 11 03:11:29 1996
+@@ -3,21 +3,21 @@
+ # Define IIg to enable a workaround for a bug in the serial
+ # driver of the Laserwriter IIf and IIg; this requires the POSIX
+ # tcdrain() function. (I haven't tested this personally.)
+-DEFINES=-DA4 #-DIIg
+-PREFIX=/usr/local
++DEFINES=-D$(PAPERSIZE)
+ # Where to install public executables.
+ BINDIR=$(PREFIX)/bin
+ # Where to install private executables.
+-LIBDIR=$(PREFIX)/lib
++LIBDIR=$(PREFIX)/libexec
+ # Define REV_COMMAND to be empty if documents don't need to
+ # be printed in reverse order.
+-REV_COMMAND=$(BINDIR)/psrev |
++#REV_COMMAND=$(BINDIR)/psrev |
++REV_COMMAND=
+ # Where to install the filter for text files.
+ TEXT_FILTER=$(LIBDIR)/psif-text
+ # Where to install the filter for PostScript files.
+ PS_FILTER=$(LIBDIR)/psif-ps
+ # Where to install PostScript banner printing code
+-BANNER=$(LIBDIR)/banner.ps
++BANNER=$(PREFIX)/share/misc/banner.ps
+ # Filter to convert text to PostScript. You can use your own instead.
+ # It must be able to read from standard input.
+ TEXT_TO_PS=$(BINDIR)/textps
diff --git a/print/lprps-letter/files/patch-ab b/print/lprps-letter/files/patch-ab
new file mode 100644
index 0000000..790965d
--- /dev/null
+++ b/print/lprps-letter/files/patch-ab
@@ -0,0 +1,11 @@
+--- lprps.c.orig Wed Sep 11 03:12:26 1996
++++ lprps.c Wed Sep 11 03:14:28 1996
+@@ -346,7 +346,7 @@
+ char *strsignal(n)
+ int n;
+ {
+- extern char *sys_siglist[];
++ /* extern char *sys_siglist[]; */
+ static char buf[32];
+ if (n >= 0 && n < NSIG)
+ return sys_siglist[n];
diff --git a/print/lprps-letter/files/patch-ac b/print/lprps-letter/files/patch-ac
new file mode 100644
index 0000000..095b9d6
--- /dev/null
+++ b/print/lprps-letter/files/patch-ac
@@ -0,0 +1,11 @@
+--- psof.c.orig Wed Sep 11 03:12:36 1996
++++ psof.c Wed Sep 11 03:15:16 1996
+@@ -216,7 +216,7 @@
+ if ((status & 0xff) != 0) {
+ int sig = status & 0x7f;
+ if (sig < NSIG) {
+- extern char *sys_siglist[];
++ /* extern char *sys_siglist[]; */
+ syslog(LOG_ERR, "%s: %s%s", LPRPS, sys_siglist[sig],
+ (status & 0x80) ? " (core dumped)" : "");
+ }
diff --git a/print/lprps-letter/files/patch-ad b/print/lprps-letter/files/patch-ad
new file mode 100644
index 0000000..60604d8
--- /dev/null
+++ b/print/lprps-letter/files/patch-ad
@@ -0,0 +1,13 @@
+--- psrev.c.orig Wed Sep 11 03:12:11 1996
++++ psrev.c Wed Sep 11 03:13:12 1996
+@@ -24,8 +24,8 @@
+ void sys_error(message, arg)
+ char *message, *arg;
+ {
+- extern char *sys_errlist[];
+- extern int sys_nerr;
++ /* extern char *sys_errlist[]; */
++ /* extern int sys_nerr; */
+ int en;
+
+ en = errno;
diff --git a/print/lprps-letter/pkg-comment b/print/lprps-letter/pkg-comment
new file mode 100644
index 0000000..a459fc5
--- /dev/null
+++ b/print/lprps-letter/pkg-comment
@@ -0,0 +1 @@
+PostScript printer filter package supporting a bidirectional serial channel
diff --git a/print/lprps-letter/pkg-descr b/print/lprps-letter/pkg-descr
new file mode 100644
index 0000000..d2524fc
--- /dev/null
+++ b/print/lprps-letter/pkg-descr
@@ -0,0 +1,23 @@
+lprps is a collection of programs for using lpr with a PostScript
+printer connected by a bidirectional serial channel.
+
+It contains the following programs:
+
+ lprps handles communication with the printer
+ psif allows separate filters to be used for text and PostScript
+ textps simple text to PostScript filter
+ psrev PostScript page reversal filter
+ psof banner filter
+
+Some features are:
+
+ * Deals intelligently with output generated by the printer: printer
+ errors (such as ``out of paper'') are logged using syslog.
+ * Updates status file (displayed by lpq) with printer's current status.
+ * Performs printer accounting.
+ * Ensures that the printer is ready to receive the job.
+ * Determines whether file is PostScript or text and prints it appropriately
+ * Can automatically perform page reversal for the benefit of printers
+ that stack face-up.
+
+ -- David O'Brien (obrien@cs.ucdavis.edu)
diff --git a/print/lprps-letter/pkg-plist b/print/lprps-letter/pkg-plist
new file mode 100644
index 0000000..90a9f55
--- /dev/null
+++ b/print/lprps-letter/pkg-plist
@@ -0,0 +1,14 @@
+libexec/psif
+libexec/lprps
+libexec/psof
+libexec/psif-text
+libexec/psif-ps
+share/lprps/banner.ps
+bin/textps
+bin/psrev
+man/man1/textps.1.gz
+man/man1/psrev.1.gz
+man/man8/lprps.8.gz
+man/man8/psif.8.gz
+man/man8/psof.8.gz
+share/doc/lprps/INSTALL
OpenPOWER on IntegriCloud