From owner-freebsd-ports Sat Sep 29 18:40:20 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D66E37B40A for ; Sat, 29 Sep 2001 18:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8U1e1164321; Sat, 29 Sep 2001 18:40:01 -0700 (PDT) (envelope-from gnats) Received: from astart2.astart.com (tcubed-gw.customer.nethere.net [216.188.53.211]) by hub.freebsd.org (Postfix) with ESMTP id 509DE37B40A for ; Sat, 29 Sep 2001 18:30:58 -0700 (PDT) Received: from h110.private (h110.private [10.0.0.110]) by astart2.astart.com (8.9.3/8.9.3) with ESMTP id SAA69601 for ; Sat, 29 Sep 2001 18:30:58 -0700 (PDT) (envelope-from papowell@astart.com) Received: (from papowell@localhost) by h110.private (8.11.3/8.11.3) id f8U1UvS50152; Sat, 29 Sep 2001 18:30:57 -0700 (PDT) (envelope-from papowell) Message-Id: <200109300130.f8U1UvS50152@h110.private> Date: Sat, 29 Sep 2001 18:30:57 -0700 (PDT) From: papowell@lprng.com Reply-To: papowell@lprng.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30928: ifhp port update (which is a change-request) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30928 >Category: ports >Synopsis: ifhp 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:40: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: ifhp 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: # # ifhp # ifhp/pkg-comment # ifhp/README.html # ifhp/distinfo # ifhp/files-pkg-message # ifhp/pkg-plist # ifhp/pkg-message # ifhp/pkg-install # ifhp/pkg-descr # ifhp/Makefile # echo c - ifhp mkdir -p ifhp > /dev/null 2>&1 echo x - ifhp/pkg-comment sed 's/^X//' >ifhp/pkg-comment << 'END-of-ifhp/pkg-comment' Xifhp - A highly configurable print filter for LPRng END-of-ifhp/pkg-comment echo x - ifhp/README.html sed 's/^X//' >ifhp/README.html << 'END-of-ifhp/README.html' X X The FreeBSD Ports Collection (print/ifhp) X

The FreeBSD Ports Collection ("print/ifhp")


X X X

You are now in the directory for the port "print/ifhp" (package name "ifhp-3.4.7"). X X

This is the one-line description for this port: X X


Xifhp - A highly configurable print filter for LPRng X


X X

Please read the file "pkg-descr" for a Xlonger description. X X

Go to the top of the ports tree for Xa summary on how to use the ports collection. X X


X Go up one level X| X Go to top of ports tree X X END-of-ifhp/README.html echo x - ifhp/distinfo sed 's/^X//' >ifhp/distinfo << 'END-of-ifhp/distinfo' XMD5 (ifhp-3.4.7.tgz) = af0d8e805838d6d6a8846daa142876c4 END-of-ifhp/distinfo echo x - ifhp/files-pkg-message sed 's/^X//' >ifhp/files-pkg-message << 'END-of-ifhp/files-pkg-message' XThe ifhp configuration file is @@sysconfdir@@/ifhp.conf X XFor further information, have a look at: X @@PREFIX@@/share/doc/@@DISTNAME@@ Xalso: X WWW: http://www.lprng.com END-of-ifhp/files-pkg-message echo x - ifhp/pkg-plist sed 's/^X//' >ifhp/pkg-plist << 'END-of-ifhp/pkg-plist' Xlibexec/filters/ifhp Xlibexec/filters/textps Xlibexec/filters/wrapper Xetc/ifhp.conf.sample Xshare/doc/ifhp-3.4.7/IFHP-HOWTO.pdf Xshare/doc/ifhp-3.4.7/IFHP-HOWTO.html X@dirrm share/doc/ifhp-3.4.7 END-of-ifhp/pkg-plist echo x - ifhp/pkg-message sed 's/^X//' >ifhp/pkg-message << 'END-of-ifhp/pkg-message' XThe ifhp configuration file is /etc/ifhp.conf X XFor further information, have a look at: X /usr/local/share/doc/ifhp-3.4.7 Xalso: X WWW: http://www.lprng.com END-of-ifhp/pkg-message echo x - ifhp/pkg-install sed 's/^X//' >ifhp/pkg-install << 'END-of-ifhp/pkg-install' X#!/bin/sh XSYSCONFDIR=/etc XIFHP_CONF=/etc/ifhp.conf XVERSION=3.4.7 X# X# -- START -- X# $Id: postinstall.freebsd.sh,v 1.8 2000/11/27 20:09:31 papowell Exp papowell $ X# X# If you are building a PORT, see the X# DISTRIBUTIONS/Freebsd directory for a complete port X# building package. X# X# This is the shell script that does the postinstall X# dynamic fixup X# It needs to be massaged with the information for X# various paths. X# If you are building a package, then you do NOT want X# to have this executed - it will put the sample files X# in place. You need to do this during the postinstall X# step in the package installation. X# Xecho RUNNING postinstall.freebsd.sh MAKEPACKAGE="$MAKEPACKAGE" MAKEINSTALL="$MAKEINSTALL" PREFIX="$PREFIX" cwd `pwd` Xfix () { X v=`echo $1 | sed -e 's/[:;].*//'`; X p=`echo $2 | sed -e 's/:.*//'`; d=`dirname $p`; X if expr "$p" : "\|" >/dev/null ; then X echo "$v is a filter '$p'" X exit 0 X fi X echo "Putting $p in $d, using $v.sample" X if [ ! -d "$d" ] ; then X echo "Directory $d does not exist!" X mkdir -p $d X fi X if [ -f $v.sample ] ; then X if [ $v.sample != $p.sample ] ; then cp $v.sample $p.sample; fi X elif [ -f $v ] ; then X if [ $v != $p.sample ] ; then cp $v $p.sample; fi X else X echo "Do not have $v.sample or $v" X fi X if [ ! -f $p.sample ] ; then X echo "Do not have $p.sample" X else X if [ -f $p ] ; then X date=`date | awk '{ print $6, $2, $3, $4;}' | sed -e 's/ */_/g' ` X echo "Saving $p in $p.$date" X mv $p $p.$date X fi X chmod 644 $p.sample X cp $p.sample $p; X chmod 644 $p; X fi; X} X# we use the /usr/local/etc/rc.d method to start X# lpd X# we have to take them from one place and put in another Xif [ "X$MAKEPACKAGE" = "XYES" ] ; then X hold=${PREFIX}/etc X echo "Setting up configuration files path" ${hold} X if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi; X cp ifhp.conf ${hold}/ifhp.conf.sample Xelif [ X$MAKEINSTALL = XYES ] ; then X hold=${DESTDIR}${PREFIX}/etc X echo "Setting up configuration files path" ${hold} X if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi; X cp ifhp.conf ${hold}/ifhp.conf.sample X fix ifhp.conf "${DESTDIR}${IFHP_CONF}" Xelse X # when doing an install from a package we get the file from the package X hold=etc X if [ -f ${hold}/ifhp.conf.sample ] ; then X fix ${hold}/ifhp.conf "${IFHP_CONF}" X else X echo "WARNING: configuration files missing from package! CWD " `pwd` X ls X exit 1 X fi Xfi Xexit 0 END-of-ifhp/pkg-install echo x - ifhp/pkg-descr sed 's/^X//' >ifhp/pkg-descr << 'END-of-ifhp/pkg-descr' Xifhp is a highly versatile print filter for BSD based print spoolers. XIt can be configured to handle text, PostScript, PJL, PCL, and Xraster printers, supports conversion from one format to another, Xand can be used as a stand-alone print utility. It is the primary Xsupported print filter for the LPRng print spooler. X XSee http://www.lprng.com/ for more information. END-of-ifhp/pkg-descr echo x - ifhp/Makefile sed 's/^X//' >ifhp/Makefile << 'END-of-ifhp/Makefile' X# New ports collection makefile for: ifhp X# Version required: 3.6.8 X# Date created: 2 Apr 1997 X# Whom: desmo@bandwidth.org X# X# $FreeBSD: ports/sysutils/ifhp/Makefile,v 1.10 1999/09/27 01:50:00 steve Exp $ X# X# FreeBSD ifhp 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 ifhp port or package for FreeBSD. They X# a) make the pkg-plist and other files X# b) do a slew of regression tests, etc. 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 pkg-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# X#Step 1: untar the distribution and then go the the FreeBSD support directory: X# tar zxvf ifhp-...tgz X# cd ifhp*/DI*/FR* X# X#Step 2: (For the VERY paranoid) X# make checkit X# this does all sorts of tests, etc. X# The final result is ifhp installed and a port made in this X# directory. X# X#Step 2: (For the blithely accepting) X# make plist X# make install X# make package X# X#Step 3: (To find out what you need to send to the PORTS maintainers) X# make port X XPORTNAME=ifhp XPORTVERSION=3.4.7 XCATEGORIES= print XMASTER_SITES= ftp://ftp.lprng.com/pub/LPRng/FILTERS/ \ X ftp://ftp.sage-au.org.au/pub/printing/spooler/lprng/FILTERS/ \ X ftp://mirror.aarnet.edu.au/pub/LPRng/FILTERS/ \ X http://mirror.aarnet.edu.au/pub/LPRng/FILTERS/ \ X ftp://gwynne.cs.ualberta.ca/pub/LPRng/FILTERS/ \ X ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/LPRng/FILTERS/ \ X ftp://ftp.uni-paderborn.de/pub/unix/printer/plp/LPRng/FILTERS/ \ X ftp://ftp.chembio.ntnu.no/pub/mirrors/LPRng/FILTERS/ \ X ftp://ftp.mono.org/pub/LPRng/FILTERS/ \ X ftp://ftp.cs.columbia.edu/pub/archives/pkg/LPRng/FILTERS/ \ X ftp://ftp.cs.umn.edu/pub/LPRng/FILTERS/ \ X ftp://uiarchive.uiuc.edu/pub/packages/LPRng/FILTERS/ \ X ftp://uabgate.uab.ericsson.se/pub/unix/LPRng/FILTERS/ X XEXTRACT_SUFX= .tgz X XMAINTAINER= papowell@astart.com X X# RUN_DEPENDS= X Xsysconfdir=/etc XFILTERDIR=${PREFIX}/libexec/filters X XHAS_CONFIGURE= yes XCONFIGURE_ARGS= \ X --prefix=${PREFIX} \ X --sysconfdir=${sysconfdir} \ X --with-filterdir=${FILTERDIR} X XMAN8=ifhp.8 textps.8 X Xpost-install: X.if !defined(NOPORTSDOCS) X ${MKDIR} ${PREFIX}/share/doc/${DISTNAME} X ${CP} ` ls \ X ${WRKSRC}/HOWTO/*.txt \ X ${WRKSRC}/HOWTO/*.ps \ X ${WRKSRC}/HOWTO/*.pdf \ X ${WRKSRC}/HOWTO/*.html \ X ${WRKSRC}/HOWTO/*.gif \ X ${WRKSRC}/HOWTO/*.png \ X ${WRKSRC}/HOWTO/*.ppt 2>/dev/null `\ X ${PREFIX}/share/doc/${DISTNAME}; X.endif X @${CAT} pkg-message X X# Automated pkg-plist and INSTALL generation X# - I wonder why more scripts don't have this, it would make life easier Xplist: X# X# X#Next, create a new set of directories which your port can be X#installed, and install any dependencies. X# X -${RM} -rf pkg-plist /var/tmp/${DISTNAME} X ${TOUCH} pkg-plist X ${MKDIR} /var/tmp/${DISTNAME}/etc X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/bin X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/libexec X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/sbin X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/man/man1 X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/man/man5 X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/man/man8 X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/etc/rc.d X ${MKDIR} /var/tmp/${DISTNAME}${PREFIX}/share/doc X# X#Store the directory structure in a new file. X# X (cd /var/tmp/${DISTNAME}${PREFIX} && find . -type d) >/tmp/OLD-DIRS X# make the package and copy to the temporary directory to get the list X -${MAKE} deinstall X #-${MAKE} clean X# we install in the DESTDIR subtree - X ${MAKE} makesum X ${MAKE} all X ${MAKE} install NO_MTREE=yes DESTDIR=/var/tmp/${DISTNAME} MAKEPACKAGE=YES X ${CP} /dev/null /tmp/PLIST X (cd /var/tmp/${DISTNAME}${PREFIX} && find . -type f) | \ X ${SED} -e 's/..//' -e '/info.dir/d' -e '/man[0-9]/d' \ X -e '/etc.*conf$$/d' -e '/etc.*printcap$$/d' \ X >> /tmp/PLIST X X (cd /var/tmp/${DISTNAME}${PREFIX} && find . -type f) | \ X ${SED} -n -e 's/\.gz$$//' -e '/man\//s,.*man[0-9].,,p' > /tmp/MANPAGES X X# This is truly evil - we add the man pages by editing the makefile. X MAN8=`grep '8$$' /tmp/MANPAGES`; MAN8=`${ECHO} $$MAN8`; ${ECHO} MAN8 "$$MAN8"; \ X ${PERL} -spi -e \ X " s/^MAN8=.*/MAN8=$${MAN8}/;" \ X Makefile X# get directories X (cd /var/tmp/${DISTNAME}${PREFIX} && find . -type d) \ X | comm -13 /tmp/OLD-DIRS - \ X | ${SED} -e /filters/d -e s#^..## -e 's#^#@dirrm #' >> /tmp/PLIST X# now update the PLIST X ${CP} /tmp/PLIST pkg-plist X X# fix up the MESSAGE X ${RM} -f pkg-message; X ${SED} pkg-message X X# put the updated postinstall script into the package directory X ${CP} ${WRKSRC}/postinstall pkg-install; X X# and now deinstall it so you don't get strange things happening X ${MAKE} deinstall X Xaddit: X pkg_add ${DISTNAME}.tgz Xremoveit: X pkg_delete ifhp Xport: X -${RM} -rf /tmp/ifhp X -mkdir /tmp/ifhp X ${CP} pkg-* files-* distinfo README.html Makefile /tmp/ifhp X cd /tmp; shar `find ifhp -print` >ifhp.port; rm -rf ifhp; sh ifhp.port; X cd /tmp/ifhp; make X Xpackageit: X ${MAKE} package X ${MAKE} deinstall X pkg_add *.tgz X pkg_delete ${DISTNAME} X Xcheckit: X ${MAKE} cleanit X ${MAKE} makesum X ${MAKE} clean all X ${MAKE} plist X -${MAKE} deinstall X ${MAKE} install X ${MAKE} deinstall X# do the tests in the book. But we cheat a bit X -${RM} -f *.tgz X ${MAKE} install X ${MAKE} package X ${MAKE} deinstall X pkg_add *.tgz X pkg_delete ${DISTNAME} X ${MAKE} clean X rm -f *.tgz X ${MAKE} port X Xcleanit: X -${RM} -rf pkg-plist distinfo *.tgz work ifhp.diffs ifhp X -${CP} /dev/null pkg-plist X X.include END-of-ifhp/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message