Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 1999 17:22:56 -0700 (PDT)
From:      papowell@astart.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13402: LPRng-3.6.7
Message-ID:  <199908270022.RAA95094@h10.private>

next in thread | raw e-mail | index | archive | help

>Number:         13402
>Category:       ports
>Synopsis:       LPRng-3.6.6 port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 26 17:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Powell
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Astart Technologies 
>Environment:

    FreeBSD 3.2-Release + 4-Current

>Description:

    Port for LPRng-3.6.7 

>How-To-Repeat:

    
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	LPRng
#	LPRng/files
#	LPRng/files/lprng.sh
#	LPRng/files/md5
#	LPRng/patches
#	LPRng/patches/patch-ah
#	LPRng/patches/patch-ag
#	LPRng/pkg
#	LPRng/pkg/COMMENT
#	LPRng/pkg/DESCR
#	LPRng/pkg/MESSAGE
#	LPRng/pkg/PLIST
#	LPRng/pkg/PLIST.bak
#	LPRng/Makefile
#	LPRng/README.html
#	LPRng/Makefile.bak
#
echo c - LPRng
mkdir -p LPRng > /dev/null 2>&1
echo c - LPRng/files
mkdir -p LPRng/files > /dev/null 2>&1
echo x - LPRng/files/lprng.sh
sed 's/^X//' >LPRng/files/lprng.sh << 'END-of-LPRng/files/lprng.sh'
X#!/bin/sh
X
X# Find out if lpd is already running. I guess you could also detect
X# the existence of /var/run/printer.
X
Xkillall -s lpd > /dev/null 2>&1
X
Xif [ $? != 0 ]; then
X	echo -n ' printer';             @@PREFIX@@/sbin/lpd
Xfi
END-of-LPRng/files/lprng.sh
echo x - LPRng/files/md5
sed 's/^X//' >LPRng/files/md5 << 'END-of-LPRng/files/md5'
XMD5 (LPRng-3.6.7.tgz) = cc2b1d5c2cd1c4020682e4c3921f6a60
END-of-LPRng/files/md5
echo c - LPRng/patches
mkdir -p LPRng/patches > /dev/null 2>&1
echo x - LPRng/patches/patch-ah
sed 's/^X//' >LPRng/patches/patch-ah << 'END-of-LPRng/patches/patch-ah'
X*** src/common/vars.c.orig	Thu Jul 22 09:47:00 1999
X--- src/common/vars.c	Thu Jul 22 10:25:58 1999
X***************
X*** 175,185 ****
X     /* default filter */
X  { "filter", STRING_K, &Filter_DYN,0,0},
X     /* filter LD_LIBRARY_PATH value */
X! { "filter_ld_path", STRING_K, &Filter_ld_path_DYN,0,0,"=/lib:/usr/lib:/usr/5lib:/usr/ucblib"},
X     /* filter options */
X  { "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"},
X     /* filter PATH environment variable */
X! { "filter_path", STRING_K, &Filter_path_DYN,0,0,"=/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc"},
X     /* interval at which to check OF filter for error status */
X  { "filter_poll_interval", INTEGER_K, &Filter_poll_interval_DYN,0,0,"=30"},
X     /*  print a form feed when device is opened */
X--- 175,185 ----
X     /* default filter */
X  { "filter", STRING_K, &Filter_DYN,0,0},
X     /* filter LD_LIBRARY_PATH value */
X! { "filter_ld_path", STRING_K, &Filter_ld_path_DYN,0,0,"=/lib:/usr/lib:/usr/local/lib"},
X     /* filter options */
X  { "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"},
X     /* filter PATH environment variable */
X! { "filter_path", STRING_K, &Filter_path_DYN,0,0,"=/bin:/usr/bin:/usr/libexec:/usr/local/libexec:/usr/sbin:/var/spool/bin"},
X     /* interval at which to check OF filter for error status */
X  { "filter_poll_interval", INTEGER_K, &Filter_poll_interval_DYN,0,0,"=30"},
X     /*  print a form feed when device is opened */
X***************
X*** 209,215 ****
X     /*  Running IPV6 */
X  { "ipv6",  FLAG_K,  &IPV6Protocol_DYN,0,0},
X  	/* keytab file location for kerberos, used by server */
X! { "kerberos_keytab", STRING_K, &Kerberos_keytab_DYN,0,0,"=/etc/lpd.keytab"},
X  	/* key lifetime for kerberos, used by server */
X  { "kerberos_life", STRING_K, &Kerberos_life_DYN,0,0},
X  	/* key renewal time for kerberos, used by server */
X--- 209,215 ----
X     /*  Running IPV6 */
X  { "ipv6",  FLAG_K,  &IPV6Protocol_DYN,0,0},
X  	/* keytab file location for kerberos, used by server */
X! { "kerberos_keytab", STRING_K, &Kerberos_keytab_DYN,0,0,"=/usr/local/etc/lpd.keytab:/etc/lpd.keytab"},
X  	/* key lifetime for kerberos, used by server */
X  { "kerberos_life", STRING_K, &Kerberos_life_DYN,0,0},
X  	/* key renewal time for kerberos, used by server */
END-of-LPRng/patches/patch-ah
echo x - LPRng/patches/patch-ag
sed 's/^X//' >LPRng/patches/patch-ag << 'END-of-LPRng/patches/patch-ag'
X*** man/Makefile.bsd.in.orig	Thu Jul 22 09:46:16 1999
X--- man/Makefile.bsd.in	Thu Jul 22 10:10:23 1999
X***************
X*** 18,24 ****
X  MANINSTCMD =	@INSTALL_MAN@
X  
X  # change MANEXT to .gz or .Z if you use compressed manpages.
X! MANEXT =	
X  
X  ## fix up prefix to be a make variable
X  prefix = @prefix@
X--- 18,24 ----
X  MANINSTCMD =	@INSTALL_MAN@
X  
X  # change MANEXT to .gz or .Z if you use compressed manpages.
X! MANEXT =	.gz	
X  
X  ## fix up prefix to be a make variable
X  prefix = @prefix@
X***************
X*** 51,71 ****
X  
X  # Standard man install target.
X  #
X! install:
X! 	-${SRC}/mkinstalldirs $(MAN)/man1 $(MAN)/man5 $(MAN)/man8
X! 	for i in ${SRC}/*.1; do $(MANINSTCMD) $$i $(MAN)/man1/`basename $$i`$(MANEXT); done
X! 	for i in ${SRC}/*.5; do $(MANINSTCMD) $$i $(MAN)/man5/`basename $$i`$(MANEXT); done
X! 	for i in ${SRC}/*.8; do $(MANINSTCMD) $$i $(MAN)/man8/`basename $$i`$(MANEXT); done
X  
X  # Install man pages in compressed form.
X  #
X! install.zman:
X! 	for i in ${SRC}/*.1; do compress < $$i >/tmp/_; \
X! 		 $(MANINSTCMD) /tmp/_ $(MAN)/man1.Z/$$i$(MANEXT); rm -f /tmp/_; done
X! 	for i in ${SRC}/*.5; do compress < $$i >/tmp/_; \
X! 		 $(MANINSTCMD) /tmp/_ $(MAN)/man5.Z/$$i$(MANEXT); rm -f /tmp/_; done
X! 	for i in ${SRC}/*.8; do compress < $$i >/tmp/_; \
X! 		 $(MANINSTCMD) /tmp/_ $(MAN)/man8.Z/$$i$(MANEXT); rm -f /tmp/_; done
X  
X  uninstall:
X  	for i in *.1; do rm -f $(MAN)/man1/$$i$(MANEXT); done
X--- 51,71 ----
X  
X  # Standard man install target.
X  #
X! #install:
X! #	-${SRC}/mkinstalldirs $(MAN)/man1 $(MAN)/man5 $(MAN)/man8
X! #	for i in ${SRC}/*.1; do $(MANINSTCMD) $$i $(MAN)/man1/`basename $$i`$(MANEXT); done
X! #	for i in ${SRC}/*.5; do $(MANINSTCMD) $$i $(MAN)/man5/`basename $$i`$(MANEXT); done
X! #	for i in ${SRC}/*.8; do $(MANINSTCMD) $$i $(MAN)/man8/`basename $$i`$(MANEXT); done
X  
X  # Install man pages in compressed form.
X  #
X! install:
X! 	for i in ${SRC}/*.1; do gzip < $$i >/tmp/_; \
X! 		$(MANINSTCMD) /tmp/_ $(MAN)/man1/$$i$(MANEXT); rm -f /tmp/_; done
X! 	for i in ${SRC}/*.5; do gzip < $$i >/tmp/_; \
X! 		$(MANINSTCMD) /tmp/_ $(MAN)/man5/$$i$(MANEXT); rm -f /tmp/_; done
X! 	for i in ${SRC}/*.8; do gzip < $$i >/tmp/_; \
X! 		$(MANINSTCMD) /tmp/_ $(MAN)/man8/$$i$(MANEXT); rm -f /tmp/_; done
X  
X  uninstall:
X  	for i in *.1; do rm -f $(MAN)/man1/$$i$(MANEXT); done
END-of-LPRng/patches/patch-ag
echo c - LPRng/pkg
mkdir -p LPRng/pkg > /dev/null 2>&1
echo x - LPRng/pkg/COMMENT
sed 's/^X//' >LPRng/pkg/COMMENT << 'END-of-LPRng/pkg/COMMENT'
XAn Enhanced Printer Spooler
END-of-LPRng/pkg/COMMENT
echo x - LPRng/pkg/DESCR
sed 's/^X//' >LPRng/pkg/DESCR << 'END-of-LPRng/pkg/DESCR'
XThe LPRng software is an enhanced, extended, and portable implementation
Xof the Berkeley LPR print spooler functionality.  While providing the
Xsame interface and meeting RFC1179 requirements, the implementation is
Xcompletely new and provides support for the following features:
Xlightweight (no databases needed) lpr, lpc, and lprm programs; dynamic
Xredirection of print queues; automatic job holding; highly verbose
Xdiagnostics; multiple printers serving a single queue; client programs
Xdo not need to run SUID root; greatly enhanced security checks; and a
Xgreatly improved permission and authorization mechanism.
END-of-LPRng/pkg/DESCR
echo x - LPRng/pkg/MESSAGE
sed 's/^X//' >LPRng/pkg/MESSAGE << 'END-of-LPRng/pkg/MESSAGE'
X
XTo activate the new printing system do the following:
X
X- save your old printcap (`cp /etc/printcap /etc/printcap.save')
X- set `lpd_enable=NO' in /etc/rc.conf
X- run checkpc -f to make sure that necessary files have been created
X- reboot or kill the old lpd (`killall lpd') and
X  start the new one (`/usr/local/sbin/lpd')
X- remember to adjust your aliases or your PATH to use the new programs
X- lprng is started by a script in /usr/local/etc/rc.d
X
XNote that LPRng uses /etc/printcap, /etc/lpd.conf, and /etc/lpd.perms,
Xand a startup script in @@PREFIX@@/etc/rc.d
X
XFor further information, have a look at:
X  @@PREFIX@@/share/doc/LPRng
Xalso:
X  http://www.astart.com/lprng.html
X
END-of-LPRng/pkg/MESSAGE
echo x - LPRng/pkg/PLIST
sed 's/^X//' >LPRng/pkg/PLIST << 'END-of-LPRng/pkg/PLIST'
Xbin/lpq
Xbin/lprm
Xbin/lpr
Xsbin/lpc
Xsbin/lpd
Xlibexec/filters/lpf
Xlibexec/filters/lpbanner
Xsbin/checkpc
Xsbin/lpraccnt
Xshare/doc/LPRng/LPRng-HOWTO-1.html
Xshare/doc/LPRng/star1.gif
Xshare/doc/LPRng/bg.gif
Xshare/doc/LPRng/LPRng.html
Xshare/doc/LPRng/LPRng-HOWTO.html
Xshare/doc/LPRng/LPRng-HOWTO-9.html
Xshare/doc/LPRng/LPRng-HOWTO-8.html
Xshare/doc/LPRng/LPRng-HOWTO-7.html
Xshare/doc/LPRng/LPRng-HOWTO-6.html
Xshare/doc/LPRng/LPRng-HOWTO-5.html
Xshare/doc/LPRng/LPRng-HOWTO-4.html
Xshare/doc/LPRng/LPRng-HOWTO-3.html
Xshare/doc/LPRng/LPRng-HOWTO-21.html
Xshare/doc/LPRng/LPRng-HOWTO-20.html
Xshare/doc/LPRng/LPRng-HOWTO-2.html
Xshare/doc/LPRng/LPRng-HOWTO-19.html
Xshare/doc/LPRng/LPRng-HOWTO-18.html
Xshare/doc/LPRng/LPRng-HOWTO-17.html
Xshare/doc/LPRng/LPRng-HOWTO-16.html
Xshare/doc/LPRng/LPRng-HOWTO-15.html
Xshare/doc/LPRng/LPRng-HOWTO-14.html
Xshare/doc/LPRng/LPRng-HOWTO-13.html
Xshare/doc/LPRng/LPRng-HOWTO-12.html
Xshare/doc/LPRng/LPRng-HOWTO-11.html
Xshare/doc/LPRng/LPRng-HOWTO-10.html
Xshare/doc/LPRng/LPRng-HOWTO.ps
X@dirrm share/doc/LPRng
END-of-LPRng/pkg/PLIST
echo x - LPRng/pkg/PLIST.bak
sed 's/^X//' >LPRng/pkg/PLIST.bak << 'END-of-LPRng/pkg/PLIST.bak'
Xbin/lpq
Xbin/lprm
Xbin/lpr
Xsbin/lpc
Xsbin/lpd
Xlibexec/filters/lpf
Xlibexec/filters/lpbanner
Xsbin/checkpc
Xsbin/lpraccnt
Xshare/doc/LPRng/LPRng-HOWTO-1.html
Xshare/doc/LPRng/star1.gif
Xshare/doc/LPRng/bg.gif
Xshare/doc/LPRng/LPRng.html
Xshare/doc/LPRng/LPRng-HOWTO.html
Xshare/doc/LPRng/LPRng-HOWTO-9.html
Xshare/doc/LPRng/LPRng-HOWTO-8.html
Xshare/doc/LPRng/LPRng-HOWTO-7.html
Xshare/doc/LPRng/LPRng-HOWTO-6.html
Xshare/doc/LPRng/LPRng-HOWTO-5.html
Xshare/doc/LPRng/LPRng-HOWTO-4.html
Xshare/doc/LPRng/LPRng-HOWTO-3.html
Xshare/doc/LPRng/LPRng-HOWTO-21.html
Xshare/doc/LPRng/LPRng-HOWTO-20.html
Xshare/doc/LPRng/LPRng-HOWTO-2.html
Xshare/doc/LPRng/LPRng-HOWTO-19.html
Xshare/doc/LPRng/LPRng-HOWTO-18.html
Xshare/doc/LPRng/LPRng-HOWTO-17.html
Xshare/doc/LPRng/LPRng-HOWTO-16.html
Xshare/doc/LPRng/LPRng-HOWTO-15.html
Xshare/doc/LPRng/LPRng-HOWTO-14.html
Xshare/doc/LPRng/LPRng-HOWTO-13.html
Xshare/doc/LPRng/LPRng-HOWTO-12.html
Xshare/doc/LPRng/LPRng-HOWTO-11.html
Xshare/doc/LPRng/LPRng-HOWTO-10.html
Xshare/doc/LPRng/LPRng-HOWTO.ps
X@dirrm share/doc/LPRng
END-of-LPRng/pkg/PLIST.bak
echo x - LPRng/Makefile
sed 's/^X//' >LPRng/Makefile << 'END-of-LPRng/Makefile'
X# New ports collection makefile for:	LPRng
X# Version required:	3.6.7
X# Date created:		2 Apr 1997
X# Whom:			desmo@bandwidth.org
X#
X# $Id: Makefile,v 1.5 1998/10/21 00:57:27 steve Exp $
X#
X
XDISTNAME=	LPRng-3.6.7
XCATEGORIES=	sysutils print
XMASTER_SITES=	ftp://ftp.astart.com/pub/LPRng/LPRng/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	desmo@bandwidth.org
X
XMAKEFILE=	Makefile.bsd
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS= \
X --with-lpddir=${PREFIX}/sbin \
X --with-admindir=${PREFIX}/sbin \
X --with-filterdir=${PREFIX}/libexec/filters \
X --with-lpd_conf_path=/etc/lpd.conf \
X --with-lpd_perms_path=/etc/lpd.perms \
X --with-printcap_path=/etc/printcap
X
XMAN1=		cancel.1 lp.1 lpbanner.1 lpc.1 lpf.1 \
X		lpq.1 lpr.1 lpraccnt.1 lprm.1 lpstat.1 monitor.1
XMAN5=		lpd.conf.5 lpd.perms.5 printcap.5
XMAN8=		checkpc.8 lpd.8
XMANCOMPRESSED=	yes
X
Xpost-install:
X	${CAT} ${FILESDIR}/lprng.sh | \
X		${SED} -e "s|@@PREFIX@@|${PREFIX}|g" > ${PREFIX}/etc/rc.d/lprng.sh
X	chmod +x ${PREFIX}/etc/rc.d/lprng.sh
X	${INSTALL} -d -g bin -o bin -m 0555 ${PREFIX}/share/doc/LPRng
X	(cd ${WRKDIR}/LPRng*/HOWTO; cp *.html *.gif *.ps ${PREFIX}/share/doc/LPRng;)
X	@${CAT} ${PKGDIR}/MESSAGE | \
X		${SED} -e "s|@@PREFIX@@|${PREFIX}|g"
X
X.include <bsd.port.mk>
END-of-LPRng/Makefile
echo x - LPRng/README.html
sed 's/^X//' >LPRng/README.html << 'END-of-LPRng/README.html'
X<html>
X<title> The FreeBSD Ports Collection (sysutils/LPRng)</title>
X<head><h1> The FreeBSD Ports Collection ("sysutils/LPRng")</h1> </head> <hr>
X<body>
X
X<p>You are now in the directory for the port "sysutils/LPRng" (package name "LPRng-3.6.5").
X
X<p>This is the one-line description for this port:
X
X<p><hr><p>
XAn Enhanced Printer Spooler
X<p><hr>
X
X<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a
Xlonger description.
X
X<p>Go to the <a href="../../README.html">top of the ports tree</a> for
Xa summary on how to use the ports collection.
X
X<p>
X
X<p>
X
X
X<p><hr><p>
X<a href="../README.html"> Go up one level</a>
X|
X<a href="../../README.html"> Go to top of ports tree</a>
X</body>
X</html>
END-of-LPRng/README.html
echo x - LPRng/Makefile.bak
sed 's/^X//' >LPRng/Makefile.bak << 'END-of-LPRng/Makefile.bak'
X# New ports collection makefile for:	LPRng
X# Version required:	3.6.7
X# Date created:		2 Apr 1997
X# Whom:			desmo@bandwidth.org
X#
X# $Id: Makefile,v 1.5 1998/10/21 00:57:27 steve Exp $
X#
X
XDISTNAME=	LPRng-3.6.7
XCATEGORIES=	sysutils print
XMASTER_SITES=	ftp://ftp.astart.com/pub/LPRng/LPRng/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	desmo@bandwidth.org
X
XMAKEFILE=	Makefile.bsd
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS= \
X --with-lpddir=${PREFIX}/sbin \
X --with-admindir=${PREFIX}/sbin \
X --with-filterdir=${PREFIX}/libexec/filters \
X --with-lpd_conf_path=/etc/lpd.conf \
X --with-lpd_perms_path=/etc/lpd.perms \
X --with-printcap_path=/etc/printcap
X
XMAN1=		cancel.1 lp.1 lpbanner.1 lpc.1 lpf.1 \
X		lpq.1 lpr.1 lpraccnt.1 lprm.1 lpstat.1 monitor.1
XMAN5=		lpd.conf.5 lpd.perms.5 printcap.5
XMAN8=		checkpc.8 lpd.8
XMANCOMPRESSED=	yes
X
Xpost-install:
X	${CAT} ${FILESDIR}/lprng.sh | \
X		${SED} -e "s|@@PREFIX@@|${PREFIX}|g" > ${PREFIX}/etc/rc.d/lprng.sh
X	chmod +x ${PREFIX}/etc/rc.d/lprng.sh
X	${INSTALL} -d -g bin -o bin -m 0555 ${PREFIX}/share/doc/LPRng
X	(cd ${WRKDIR}/LPRng*/HOWTO; cp *.html *.gif ${PREFIX}/share/doc/LPRng;)
X	@${CAT} ${PKGDIR}/MESSAGE | \
X		${SED} -e "s|@@PREFIX@@|${PREFIX}|g"
X
X.include <bsd.port.mk>
END-of-LPRng/Makefile.bak
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908270022.RAA95094>