diff options
author | cy <cy@FreeBSD.org> | 2002-05-06 13:55:22 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2002-05-06 13:55:22 +0800 |
commit | c1503541830292d0ae0c167fbcc2080ccee5c5ae (patch) | |
tree | a0dfe619e42b4845ab3971192400824059608fd2 /sysutils | |
parent | acecbef0971b7eb73cd154d3b2171bf5b360d822 (diff) | |
download | freebsd-ports-gnome-c1503541830292d0ae0c167fbcc2080ccee5c5ae.tar.gz freebsd-ports-gnome-c1503541830292d0ae0c167fbcc2080ccee5c5ae.tar.zst freebsd-ports-gnome-c1503541830292d0ae0c167fbcc2080ccee5c5ae.zip |
Add LPRngTool 1.3.2, configuration Tool for LPRng.
PR: 33209
Submitted by: papowell@lprng.com
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/LPRngTool/Makefile | 61 | ||||
-rw-r--r-- | sysutils/LPRngTool/distinfo | 1 | ||||
-rw-r--r-- | sysutils/LPRngTool/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/LPRngTool/pkg-descr | 10 | ||||
-rw-r--r-- | sysutils/LPRngTool/pkg-install | 99 | ||||
-rw-r--r-- | sysutils/LPRngTool/pkg-plist | 9 | ||||
-rw-r--r-- | sysutils/Makefile | 1 |
7 files changed, 182 insertions, 0 deletions
diff --git a/sysutils/LPRngTool/Makefile b/sysutils/LPRngTool/Makefile new file mode 100644 index 000000000000..398889426ff0 --- /dev/null +++ b/sysutils/LPRngTool/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: LPRngTool +# Date created: 10 Oct 2001 +# Whom: papowell@lprng.com +# +# $FreeBSD$ +# + +PORTNAME= LPRngTool +PORTVERSION= 1.3.2 +CATEGORIES= sysutils print +MASTER_SITES= ftp://ftp.lprng.com/pub/%SUBDIR%/ \ + ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \ + ftp://ftp.cs.umn.edu/pub/%SUBDIR%/ \ + ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/%SUBDIR%/ \ + ftp://ftp.uni-paderborn.de/pub/unix/printer/%SUBDIR%/ +MASTER_SITE_SUBDIR= LPRng/LPRngTool +EXTRACT_SUFX= .tgz + +MAINTAINER= papowell@astart.com + +BUILD_DEPENDS= \ + gs:${PORTSDIR}/print/ghostscript-afpl \ + wish8.3:${PORTSDIR}/x11-toolkits/tk83 \ + a2ps:${PORTSDIR}/print/a2ps-letter + +#RUN_DEPENDS= ifhp:${PORTSDIR}/print/ifhp + +.if defined(PREFIX) + CONFIGURE_ARGS+= --prefix="${PREFIX}" +.endif +.if defined(SYSCONFDIR) + CONFIGURE_ARGS+= --with-sysconfdir="${SYSCONFDIR}" +.endif + +HAS_CONFIGURE= yes +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes + +HAS_CONFIGURE= yes + +CONFIGURE_ARGS+=\ + --with-spool_directory=/var/spool/lpd + +MAN1=lprngtool.1 + +pre-everything:: + @${ECHO_MSG} "If you want to replace the default printing system with LPRng, use:" + @${ECHO_MSG} " make PREFIX=/usr SYSCONFDIR=/etc clean all install" + @if [ "${PREFIX}" = "/usr" -a ! -d /usr/man ] ; then \ + ${ECHO_MSG} "The man pages will be installed in /usr/man." ; \ + ${ECHO_MSG} "You should make a symbolic link /usr/share/man from /usr/man"; \ + ${ECHO_MSG} " ln -s /usr/share/man /usr/man"; \ + ${ECHO_MSG} "If you do not, you will retain the old FreeBSD man pages."; \ + ${ECHO_MSG} "See the hier(7) man page for details of the FreeBSD file system"; \ + ${ECHO_MSG} "layout. Configure is not equipped to determine the location of"; \ + ${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \ + exit 1; \ + fi + @${ECHO_MSG} "Configuring with '${CONFIGURE_ARGS}'" + +.include <bsd.port.mk> diff --git a/sysutils/LPRngTool/distinfo b/sysutils/LPRngTool/distinfo new file mode 100644 index 000000000000..2ce750c3e987 --- /dev/null +++ b/sysutils/LPRngTool/distinfo @@ -0,0 +1 @@ +MD5 (LPRngTool-1.3.2.tgz) = 964bb358dbe140c7be5ebbdf0eecf64a diff --git a/sysutils/LPRngTool/pkg-comment b/sysutils/LPRngTool/pkg-comment new file mode 100644 index 000000000000..aa987802c307 --- /dev/null +++ b/sysutils/LPRngTool/pkg-comment @@ -0,0 +1 @@ +Configuration Tool for LPRng diff --git a/sysutils/LPRngTool/pkg-descr b/sysutils/LPRngTool/pkg-descr new file mode 100644 index 000000000000..f4d6da3eb15e --- /dev/null +++ b/sysutils/LPRngTool/pkg-descr @@ -0,0 +1,10 @@ +LPRngTool is a configuration tool for LPRng. It provides a simple +Graphical User Interface that allows users to: + +- create printer definitions and edit printcap files +- display the status of print queues and the printing system +- perform printing administration functions + start, stop and abort print jobs + enable and disable spooling to print queues +- configure print filters such as IFHP and the RedHat + print filters diff --git a/sysutils/LPRngTool/pkg-install b/sysutils/LPRngTool/pkg-install new file mode 100644 index 000000000000..7edaac001983 --- /dev/null +++ b/sysutils/LPRngTool/pkg-install @@ -0,0 +1,99 @@ +#!/bin/sh +PREFIX=/usr +SYSCONFDIR=/usr/etc +LPRNGTOOL_CONF=/usr/etc/lprngtool.conf +MANDIR=/usr/man +VERSION=1.3.1 +# +# -- START -- +# $FreeBSD$ +# $Id: postinstall.freebsd.sh,v 1.8 2000/11/27 20:09:31 papowell Exp papowell $ +# +# If you are building a PORT, see the +# DISTRIBUTIONS/Freebsd directory for a complete port +# building package. +# +# This is the shell script that does the postinstall +# dynamic fixup +# It needs to be massaged with the information for +# various paths. +# If you are building a package, then you do NOT want +# to have this executed - it will put the sample files +# in place. You need to do this during the postinstall +# step in the package installation. +# +echo RUNNING postinstall.freebsd.sh MAKEPACKAGE="$MAKEPACKAGE" MAKEINSTALL="$MAKEINSTALL" PREFIX="$PREFIX" cwd `pwd` +if [ "$VERBOSE_INSTALL" != "" ] ; then set -x; fi +fix () { + v=`echo $1 | sed -e 's/[:;].*//'`; + p=`echo $2 | sed -e 's/:.*//'`; d=`dirname $p`; + if expr "$p" : "\|" >/dev/null ; then + echo "$v is a filter '$p'" + exit 0 + fi + echo "Putting $p in $d, using $v.sample" + if [ ! -d "$d" ] ; then + echo "Directory $d does not exist!" + mkdir -p $d + fi + if [ -f $v.sample ] ; then + if [ $v.sample != $p.sample ] ; then cp $v.sample $p.sample; fi + elif [ -f $v ] ; then + if [ $v != $p.sample ] ; then cp $v $p.sample; fi + else + echo "Do not have $v.sample or $v" + fi + if [ ! -f $p.sample ] ; then + echo "Do not have $p.sample" + else + if [ -f $p ] ; then + date=`date | awk '{ print $6, $2, $3, $4;}' | sed -e 's/ */_/g' ` + echo "Saving $p in $p.$date" + mv $p $p.$date + fi + chmod 644 $p.sample + cp $p.sample $p; + chmod 644 $p; + fi; +} +# we use the /usr/local/etc/rc.d method to start +# lpd +# we have to take them from one place and put in another +if [ "X$MAKEPACKAGE" = "XYES" ] ; then + hold=${DESTDIR}${PREFIX}/etc + echo "Setting up configuration files path for package creation" ${hold} + if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi; + cp lprngtool.conf ${hold}/lprngtool.conf.sample +elif [ X$MAKEINSTALL = XYES ] ; then + # we have the port pre-install operation + if [ "$MANDIR" = "/usr/man" -a ! -d ${DESTDIR}/usr/man ] ; then + # we have the dreaded standard installation + # try to make a symbolic link to + echo "Creating symbolic link from /usr/man to /usr/share/man" + v=`ln -s ${DESTDIR}/usr/share/man ${DESTDIR}/usr/man`; + fi + hold=${DESTDIR}${PREFIX}/etc + echo "Setting up configuration files path for installation" ${hold} + if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi; + cp lprngtool.conf ${hold}/lprngtool.conf.sample + fix lprngtool.conf "${DESTDIR}${LPRNGTOOL_CONF}" +elif [ "X$2" = "XPOST-INSTALL" ] ; then + # when doing an install from a package we get the file from the package + hold=etc + if [ -f ${hold}/lprngtool.conf.sample ] ; then + fix ${hold}/lprngtool.conf "${LPRNGTOOL_CONF}" + else + echo "WARNING: configuration files missing from package! CWD " `pwd` + ls + exit 1 + fi +elif [ "X$2" = "XPRE-INSTALL" ] ; then + # we have the port pre-install operation + if [ "$MANDIR" = "/usr/man" -a ! -d /usr/man ] ; then + # we have the dreaded standard installation + # try to make a symbolic link to + echo "Creating symbolic link from /usr/man to /usr/share/man" + v=`ln -s /usr/share/man /usr/man`; + fi +fi +exit 0 diff --git a/sysutils/LPRngTool/pkg-plist b/sysutils/LPRngTool/pkg-plist new file mode 100644 index 000000000000..bf899e18d4cd --- /dev/null +++ b/sysutils/LPRngTool/pkg-plist @@ -0,0 +1,9 @@ +etc/lprngtool.conf.sample +bin/lprngtool +libexec/filters/atalkprint +libexec/filters/ncpprint +libexec/filters/smbprint +libexec/filters/printerdb +libexec/filters/testpage.asc +libexec/filters/testpage.ps +libexec/filters/testpage-a4.ps diff --git a/sysutils/Makefile b/sysutils/Makefile index 2e513b55604a..49c3e944b5a3 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -2,6 +2,7 @@ # SUBDIR += LPRng + SUBDIR += LPRngTool SUBDIR += abck SUBDIR += afio SUBDIR += anteater |