Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2009 17:18:52 -0700 (PDT)
From:      Patrick Powell <papowell@astart.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/132792: re-activating ifhp port
Message-ID:  <200903190018.n2J0IqDo061337@astart2.astart.com>
Resent-Message-ID: <200903190020.n2J0K2WA080075@freefall.freebsd.org>

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

>Number:         132792
>Category:       ports
>Synopsis:       re-activating ifhp port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 19 00:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Powell
>Release:        FreeBSD 7.1-RELEASE i386
>Organization:
Astart Technologies
>Environment:
System: FreeBSD astart2.astart.com 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

The 'ifhp' port was removed from the ports collection due to lack of support.
I have updated the ifhp source code and am submitting the new version of the
ifhp 'port'.
   Patrick Powell, LPRng/ifhp 

>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/distinfo
#	ifhp/files
#	ifhp/files/pkg-install.in
#	ifhp/files/pkg-message.in
#	ifhp/Makefile
#	ifhp/pkg-descr
#	ifhp/pkg-plist
#
echo c - ifhp
mkdir -p ifhp > /dev/null 2>&1
echo x - ifhp/distinfo
sed 's/^X//' >ifhp/distinfo << '91e40f74e6c1404e2e6cd4fae30239a6'
XMD5 (ifhp-3.5.22.tgz) = 450b24f44dffbfda84a58ce5067ab1ad
XSHA256 (ifhp-3.5.22.tgz) = 181358de5bdd846f9bb3837c4feef34309ede65d37d31b9c5bd216f75279f9ab
XSIZE (ifhp-3.5.22.tgz) = 2170615
91e40f74e6c1404e2e6cd4fae30239a6
echo c - ifhp/files
mkdir -p ifhp/files > /dev/null 2>&1
echo x - ifhp/files/pkg-install.in
sed 's/^X//' >ifhp/files/pkg-install.in << 'cdc0602dcf11bd32599afb6393a1d72a'
X#! /bin/sh
X
Xprefix=%%PREFIX%%
Xsysconfdir=%%SYSCONFDIR%%
X
Xcase "x$2" in
X
X"xPRE-INSTALL")
X
X	# Preserve original files from being overwritten.
X
X	if [ "x$prefix" = "x/usr" ]; then
X		cd $prefix
X		for i in bin/ifhp bin/textps bin/snmp_printer_status \
X			share/man/man1/ifhp.1.gz share/man/man1/textps.1.gz share/man/man1/snmp_printer_status.1.gz \
X			; do
X			cp -p $i $i.orig
X		done
X	fi
X
X	;;
X
X"xPOST-INSTALL")
X
X	cd $sysconfdir
X
X	# Preserve original configuration files from being overwritten.
X	# Restore previously saved configuration if possible.
X
X	if [ "x$sysconfdir" = "x/etc" ]; then
X		for i in ifhp.conf ; do
X			[ -f $i ] && mv $i $i.orig
X			[ -f $i.saved ] && mv $i.saved $i || cp $i.sample $i
X		done
X	else
X		for i in ifhp.conf ; do
X			[ -f $i.saved ] && mv $i.saved $i || cp $i.sample $i
X		done
X	fi
X
X	# This is a trick to detect if the user installed a new world at deinstall stage.
X
X	if [ "x$prefix" = "x/usr" ]; then
X		cd $prefix
X		for i in bin/ifhp bin/textps bin/snmp_printer_status \
X			share/man/man1/ifhp.1.gz share/man/man1/textps.1.gz share/man/man1/snmp_printer_status.1.gz \
X			; do
X			touch $i.orig
X		done
X	fi
X
X	;;
X
X"xDEINSTALL")
X
X	cd $sysconfdir
X
X	# Remove unchanged files.
X
X	for i in ifhp.conf ; do
X		cmp -s $i $i.sample && rm -f $i
X	done
X
X	# Remove backup files if installworld overwrited LPRng files.
X
X	if [ "x$prefix" = "x/usr" ]; then
X		cd $prefix
X		for i in bin/ifhp bin/textps bin/snmp_printer_status \
X			share/man/man1/ifhp.1.gz share/man/man1/textps.1.gz share/man/man1/snmp_printer_status.1.gz \
X			; do
X			[ $i -nt $i.orig ] && rm $i.orig
X		done
X	fi
X
X	;;
X
X"xPOST-DEINSTALL")
X
X	cd $sysconfdir
X
X	# Save remaining modified files so we can restore them at next install.
X	# Restore original files when LPRng files haven't changed.
X
X	for i in ifhp.conf ; do
X		if [ "x$sysconfdir" = "x/etc" ]; then
X			if [ -f $i ]; then
X				mv $i $i.saved
X			else
X				[ -f $i.orig ] && mv $i.orig $i
X			fi
X		else
X			[ -f $i ] && mv $i $i.saved
X		fi
X	done
X
X	# Restore backup files.
X
X	if [ "x$prefix" = "x/usr" ]; then
X		cd $prefix
X		for i in bin/ifhp bin/textps bin/snmp_printer_status \
X			; do
X			[ -f $i.orig ] && mv $i.orig $i
X		done
X	fi
X
X	;;
X
Xesac
X
Xexit 0
cdc0602dcf11bd32599afb6393a1d72a
echo x - ifhp/files/pkg-message.in
sed 's/^X//' >ifhp/files/pkg-message.in << 'd246a0660287e95e35cac2ddb3bbba78'
XThe ifhp configuration file is ifhp.conf
X
XFor further information, have a look at:
X  %%DOCSDIR%%
Xalso:
X  WWW: http://www.lprng.com/
X
XCommercial support is available from Astart Technologies:
X
XPatrick Powell                 Astart Technologies,
Xpapowell@astart.com            9475 Chesapeake Drive, Suite D,
XNetwork and System             San Diego, CA 92123
X  Consulting                   858-874-6543 FAX 858-279-8424 
XURL:  http://www.astart.com
d246a0660287e95e35cac2ddb3bbba78
echo x - ifhp/Makefile
sed 's/^X//' >ifhp/Makefile << 'd2fd75a1def61c2b0e0fc196d41f4349'
X# Ports collection makefile for:	ifhp
X# Date created:		10 Oct 2001
X# Whom:			papowell@astart.com
X#
X# $FreeBSD: ports/print/ifhp/Makefile,v 1.9 2004/01/28 05:44:55 kris Exp $
X#
X
XPORTNAME=	ifhp
XPORTVERSION=	3.5.22
XCATEGORIES=	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/ifhp
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	papowell@astart.com
XCOMMENT=	IFHP - A highly configurable print filter for LPRng
X
XGNU_CONFIGURE=	yes
XINSTALLS_SHLIB=	yes
XUSE_GHOSTSCRIPT_RUN=    yes
XWANT_PERL=  yes
X
XCONFIGURE_ARGS+= \
X	LDFLAGS="-L${LOCALBASE}/lib" CFLAGS="-I${LOCALBASE}/include"
X
XPKGMESSAGE= ${WRKDIR}/pkg-message
XSUB_FILES= pkg-message pkg-install
XSUB_LIST=   SYSCONFDIR="${SYSCONFDIR}"
X
XPKGDEINSTALL=   ${PKGINSTALL}
X
X.if defined(PREFIX)
XCONFIGURE_ARGS+=	--prefix="${PREFIX}"
X.endif
X.if defined(SYSCONFDIR)
XCONFIGURE_ARGS+=	--sysconfdir="${SYSCONFDIR}"
X.else
XSYSCONFDIR=	${PREFIX}/etc
X.endif
X
XBUILD_DEPENDS+= ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
X
XMAN1=	ifhp.1 textps.1 snmp_printer_status.1
X
Xpre-install: apply-slist
X	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/ifhp.conf ${SYSCONFDIR}/ifhp.conf.sample
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
X.for ext in html pdf ppt ps txt gif jpg png
X	for i in `${LS} ${WRKSRC}/DOCS | ${GREP} "\.${ext}$$"`; \
X		do ${INSTALL_DATA} ${WRKSRC}/DOCS/$$i ${DOCSDIR}; done
X.endfor
X.endif
X	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X	@${CAT} ${PKGMESSAGE}
X
X
X.include <bsd.port.mk>
d2fd75a1def61c2b0e0fc196d41f4349
echo x - ifhp/pkg-descr
sed 's/^X//' >ifhp/pkg-descr << 'b506f30aede8d7b1c670e5524862d4e3'
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
XWWW: http://www.lprng.com/
XFTP: ftp://ftp.lprng.com/
b506f30aede8d7b1c670e5524862d4e3
echo x - ifhp/pkg-plist
sed 's/^X//' >ifhp/pkg-plist << 'f7eec4b3b8be5309264a50a73fa0c055'
Xshare/ifhp/ifhp.conf.sample
Xlibexec/filters/extract_pjl
Xlibexec/filters/ifhp
Xlibexec/filters/snmp_printer_status
Xlibexec/filters/snmp_printer_status.conf
Xlibexec/filters/textps
Xlibexec/filters/wrapper
Xlibexec/filters/UTILS/400095.ppd
Xlibexec/filters/UTILS/HP2500CJ.PPD
Xlibexec/filters/UTILS/Watermarks
Xlibexec/filters/UTILS/accounting.sh
Xlibexec/filters/UTILS/accounting.sh.in
Xlibexec/filters/UTILS/ellipse.ps
Xlibexec/filters/UTILS/extract_pjl
Xlibexec/filters/UTILS/fixupdate
Xlibexec/filters/UTILS/fixupdate.in
Xlibexec/filters/UTILS/install-sh
Xlibexec/filters/UTILS/mkinstalldirs
Xlibexec/filters/UTILS/one.pcl
Xlibexec/filters/UTILS/one.pdf
Xlibexec/filters/UTILS/one.pjl
Xlibexec/filters/UTILS/one.ps
Xlibexec/filters/UTILS/phaser5400_snmp_mib_query
Xlibexec/filters/UTILS/sendhp.sh
Xlibexec/filters/UTILS/sendhp.sh.in
Xlibexec/filters/UTILS/stopstr.c
Xlibexec/filters/UTILS/supported
Xlibexec/filters/UTILS/supported.in
Xlibexec/filters/UTILS/test1
Xlibexec/filters/UTILS/use_snmp_for_status
X%%PORTDOCS%%%%DOCSDIR%%/IFHP-Reference.html
X%%PORTDOCS%%%%DOCSDIR%%/IFHP-Reference.pdf
X%%PORTDOCS%%%%DOCSDIR%%/LPRng.jpg
X%%PORTDOCS%%%%DOCSDIR%%/LPRngT-L.jpg
X%%PORTDOCS%%%%DOCSDIR%%/LPRngT-S.jpg
X%%PORTDOCS%%%%DOCSDIR%%/ifhp-S.jpg
X@dirrm share/ifhp
X@dirrm libexec/filters/UTILS
X@dirrm libexec/filters
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
f7eec4b3b8be5309264a50a73fa0c055
exit


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



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