diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/LPRng/Makefile | 47 | ||||
-rw-r--r-- | print/LPRng/files/lprng.sh | 10 | ||||
-rw-r--r-- | print/LPRng/files/md5 | 2 | ||||
-rw-r--r-- | print/LPRng/patches/patch-ag | 64 | ||||
-rw-r--r-- | print/LPRng/patches/patch-ah | 44 | ||||
-rw-r--r-- | print/LPRng/pkg/COMMENT | 1 | ||||
-rw-r--r-- | print/LPRng/pkg/DESCR | 9 | ||||
-rw-r--r-- | print/LPRng/pkg/MESSAGE | 17 | ||||
-rw-r--r-- | print/LPRng/pkg/PLIST | 81 |
9 files changed, 275 insertions, 0 deletions
diff --git a/print/LPRng/Makefile b/print/LPRng/Makefile new file mode 100644 index 00000000000..5c0c9e8ec7d --- /dev/null +++ b/print/LPRng/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: LPRng +# Version required: 3.6.6 +# Date created: 2 Apr 1997 +# Whom: desmo@bandwidth.org +# +# $Id: Makefile,v 1.1.1.1 1999/09/11 21:58:30 jlam Exp $ +# + +DISTNAME= LPRng-3.6.6 +CATEGORIES= sysutils print +MASTER_SITES= ftp://ftp.astart.com/pub/LPRng/LPRng/ +EXTRACT_SUFX= .tgz +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} LPRng_DOC-3.6.6.tgz +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= desmo@bandwidth.org + +MAKEFILE= Makefile.bsd +HAS_CONFIGURE= yes +CONFIGURE_ARGS= \ + --with-lpddir=${PREFIX}/sbin \ + --with-admindir=${PREFIX}/sbin \ + --with-filterdir=${PREFIX}/libexec/filters \ + --with-lpd_conf_path=/etc/lpd.conf \ + --with-lpd_perms_path=/etc/lpd.perms \ + --with-printcap_path=/etc/printcap + +MAN1= cancel.1 lp.1 lpbanner.1 lpc.1 lpf.1 \ + lpq.1 lpr.1 lpraccnt.1 lprm.1 lpstat.1 monitor.1 +MAN5= lpd.conf.5 lpd.perms.5 printcap.5 +MAN8= checkpc.8 lpd.8 +MANCOMPRESSED= yes + +post-install: + ${CAT} ${FILESDIR}/lprng.sh | \ + ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" > ${PREFIX}/etc/rc.d/lprng.sh + chmod +x ${PREFIX}/etc/rc.d/lprng.sh + ${INSTALL} -d -g bin -o bin -m 0555 ${PREFIX}/share/doc/LPRng + @for file in ${EXTRA_FILES}; do \ + ${CP} ${DISTDIR}/$$file ${PREFIX}/share/doc/LPRng; \ + cd ${PREFIX}/share/doc/LPRng; \ + tar xvfz $$file; \ + ${RM} ${PREFIX}/share/doc/LPRng/$$file; \ + done + @${CAT} ${PKGDIR}/MESSAGE + +.include <bsd.port.mk> diff --git a/print/LPRng/files/lprng.sh b/print/LPRng/files/lprng.sh new file mode 100644 index 00000000000..53946039ebf --- /dev/null +++ b/print/LPRng/files/lprng.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Find out if lpd is already running. I guess you could also detect +# the existence of /var/run/printer. + +killall -s lpd > /dev/null 2>&1 + +if [ $? != 0 ]; then + echo -n ' printer'; @@PREFIX@@/sbin/lpd +fi diff --git a/print/LPRng/files/md5 b/print/LPRng/files/md5 new file mode 100644 index 00000000000..e806bb159e2 --- /dev/null +++ b/print/LPRng/files/md5 @@ -0,0 +1,2 @@ +MD5 (LPRng-3.6.6.tgz) = 90d0ed3be7c5cfd559185c55d5df3d26 +MD5 (LPRng_DOC-3.6.6.tgz) = 4efaf91200dbf7fd117885d6ad82d8ad diff --git a/print/LPRng/patches/patch-ag b/print/LPRng/patches/patch-ag new file mode 100644 index 00000000000..81c750446e7 --- /dev/null +++ b/print/LPRng/patches/patch-ag @@ -0,0 +1,64 @@ +*** man/Makefile.bsd.in.orig Thu Jul 22 09:46:16 1999 +--- man/Makefile.bsd.in Thu Jul 22 10:10:23 1999 +*************** +*** 18,24 **** + MANINSTCMD = @INSTALL_MAN@ + + # change MANEXT to .gz or .Z if you use compressed manpages. +! MANEXT = + + ## fix up prefix to be a make variable + prefix = @prefix@ +--- 18,24 ---- + MANINSTCMD = @INSTALL_MAN@ + + # change MANEXT to .gz or .Z if you use compressed manpages. +! MANEXT = .gz + + ## fix up prefix to be a make variable + prefix = @prefix@ +*************** +*** 51,71 **** + + # Standard man install target. + # +! install: +! -${SRC}/mkinstalldirs $(MAN)/man1 $(MAN)/man5 $(MAN)/man8 +! for i in ${SRC}/*.1; do $(MANINSTCMD) $$i $(MAN)/man1/`basename $$i`$(MANEXT); done +! for i in ${SRC}/*.5; do $(MANINSTCMD) $$i $(MAN)/man5/`basename $$i`$(MANEXT); done +! for i in ${SRC}/*.8; do $(MANINSTCMD) $$i $(MAN)/man8/`basename $$i`$(MANEXT); done + + # Install man pages in compressed form. + # +! install.zman: +! for i in ${SRC}/*.1; do compress < $$i >/tmp/_; \ +! $(MANINSTCMD) /tmp/_ $(MAN)/man1.Z/$$i$(MANEXT); rm -f /tmp/_; done +! for i in ${SRC}/*.5; do compress < $$i >/tmp/_; \ +! $(MANINSTCMD) /tmp/_ $(MAN)/man5.Z/$$i$(MANEXT); rm -f /tmp/_; done +! for i in ${SRC}/*.8; do compress < $$i >/tmp/_; \ +! $(MANINSTCMD) /tmp/_ $(MAN)/man8.Z/$$i$(MANEXT); rm -f /tmp/_; done + + uninstall: + for i in *.1; do rm -f $(MAN)/man1/$$i$(MANEXT); done +--- 51,71 ---- + + # Standard man install target. + # +! #install: +! # -${SRC}/mkinstalldirs $(MAN)/man1 $(MAN)/man5 $(MAN)/man8 +! # for i in ${SRC}/*.1; do $(MANINSTCMD) $$i $(MAN)/man1/`basename $$i`$(MANEXT); done +! # for i in ${SRC}/*.5; do $(MANINSTCMD) $$i $(MAN)/man5/`basename $$i`$(MANEXT); done +! # for i in ${SRC}/*.8; do $(MANINSTCMD) $$i $(MAN)/man8/`basename $$i`$(MANEXT); done + + # Install man pages in compressed form. + # +! install: +! for i in ${SRC}/*.1; do gzip < $$i >/tmp/_; \ +! $(MANINSTCMD) /tmp/_ $(MAN)/man1/$$i$(MANEXT); rm -f /tmp/_; done +! for i in ${SRC}/*.5; do gzip < $$i >/tmp/_; \ +! $(MANINSTCMD) /tmp/_ $(MAN)/man5/$$i$(MANEXT); rm -f /tmp/_; done +! for i in ${SRC}/*.8; do gzip < $$i >/tmp/_; \ +! $(MANINSTCMD) /tmp/_ $(MAN)/man8/$$i$(MANEXT); rm -f /tmp/_; done + + uninstall: + for i in *.1; do rm -f $(MAN)/man1/$$i$(MANEXT); done diff --git a/print/LPRng/patches/patch-ah b/print/LPRng/patches/patch-ah new file mode 100644 index 00000000000..9e69cdc1d76 --- /dev/null +++ b/print/LPRng/patches/patch-ah @@ -0,0 +1,44 @@ +*** src/common/vars.c.orig Thu Jul 22 09:47:00 1999 +--- src/common/vars.c Thu Jul 22 10:25:58 1999 +*************** +*** 175,185 **** + /* default filter */ + { "filter", STRING_K, &Filter_DYN,0,0}, + /* filter LD_LIBRARY_PATH value */ +! { "filter_ld_path", STRING_K, &Filter_ld_path_DYN,0,0,"=/lib:/usr/lib:/usr/5lib:/usr/ucblib"}, + /* filter options */ + { "filter_options", STRING_K, &Filter_options_DYN,0,0,"=$C $A $F $H $J $K $L $P $Q $R $Z $a $c $d $e $f $h $i $j $k $l $n $p $r $s $w $x $y $-a"}, + /* filter PATH environment variable */ +! { "filter_path", STRING_K, &Filter_path_DYN,0,0,"=/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc"}, + /* interval at which to check OF filter for error status */ + { "filter_poll_interval", INTEGER_K, &Filter_poll_interval_DYN,0,0,"=30"}, + /* print a form feed when device is opened */ +--- 175,185 ---- + /* default filter */ + { "filter", STRING_K, &Filter_DYN,0,0}, + /* filter LD_LIBRARY_PATH value */ +! { "filter_ld_path", STRING_K, &Filter_ld_path_DYN,0,0,"=/lib:/usr/lib:/usr/local/lib"}, + /* filter options */ + { "filter_options", STRING_K, &Filter_options_DYN,0,0,"=$C $A $F $H $J $K $L $P $Q $R $Z $a $c $d $e $f $h $i $j $k $l $n $p $r $s $w $x $y $-a"}, + /* filter PATH environment variable */ +! { "filter_path", STRING_K, &Filter_path_DYN,0,0,"=/bin:/usr/bin:/usr/libexec:/usr/local/libexec:/usr/sbin:/var/spool/bin"}, + /* interval at which to check OF filter for error status */ + { "filter_poll_interval", INTEGER_K, &Filter_poll_interval_DYN,0,0,"=30"}, + /* print a form feed when device is opened */ +*************** +*** 209,215 **** + /* Running IPV6 */ + { "ipv6", FLAG_K, &IPV6Protocol_DYN,0,0}, + /* keytab file location for kerberos, used by server */ +! { "kerberos_keytab", STRING_K, &Kerberos_keytab_DYN,0,0,"=/etc/lpd.keytab"}, + /* key lifetime for kerberos, used by server */ + { "kerberos_life", STRING_K, &Kerberos_life_DYN,0,0}, + /* key renewal time for kerberos, used by server */ +--- 209,215 ---- + /* Running IPV6 */ + { "ipv6", FLAG_K, &IPV6Protocol_DYN,0,0}, + /* keytab file location for kerberos, used by server */ +! { "kerberos_keytab", STRING_K, &Kerberos_keytab_DYN,0,0,"=/usr/local/etc/lpd.keytab:/etc/lpd.keytab"}, + /* key lifetime for kerberos, used by server */ + { "kerberos_life", STRING_K, &Kerberos_life_DYN,0,0}, + /* key renewal time for kerberos, used by server */ diff --git a/print/LPRng/pkg/COMMENT b/print/LPRng/pkg/COMMENT new file mode 100644 index 00000000000..c00f672f24f --- /dev/null +++ b/print/LPRng/pkg/COMMENT @@ -0,0 +1 @@ +An Enhanced Printer Spooler diff --git a/print/LPRng/pkg/DESCR b/print/LPRng/pkg/DESCR new file mode 100644 index 00000000000..9f47015462b --- /dev/null +++ b/print/LPRng/pkg/DESCR @@ -0,0 +1,9 @@ +The LPRng software is an enhanced, extended, and portable implementation +of the Berkeley LPR print spooler functionality. While providing the +same interface and meeting RFC1179 requirements, the implementation is +completely new and provides support for the following features: +lightweight (no databases needed) lpr, lpc, and lprm programs; dynamic +redirection of print queues; automatic job holding; highly verbose +diagnostics; multiple printers serving a single queue; client programs +do not need to run SUID root; greatly enhanced security checks; and a +greatly improved permission and authorization mechanism. diff --git a/print/LPRng/pkg/MESSAGE b/print/LPRng/pkg/MESSAGE new file mode 100644 index 00000000000..aafd2044d01 --- /dev/null +++ b/print/LPRng/pkg/MESSAGE @@ -0,0 +1,17 @@ + +To activate the new printing system do the following: + +- save your old printcap (`cp /etc/printcap /etc/printcap.save') +- set `lpd_enable=NO' in /etc/rc.conf +- run checkpc -f to make sure that necessary files have been created +- reboot or kill the old lpd (`killall lpd') and + start the new one (`/usr/local/sbin/lpd') +- remember to adjust your aliases or your PATH to use the new programs + +Note that LPRng uses /etc/printcap, /etc/lpd.conf, and /etc/lpd.perms + +For further information, have a look at: + /usr/local/share/doc/LPRng +also: + http://www.astart.com/lprng.html + diff --git a/print/LPRng/pkg/PLIST b/print/LPRng/pkg/PLIST new file mode 100644 index 00000000000..64f82642af8 --- /dev/null +++ b/print/LPRng/pkg/PLIST @@ -0,0 +1,81 @@ +bin/lpq +bin/lprm +bin/lpr +bin/lpc +sbin/lpd +sbin/lpf +sbin/lpbanner +bin/checkpc +bin/lpraccnt +sbin/readfilecount +sbin/removeoneline +sbin/authenticate_pgp +sbin/setupauth +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial.ps +share/doc/LPRng/LPRng_DOC-3.5.6/Makefile +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.02.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Makefile +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.01.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.05.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.06.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.03.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.07.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.04.nrf +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.txt +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial/Tutorial.ps +share/doc/LPRng/LPRng_DOC-3.5.6/README +share/doc/LPRng/LPRng_DOC-3.5.6/Macros/using.tmac.usenix +share/doc/LPRng/LPRng_DOC-3.5.6/Macros/tmac.usenix +share/doc/LPRng/LPRng_DOC-3.5.6/Macros/Makefile +share/doc/LPRng/LPRng_DOC-3.5.6/Intro.txt +share/doc/LPRng/LPRng_DOC-3.5.6/bg.gif +share/doc/LPRng/LPRng_DOC-3.5.6/Intro.ps +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO.ps +share/doc/LPRng/LPRng_DOC-3.5.6/Using_stty.txt +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f4 +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f5 +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f8 +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f8a +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f8b +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f8c +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f9 +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.nroff +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Makefile +share/doc/LPRng/LPRng_DOC-3.5.6/Intro/Intro.f2 +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-LISA95.ps +share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial.txt +share/doc/LPRng/LPRng_DOC-3.5.6/rfc1179.txt +share/doc/LPRng/LPRng_DOC-3.5.6/LISA97/slides/P01PrintingLISA97.ppt +share/doc/LPRng/LPRng_DOC-3.5.6/LISA97/slides/P01PrintingLISA97.ps.2up +share/doc/LPRng/LPRng_DOC-3.5.6/LISA97/README +share/doc/LPRng/LPRng_DOC-3.5.6/LISA97/COPYRIGHT +share/doc/LPRng/LPRng_DOC-3.5.6/README.solaris +share/doc/LPRng/LPRng_DOC-3.5.6/UPDATE +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-1.html +share/doc/LPRng/LPRng_DOC-3.5.6/star1.gif +share/doc/LPRng/LPRng_DOC-3.5.6/lprng.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-9.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-8.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-7.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-6.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-5.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-4.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-3.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-2.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-15.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-14.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-13.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-12.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-11.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO-10.html +share/doc/LPRng/LPRng_DOC-3.5.6/LPRng-HOWTO.dvi +etc/rc.d/lprng.sh +@dirrm share/doc/LPRng/LPRng_DOC-3.5.6/LISA97/slides +@dirrm share/doc/LPRng/LPRng_DOC-3.5.6/LISA97 +@dirrm share/doc/LPRng/LPRng_DOC-3.5.6/Macros +@dirrm share/doc/LPRng/LPRng_DOC-3.5.6/Intro +@dirrm share/doc/LPRng/LPRng_DOC-3.5.6/Tutorial +@dirrm share/doc/LPRng/LPRng_DOC-3.5.6 +@dirrm share/doc/LPRng |