Date: Sat, 29 Sep 2001 18:27:56 -0700 (PDT) From: papowell@lprng.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/30926: LPRngTool Port update Message-ID: <200109300127.f8U1RuR49886@h110.private>
next in thread | raw e-mail | index | archive | help
>Number: 30926 >Category: ports >Synopsis: LPRngTool port update >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 29 18:30:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Patrick Powell >Release: FreeBSD 4.3-RELEASE i386 >Organization: LPRng.com >Environment: System: FreeBSD h110.private 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >Description: LPRngTool port update >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: # # LPRngTool # LPRngTool/Makefile # LPRngTool/pkg-message # LPRngTool/pkg-install # LPRngTool/pkg-descr # LPRngTool/pkg-comment # LPRngTool/distinfo # LPRngTool/README.html # LPRngTool/pkg-plist # echo c - LPRngTool mkdir -p LPRngTool > /dev/null 2>&1 echo x - LPRngTool/Makefile sed 's/^X//' >LPRngTool/Makefile << 'END-of-LPRngTool/Makefile' X# New ports collection makefile for: LPRngTool X# Version required: 1.2.1 X# Date created: 30 Nov 2000 X# Whom: papowell@astart.com X# X# $FreeBSD: ports/sysutils/LPRng/Makefile,v 1.10 1999/09/27 01:50:00 steve Exp $ X# X# FreeBSD LPRngTool Distribution Port Generation X# Patrick Powell X# Tue Jun 6 18:06:07 PDT 2000 X# X# The scripts in this directory largely automate the process X# of building a LPRngTool port or package for FreeBSD. They X# a) ${MAKE} the PLIST and other files X# b) do a slew of regression tests, etc. X# c) make a port or package X# X# Added targets for package/port/testers: X# All REPEAT ALL of these targets have security loopholes and should NOT X# be used on a system where other users are active. You have been X# warned. X# X# plist: this little monster makes the PLIST. It is assumed X# that you will do this on a standalone system, so X# it is not paranoid about testing for files, etc. X# You are warned. X# checkit: you should use this target to (literally) checkit X# to ${MAKE} sure the package installs X# cleanit: you should use this target to clean things up. X# This is the equivalent of 'distclean' X# packageit: ${MAKE} a package, install it, clean it, abuse it, X# and otherwise torture test it. Used for checking X# to ${MAKE} sure scripts work X# addit: use pkg_add X# removeit: use pkg_delete X# portit: ${MAKE} a subdirecotory, LPRng, that has all of the files X# that you should send off to be a new port. Do a X# diff of them and put the diff in the LPRng.diffs file. X# Notes and warnings: X# $PREFIX does not have quite the same effect as it normally would, X# as some of the LPRng files MUST be in fixed locations. X# X# $DESTDIR allows the 'install' step to put files in an 'unusual' X# place. Note that the same effect is obtained by using: X# X# make all X# make PREFIX=/... install X# X# WATCH OUT FOR REBUILDS WHEN YOU USE THIS FORMAT! X# X#Step 1: untar the distribution and then go the the FreeBSD support directory: X# tar zxvf LPRngTool-...tgz X# cd LPRngTool-*/DI*/FR* X# X#Step 2: (For the VERY paranoid) X# read the rest of this Makefile! X# ${MAKE} checkit X# this does all sorts of tests, etc. X# The final result is LPRng installed and a port made in this X# directory. X# X#Step 2: (For the blithely accepting) X# read the rest of this makefile up to the end of these comments X# ${MAKE} plist X# ${MAKE} install X# ${MAKE} package X# X#Step 3: (To make diff for the PORTS distribution) X# ${MAKE} portit X# X# Notes and warnings: X# X XPORTNAME=LPRngTool XPORTVERSION=1.2.3 XCATEGORIES= print XMASTER_SITES= ftp://ftp.astart.com/pub/LPRng/LPRng/ XEXTRACT_SUFX= .tgz X XMAINTAINER= papowell@astart.com X XBUILD_DEPENDS= \ X gs:${PORTSDIR}/print/ghostscript6 \ X wish:${PORTSDIR}/x11-toolkits/tk83 \ X a2ps:${PORTSDIR}/print/a2ps-letter X XHAS_CONFIGURE= yes X XCONFIGURE_ARGS=\ X --with-lprngtool_path=${PREFIX}/etc/lprngtool.conf X --with-printcap_path=/etc/printcap \ X --with-spool_directory=/var/spool/lpd \ X --with-userid=daemon --with-groupid=daemon X XMAN1=lprngtool.1 X X# Automated PLIST and INSTALL generation X# - I wonder why more scripts don't have this, it would make life easier Xplist: X# X# First, create a new set of directories where your port can be X# installed X# X -${RM} -rf pkg-plist /var/tmp/${DISTNAME} X ${TOUCH} pkg-plist X -${RM} -rf /var/tmp/$(DISTNAME) X ${MKDIR} /var/tmp/$(DISTNAME) X# X# Store the directory structure in a new file. X# X# ${MAKE} the package and copy to the temporary directory to get the list X X X -${MAKE} deinstall X #-${MAKE} clean X# we install in the DESTDIR subtree - X ${MAKE} makesum X ${MAKE} all X FORCE_PKG_REGISTER=YES ${MAKE} install NO_MTREE=yes DESTDIR=/var/tmp/$(DISTNAME) X ${CP} /dev/null /tmp/PLIST X (cd /var/tmp/$(DISTNAME)${PREFIX} && find . -type f) | \ X ${SED} -e 's/..//' -e '/man[0-9]/d' -e '/etc.*conf$$/d' \ X >> /tmp/PLIST X X# get directories X (cd /var/tmp/$(DISTNAME)${PREFIX} && find . -type d) \ X | ${SED} -n -e s#^..## -e 's#^#@dirrm #' -e /rhs/p >> /tmp/PLIST X# now update the PLIST X ${CP} /tmp/PLIST pkg-plist X X echo "#!/bin/sh " >pkg-install X echo 'if [ "$$2" != "POST-INSTALL" ] ; then exit 0; fi' >>pkg-install X echo "if [ ! -f ${PREFIX}/etc/lprngtool.conf ] ; then" >>pkg-install X echo " cp ${PREFIX}/etc/lprngtool.conf.sample ${PREFIX}/etc/lprngtool.conf; " >>pkg-install X echo "fi" >>pkg-install X chmod 755 pkg-install X X# and now deinstall it so you don't get strange things happening X ${MAKE} deinstall X -${RM} -f *.bak X X# do the tests in the book. But we cheat a bit Xpackageit: X -${RM} -f *.tgz X -${MAKE} deinstall X #${MAKE} clean X #${MAKE} makesum X #make X ${MAKE} install X ${MAKE} package X ${MAKE} deinstall X pkg_add *.tgz X ${MAKE} deinstall X pkg_add *.tgz X pkg_delete ${DISTNAME} X ${MAKE} reinstall X ${MAKE} package X -${MAKE} removeit X ${MAKE} addit X Xaddit: X pkg_add ${DISTNAME}.tgz Xremoveit: X pkg_delete ${DISTNAME} Xport: clean X rm -rf *.tgz *.bak /tmp/${PORTNAME} X mkdir -p /tmp/${PORTNAME} X -cp Makefile README.html distinfo files-* pkg-* /tmp/${PORTNAME} X cd /tmp; shar ` find ${PORTNAME} -print` >${PORTNAME}.port ; rm -rf ${PORTNAME} X cd /tmp; sh ${PORTNAME}.port; cd ${PORTNAME}; ${MAKE} X Xcheckit: X ${MAKE} cleanit X ${MAKE} makesum X ${MAKE} clean all X ${MAKE} plist X -${MAKE} deinstall X ${MAKE} install deinstall X ${MAKE} packageit X ${MAKE} portit X Xcleanit: X -${RM} -rf pkg-plist distinfo *.tgz work ${PORTNAME}.diffs ${PORTNAME} X -${CP} /dev/null pkg-plist X X.include <bsd.port.mk> END-of-LPRngTool/Makefile echo x - LPRngTool/pkg-message sed 's/^X//' >LPRngTool/pkg-message << 'END-of-LPRngTool/pkg-message' END-of-LPRngTool/pkg-message echo x - LPRngTool/pkg-install sed 's/^X//' >LPRngTool/pkg-install << 'END-of-LPRngTool/pkg-install' X#!/bin/sh Xif [ "$2" != "POST-INSTALL" ] ; then exit 0; fi Xif [ ! -f /usr/local/etc/lprngtool.conf ] ; then X cp /usr/local/etc/lprngtool.conf.sample /usr/local/etc/lprngtool.conf; Xfi END-of-LPRngTool/pkg-install echo x - LPRngTool/pkg-descr sed 's/^X//' >LPRngTool/pkg-descr << 'END-of-LPRngTool/pkg-descr' XLPRngTool is a configuration tool for LPRng. It provides a simple XGraphical User Interface that allows users to: X X- create printer definitions and edit printcap files X- display the status of print queues and the printing system X- perform printing administration functions X start, stop and abort print jobs X enable and disable spooling to print queues X- configure print filters such as IFHP and the RedHat X print filters END-of-LPRngTool/pkg-descr echo x - LPRngTool/pkg-comment sed 's/^X//' >LPRngTool/pkg-comment << 'END-of-LPRngTool/pkg-comment' XConfiguration Tool for LPRng END-of-LPRngTool/pkg-comment echo x - LPRngTool/distinfo sed 's/^X//' >LPRngTool/distinfo << 'END-of-LPRngTool/distinfo' XMD5 (LPRngTool-1.2.3.tgz) = a820dfb8a3cba81ea2ea9faea83eeeab END-of-LPRngTool/distinfo echo x - LPRngTool/README.html sed 's/^X//' >LPRngTool/README.html << 'END-of-LPRngTool/README.html' X<html> X<title> The FreeBSD Ports Collection (print/LPRngTool)</title> X<head><h1> The FreeBSD Ports Collection ("print/LPRngTool")</h1> </head> <hr> X<body> X X<p>You are now in the directory for the port "print/LPRngTool" (package name "LPRng-3.7.1"). 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-LPRngTool/README.html echo x - LPRngTool/pkg-plist sed 's/^X//' >LPRngTool/pkg-plist << 'END-of-LPRngTool/pkg-plist' Xbin/lprngtool Xlibexec/filters/rhs-printfilters/master-filter Xlibexec/filters/rhs-printfilters/asc-to-printer.fpi Xlibexec/filters/rhs-printfilters/ps-to-printer.fpi Xlibexec/filters/rhs-printfilters/rpm-to-asc.fpi Xlibexec/filters/rhs-printfilters/ppaprint Xlibexec/filters/rhs-printfilters/smbprint Xlibexec/filters/rhs-printfilters/ncpprint Xlibexec/filters/rhs-printfilters/asc-to-ps.fpi Xlibexec/filters/rhs-printfilters/rewindstdin Xlibexec/filters/rhs-printfilters/printerdb Xlibexec/filters/rhs-printfilters/testpage.asc Xlibexec/filters/rhs-printfilters/testpage.ps Xlibexec/filters/rhs-printfilters/testpage-a4.ps Xetc/lprngtool.conf.sample X@dirrm libexec/filters/rhs-printfilters END-of-LPRngTool/pkg-plist 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?200109300127.f8U1RuR49886>