Date: Wed, 26 Dec 2001 12:33:03 -0800 (PST) From: Patrick Powell <papowell@astart.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/33209: LPRngTool port Message-ID: <200112262033.fBQKX3M07473@h110.private>
next in thread | raw e-mail | index | archive | help
>Number: 33209 >Category: ports >Synopsis: LPRngTool port >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: Wed Dec 26 12:40:00 PST 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 >How-To-Repeat: >Fix: The LPRngTool port shar is attached. # 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/files-pkg-message # 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# Date created: 10 Oct 2001 X# Whom: papowell@lprng.com X# X# $FreeBSD: ports/sysutils/LPRng/Makefile,v 1.10 1999/09/27 01:50:00 steve Exp $ X# X XPORTNAME=LPRngTool XPORTVERSION=1.3.1 XCATEGORIES= sysutils print XMASTER_SITES= ftp://ftp.lprng.com/pub/%SUBDIR%/ \ X ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \ X ftp://ftp.cs.umn.edu/pub/%SUBDIR%/ \ X ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/%SUBDIR%/ \ X ftp://ftp.uni-paderborn.de/pub/unix/printer/%SUBDIR%/ XMASTER_SITE_SUBDIR= LPRng/LPRngTool XEXTRACT_SUFX= .tgz X XMAINTAINER= papowell@astart.com X XBUILD_DEPENDS= \ X gs:${PORTSDIR}/print/ghostscript-afpl \ X wish8.3:${PORTSDIR}/x11-toolkits/tk83 \ X a2ps:${PORTSDIR}/print/a2ps-letter X X#RUN_DEPENDS= ifhp:${PORTSDIR}/print/ifhp X X.if defined(PREFIX) X CONFIGURE_ARGS+= --prefix="${PREFIX}" X.endif X.if defined(SYSCONFDIR) X CONFIGURE_ARGS+= --with-sysconfdir="${SYSCONFDIR}" X.endif X XHAS_CONFIGURE= yes XGNU_CONFIGURE= yes XINSTALLS_SHLIB= yes X XHAS_CONFIGURE= yes X XCONFIGURE_ARGS+=\ X --with-spool_directory=/var/spool/lpd X XMAN1=lprngtool.1 X Xpre-everything:: X @${ECHO_MSG} "If you want to replace the default printing system with LPRng, use:" X @${ECHO_MSG} " make PREFIX=/usr SYSCONFDIR=/etc clean all install" X @if [ "${PREFIX}" = "/usr" -a ! -d /usr/man ] ; then \ X ${ECHO_MSG} "The man pages will be installed in /usr/man." ; \ X ${ECHO_MSG} "You should make a symbolic link /usr/share/man from /usr/man"; \ X ${ECHO_MSG} " ln -s /usr/share/man /usr/man"; \ X ${ECHO_MSG} "If you do not, you will retain the old FreeBSD man pages."; \ X ${ECHO_MSG} "See the hier(7) man page for details of the FreeBSD file system"; \ X ${ECHO_MSG} "layout. Configure is not equipped to determine the location of"; \ X ${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \ X exit 1; \ X fi X @${ECHO_MSG} "Configuring with '${CONFIGURE_ARGS}'" 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 XPREFIX=/usr XSYSCONFDIR=/usr/etc XLPRNGTOOL_CONF=/usr/etc/lprngtool.conf XMANDIR=/usr/man XVERSION=1.3.1 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` Xif [ "$VERBOSE_INSTALL" != "" ] ; then set -x; fi 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=${DESTDIR}${PREFIX}/etc X echo "Setting up configuration files path for package creation" ${hold} X if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi; X cp lprngtool.conf ${hold}/lprngtool.conf.sample Xelif [ X$MAKEINSTALL = XYES ] ; then X # we have the port pre-install operation X if [ "$MANDIR" = "/usr/man" -a ! -d ${DESTDIR}/usr/man ] ; then X # we have the dreaded standard installation X # try to make a symbolic link to X echo "Creating symbolic link from /usr/man to /usr/share/man" X v=`ln -s ${DESTDIR}/usr/share/man ${DESTDIR}/usr/man`; X fi X hold=${DESTDIR}${PREFIX}/etc X echo "Setting up configuration files path for installation" ${hold} X if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi; X cp lprngtool.conf ${hold}/lprngtool.conf.sample X fix lprngtool.conf "${DESTDIR}${LPRNGTOOL_CONF}" Xelif [ "X$2" = "XPOST-INSTALL" ] ; then X # when doing an install from a package we get the file from the package X hold=etc X if [ -f ${hold}/lprngtool.conf.sample ] ; then X fix ${hold}/lprngtool.conf "${LPRNGTOOL_CONF}" X else X echo "WARNING: configuration files missing from package! CWD " `pwd` X ls X exit 1 X fi Xelif [ "X$2" = "XPRE-INSTALL" ] ; then X # we have the port pre-install operation X if [ "$MANDIR" = "/usr/man" -a ! -d /usr/man ] ; then X # we have the dreaded standard installation X # try to make a symbolic link to X echo "Creating symbolic link from /usr/man to /usr/share/man" X v=`ln -s /usr/share/man /usr/man`; X fi Xfi Xexit 0 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/files-pkg-message sed 's/^X//' >LPRngTool/files-pkg-message << 'END-of-LPRngTool/files-pkg-message' END-of-LPRngTool/files-pkg-message echo x - LPRngTool/distinfo sed 's/^X//' >LPRngTool/distinfo << 'END-of-LPRngTool/distinfo' XMD5 (LPRngTool-1.3.1.tgz) = 872f598784e7eb91e74622748e44f89b 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' Xetc/lprngtool.conf.sample Xbin/lprngtool Xlibexec/filters/atalkprint Xlibexec/filters/ncpprint Xlibexec/filters/smbprint Xlibexec/filters/printerdb Xlibexec/filters/testpage.asc Xlibexec/filters/testpage.ps Xlibexec/filters/testpage-a4.ps 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?200112262033.fBQKX3M07473>