View | Details | Raw Unified | Return to bug 35754
Collapse All | Expand All

(-)ifhp/Makefile (-12 / +50 lines)
Lines 1-27 Link Here
1
# New ports collection makefile for:	ifhp
1
# Ports collection makefile for:	ifhp
2
# Date created:		27 August 1999
2
# Date created:		10 Oct 2001
3
# Whom:			papowell@astart.com
3
# Whom:			papowell@astart.com
4
#
4
#
5
# $FreeBSD: ports/print/ifhp/Makefile,v 1.3 2000/04/09 17:49:58 cpiazza Exp $
5
## $FreeBSD: ports/print/ifhp/Makefile,v 1.3 2000/04/09 17:49:58 cpiazza Exp $
6
#
6
#
7
7
8
PORTNAME=	ifhp
8
PORTNAME=ifhp
9
PORTVERSION=	3.3.10
9
PORTVERSION=3.5.6
10
CATEGORIES=	print
10
CATEGORIES=	    print
11
MASTER_SITES=	ftp://ftp.astart.com/pub/LPRng/FILTERS/
11
MASTER_SITES=	ftp://ftp.lprng.com/pub/%SUBDIR%/ \
12
	ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \
13
	ftp://ftp.cs.umn.edu/pub/%SUBDIR%/ \
14
	ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/%SUBDIR%/ \
15
	ftp://ftp.uni-paderborn.de/pub/unix/printer/%SUBDIR%/
16
MASTER_SITE_SUBDIR=  LPRng/ifhp
12
EXTRACT_SUFX=	.tgz
17
EXTRACT_SUFX=	.tgz
13
18
14
MAINTAINER=	papowell@astart.com
19
MAINTAINER=papowell@astart.com
20
21
# RUN_DEPENDS=
22
23
.if defined(PREFIX)
24
  CONFIGURE_ARGS+=  --prefix="${PREFIX}"
25
.endif
26
.if defined(SYSCONFDIR)
27
  CONFIGURE_ARGS+=  --sysconfdir="${SYSCONFDIR}"
28
.endif
15
29
16
MAKEFILE=	Makefile.bsd
17
HAS_CONFIGURE=	yes
30
HAS_CONFIGURE=	yes
31
GNU_CONFIGURE=	yes
32
INSTALLS_SHLIB=	yes
33
34
CONFIGURE_ARGS+= \
35
	--with-ldopts="-L${LOCALBASE}/lib" \
36
	--with-ccopts="-I${LOCALBASE}/include"
37
38
MAN8=ifhp.8 textps.8
18
39
19
MAN8=		ifhp.8 textps.8
40
pre-everything::
41
	@${ECHO_MSG} "If you want to replace the default printing system with LPRng, use:"
42
	@${ECHO_MSG} "  make PREFIX=/usr SYSCONFDIR=/etc clean all install"
43
	@if [ "${PREFIX}" = "/usr" -a ! -d /usr/man ] ; then \
44
		${ECHO_MSG} "The man pages will be installed in /usr/man." ; \
45
		${ECHO_MSG} "You should make a symbolic link /usr/share/man from /usr/man"; \
46
		${ECHO_MSG} "   ln -s /usr/share/man /usr/man"; \
47
		${ECHO_MSG} "If you do not, you will retain the old FreeBSD man pages."; \
48
		${ECHO_MSG} "See the hier(7) man page for details of the FreeBSD file system"; \
49
		${ECHO_MSG} "layout.  Configure is not equipped to determine the location of"; \
50
		${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \
51
		exit 1; \
52
	fi
53
	@${ECHO_MSG} "Configuring with '${CONFIGURE_ARGS}'"
20
54
21
post-install:
55
post-install:
22
	${INSTALL} -d -g bin -o bin -m 0555 ${PREFIX}/share/doc/ifhp
23
.if !defined(NOPORTSDOCS)
56
.if !defined(NOPORTSDOCS)
24
	${CP} -r ${WRKSRC}/HOWTO/* ${PREFIX}/share/doc/ifhp;
57
	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
58
.for ext in html pdf ppt ps txt gif jpg png
59
	@for i in `ls ${WRKSRC}/HOWTO |${GREP} "\.${ext}$$"`; \
60
		do ${INSTALL_DATA} ${WRKSRC}/HOWTO/$$i ${DOCSDIR}; done
61
.endfor
25
.endif
62
.endif
63
	@${CAT} ${PKGMESSAGE}
26
64
27
.include <bsd.port.mk>
65
.include <bsd.port.mk>
(-)ifhp/README.html (+25 lines)
Line 0 Link Here
1
<html>
2
<title> The FreeBSD Ports Collection (print/ifhp)</title>
3
<head><h1> The FreeBSD Ports Collection ("print/ifhp")</h1> </head> <hr>
4
<body>
5
6
<p>You are now in the directory for the port "print/ifhp" (package name "ifhp-3.5.6").
7
8
<p>This is the one-line description for this port:
9
10
<p><hr><p>
11
ifhp - A highly configurable print filter for LPRng
12
<p><hr>
13
14
<p>Please read the file "<a href="pkg-descr">pkg-descr</a>" for a
15
longer description.
16
17
<p>Go to the <a href="../../README.html">top of the ports tree</a> for
18
a summary on how to use the ports collection.
19
20
<p><hr><p>
21
<a href="../README.html"> Go up one level</a>
22
|
23
<a href="../../README.html"> Go to top of ports tree</a>
24
</body>
25
</html>
(-)ifhp/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (ifhp-3.3.10.tgz) = e3094c65d4acb3b09d79ee08f489ffff
1
MD5 (ifhp-3.5.6.tgz) = ca54cb1008c9d0cbb2aa767a1a4810fb
(-)ifhp/files-pkg-message (+14 lines)
Line 0 Link Here
1
The ifhp configuration file is ifhp.conf
2
3
For further information, have a look at:
4
  DOCSDIR
5
also:
6
  WWW: http://www.lprng.com
7
8
Commercial support is available from Astart Technologies:
9
10
Patrick Powell                 Astart Technologies,
11
papowell@astart.com            9475 Chesapeake Drive, Suite D,
12
Network and System             San Diego, CA 92123
13
  Consulting                   858-874-6543 FAX 858-279-8424 
14
URL:  http://www.astart.com
(-)ifhp/pkg-comment (-1 / +1 lines)
Line 1 Link Here
1
LPRng print filter for text, PostScript, PCL, HP, Xerox, etc printers
1
IFHP - A highly configurable print filter for LPRng
(-)ifhp/pkg-descr (-7 / +8 lines)
Lines 1-7 Link Here
1
The IFHP print filter is a highly configurable and almost universal
1
ifhp is a highly versatile print filter for BSD based print spoolers.
2
print filter for the LPRng print spooler.  It can handle text, PostScript,
2
It can be configured to handle text,  PostScript, PJL, PCL, and
3
PCL, and PJL compatible printers, as well as doing synchronization, resetting,
3
raster printers, supports conversion from one format to another,
4
getting page counts,  end of job detection and other administrative functions.
4
and can be used as a stand-alone print utility.  It is the primary
5
It will handle HP, Tektronics,  Xerox, Qume, and just about any printer that
5
supported print filter for the LPRng print spooler.
6
can accept a connection.  Configuration is done using the /etc/ifhp.conf file
6
7
which can be tailored for your particular printer.
7
WWW: http://www.lprng.com
8
FTP: ftp://ftp.lprng.com
(-)ifhp/pkg-install (+98 lines)
Line 0 Link Here
1
#!/bin/sh
2
PREFIX=/usr
3
SYSCONFDIR=/etc
4
IFHP_CONF=/etc/ifhp.conf
5
MANDIR=/usr/man
6
VERSION=3.5.6
7
#
8
# -- START --
9
# $Id: postinstall.freebsd.sh,v 1.9 2001/12/12 01:54:49 papowell Exp papowell $
10
#
11
#  If you are building a PORT, see the
12
#  DISTRIBUTIONS/Freebsd directory for a complete port
13
#  building package.
14
# 
15
# This is the shell script that does the postinstall
16
# dynamic fixup
17
#  It needs to be massaged with the information for
18
#  various paths.
19
# If you are building a package,  then you do NOT want
20
#  to have this executed - it will put the sample files
21
#  in place.  You need to do this during the postinstall
22
#  step in the package installation.
23
#
24
echo RUNNING postinstall.freebsd.sh MAKEPACKAGE="$MAKEPACKAGE" MAKEINSTALL="$MAKEINSTALL" PREFIX="$PREFIX" cwd `pwd`
25
if [ "$VERBOSE_INSTALL" != "" ] ; then set -x; fi
26
fix () {
27
	v=`echo $1 | sed -e 's/[:;].*//'`;
28
    p=`echo $2 | sed -e 's/:.*//'`; d=`dirname $p`;
29
	if expr "$p" : "\|" >/dev/null ; then
30
		echo "$v is a filter '$p'" 
31
		exit 0
32
	fi
33
    echo "Putting $p in $d, using $v.sample"
34
	if [ ! -d "$d" ] ; then
35
		echo "Directory $d does not exist!"
36
		mkdir -p $d
37
	fi
38
	if [ -f $v.sample ] ; then
39
		if [ $v.sample != $p.sample ] ; then cp $v.sample $p.sample; fi
40
	elif [ -f $v ] ; then
41
		if [ $v != $p.sample ] ; then cp $v $p.sample; fi
42
	else
43
		echo "Do not have $v.sample or $v"
44
	fi
45
	if [ ! -f $p.sample ] ; then
46
		echo "Do not have $p.sample"
47
	else
48
		if [ -f $p ] ; then
49
			date=`date | awk '{ print $6, $2, $3, $4;}' | sed -e 's/  */_/g' `
50
			echo "Saving $p in $p.$date"
51
			mv $p $p.$date
52
		fi
53
		chmod 644 $p.sample
54
		cp $p.sample $p;
55
		chmod 644 $p;
56
	fi;
57
}
58
# we use the /usr/local/etc/rc.d method to start
59
# lpd
60
# we have to take them from one place and put in another
61
if [ "X$MAKEPACKAGE" = "XYES" ] ; then
62
	hold=${DESTDIR}${PREFIX}/etc
63
	echo "Setting up configuration files path for package creation" ${hold}
64
    if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi;
65
    cp ifhp.conf ${hold}/ifhp.conf.sample
66
elif [ X$MAKEINSTALL = XYES ] ; then
67
	# we have the port pre-install operation
68
	if [ "$MANDIR" = "/usr/man" -a ! -d ${DESTDIR}/usr/man ] ; then
69
		# we have the dreaded standard installation
70
		# try to make a symbolic link to 
71
		echo "Creating symbolic link from /usr/man to /usr/share/man"
72
		v=`ln -s ${DESTDIR}/usr/share/man ${DESTDIR}/usr/man`;
73
	fi
74
	hold=${DESTDIR}${PREFIX}/etc
75
	echo "Setting up configuration files path for installation" ${hold}
76
    if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi;
77
    cp ifhp.conf ${hold}/ifhp.conf.sample
78
    fix ifhp.conf "${DESTDIR}${IFHP_CONF}"
79
elif [ "X$2" = "XPOST-INSTALL" ] ; then
80
	# when doing an install from a package we get the file from the package
81
	hold=etc
82
    if [ -f ${hold}/ifhp.conf.sample ] ; then
83
        fix ${hold}/ifhp.conf "${IFHP_CONF}"
84
    else
85
        echo "WARNING: configuration files missing from package! CWD " `pwd`
86
		ls
87
		exit 1
88
    fi
89
elif [ "X$2" = "XPRE-INSTALL" ] ; then
90
	# we have the port pre-install operation
91
	if [ "$MANDIR" = "/usr/man" -a ! -d /usr/man ] ; then
92
		# we have the dreaded standard installation
93
		# try to make a symbolic link to 
94
		echo "Creating symbolic link from /usr/man to /usr/share/man"
95
		v=`ln -s /usr/share/man /usr/man`;
96
	fi
97
fi
98
exit 0
(-)ifhp/pkg-message (+14 lines)
Line 0 Link Here
1
The ifhp configuration file is ifhp.conf
2
3
For further information, have a look at:
4
  /usr/share/doc/ifhp
5
also:
6
  WWW: http://www.lprng.com
7
8
Commercial support is available from Astart Technologies:
9
10
Patrick Powell                 Astart Technologies,
11
papowell@astart.com            9475 Chesapeake Drive, Suite D,
12
Network and System             San Diego, CA 92123
13
  Consulting                   858-874-6543 FAX 858-279-8424 
14
URL:  http://www.astart.com
(-)ifhp/pkg-plist (-38 / +1 lines)
Lines 1-41 Link Here
1
etc/ifhp.conf
2
etc/ifhp.conf.sample
1
etc/ifhp.conf.sample
3
libexec/filters/ifhp
2
libexec/filters/ifhp
4
libexec/filters/textps
3
libexec/filters/textps
5
libexec/filters/accounting.sh
4
libexec/filters/wrapper
6
libexec/filters/psbanner.ps
7
libexec/filters/ofhp
8
libexec/filters/banner
9
share/doc/ifhp/IFHP-HOWTO-1.html
10
share/doc/ifhp/options
11
share/doc/ifhp/fixoptions
12
share/doc/ifhp/Makefile.in
13
share/doc/ifhp/Makefile.bsd.in
14
share/doc/ifhp/Makefile.bsd
15
share/doc/ifhp/Makefile
16
share/doc/ifhp/IFHP-HOWTO.txt
17
share/doc/ifhp/IFHP-HOWTO.tex
18
share/doc/ifhp/IFHP-HOWTO.sgml
19
share/doc/ifhp/IFHP-HOWTO.ps
20
share/doc/ifhp/IFHP-HOWTO.info-4
21
share/doc/ifhp/IFHP-HOWTO.info-3
22
share/doc/ifhp/IFHP-HOWTO.info-2
23
share/doc/ifhp/IFHP-HOWTO.info-1
24
share/doc/ifhp/IFHP-HOWTO.info
25
share/doc/ifhp/IFHP-HOWTO.html
26
share/doc/ifhp/IFHP-HOWTO.dvi
27
share/doc/ifhp/IFHP-HOWTO-9.html
28
share/doc/ifhp/IFHP-HOWTO-8.html
29
share/doc/ifhp/IFHP-HOWTO-7.html
30
share/doc/ifhp/IFHP-HOWTO-6.html
31
share/doc/ifhp/IFHP-HOWTO-5.html
32
share/doc/ifhp/IFHP-HOWTO-4.html
33
share/doc/ifhp/IFHP-HOWTO-3.html
34
share/doc/ifhp/IFHP-HOWTO-2.html
35
share/doc/ifhp/IFHP-HOWTO-12.html
36
share/doc/ifhp/IFHP-HOWTO-11.html
37
share/doc/ifhp/IFHP-HOWTO-10.html
38
share/doc/ifhp/dict
39
share/doc/ifhp/updateversion
40
@dirrm libexec/filters
41
@dirrm share/doc/ifhp

Return to bug 35754