1995-05-22 00:37:50 +02:00
|
|
|
# ports collection makefile for: hylafax
|
1997-05-29 08:49:26 +02:00
|
|
|
# Date created: 19 Apr 1997
|
1999-01-21 12:12:20 +01:00
|
|
|
# Whom: ports@freebsd.org
|
1997-05-29 08:49:26 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-10-27 23:05:16 +01:00
|
|
|
#
|
1995-05-22 00:37:50 +02:00
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
PORTNAME= hylafax
|
2003-07-04 15:13:50 +02:00
|
|
|
PORTVERSION= 4.1.6
|
1996-11-17 04:01:21 +01:00
|
|
|
CATEGORIES= comms
|
2000-11-07 22:56:09 +01:00
|
|
|
MASTER_SITES= ftp://ftp.hylafax.org/source/
|
1997-05-29 08:49:26 +02:00
|
|
|
|
2003-07-04 15:13:50 +02:00
|
|
|
MAINTAINER= tdv94ped@cs.umu.se
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Fax software
|
1999-03-12 16:52:27 +01:00
|
|
|
|
2002-08-13 01:16:00 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/afm/Courier:${PORTSDIR}/print/afm
|
2003-07-04 15:13:50 +02:00
|
|
|
|
1997-05-29 08:49:26 +02:00
|
|
|
# no dependency on ghostscript because we don't know which
|
|
|
|
# version the user prefers
|
1999-09-07 12:45:31 +02:00
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
1998-09-15 13:46:15 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
1997-05-29 08:49:26 +02:00
|
|
|
|
1999-05-09 18:28:08 +02:00
|
|
|
DIST_SUBDIR= hylafax
|
|
|
|
|
1997-05-29 08:49:26 +02:00
|
|
|
CONFIGURE_ARGS= --with-INSTALL="" \
|
2000-02-24 03:04:18 +01:00
|
|
|
--with-LIBTIFF="-L${LOCALBASE}/lib -ltiff -ljpeg" \
|
2000-07-07 21:09:19 +02:00
|
|
|
--with-ZLIB=no --with-LIBZ=-lz --with-ZLIBINC=none \
|
|
|
|
--with-TIFFINC="${LOCALBASE}/include" \
|
2001-10-17 01:51:18 +02:00
|
|
|
--with-GCOPTS=" " --with-GCXXOPTS=" " \
|
2002-08-15 07:05:26 +02:00
|
|
|
--with-REGEX=no --with-LIBREGEX='' --with-REGEXINC=none \
|
2003-07-04 15:13:50 +02:00
|
|
|
--with-DIR_HTML="${DOCSDIR}"
|
|
|
|
|
2002-08-13 01:16:00 +02:00
|
|
|
# Defaults to "North American Letter". Use "ISO A4" for A4.
|
|
|
|
.ifdef PAGESIZE
|
|
|
|
CONFIGURE_ARGS+=--with-PAGESIZE="${PAGESIZE}"
|
|
|
|
.endif
|
2003-07-04 15:13:50 +02:00
|
|
|
|
2002-08-13 01:16:00 +02:00
|
|
|
.if defined(PACKAGE_BUILDING) || defined(BATCH)
|
2001-10-17 01:51:18 +02:00
|
|
|
CONFIGURE_ARGS+=--nointeractive
|
|
|
|
.endif
|
|
|
|
|
2003-07-04 15:13:50 +02:00
|
|
|
MAKE_ARGS+= OPTIMIZER="" -EOPTIMIZER
|
1996-11-17 04:01:21 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2000-07-07 21:09:19 +02:00
|
|
|
CONFIGURE_ENV= ENVOPTS="${CFLAGS}"
|
1999-05-09 18:28:08 +02:00
|
|
|
|
2001-10-17 01:51:18 +02:00
|
|
|
MAN1= hylafax-client.1 faxalter.1 faxcover.1 faxmail.1 \
|
|
|
|
faxrm.1 faxstat.1 sendfax.1 \
|
1997-05-29 08:49:26 +02:00
|
|
|
sendpage.1 sgi2fax.1 textfmt.1
|
2001-02-14 06:43:00 +01:00
|
|
|
MAN5= pagesizes.5f typerules.5f hosts.hfaxd.5f xferfaxlog.5f \
|
2001-10-17 01:51:18 +02:00
|
|
|
cid.5f doneq.5f hylafax-config.5f destctrls.5f dialrules.5f \
|
|
|
|
hylafax-info.5f hylafax-log.5f pagermap.5f recvq.5f sendq.5f \
|
|
|
|
hylafax-server.5f hylafax-shutdown.5f status.5f tsi.5f
|
2001-02-14 06:43:00 +01:00
|
|
|
MAN8= cqtest.8c choptest.8c dialtest.8c faxabort.8c faxaddmodem.8c \
|
Update to version 4.1.b2, the latest stable release (dispite the "beta" flag),
which officially fixes the setuid security exploit by the vendors.
Additionally, from the PR:
* adds in distribution patches to allow it to interoperate
with libtiff-3.5.5 (the current version in the ports tree),
and replace an original FreeBSD patch.
* includes security patches (replacements of 'strcpy' and
'sprintf', primarily), mostly based on patches originally
submitted by Alex Langer [1] for 4.0pl2 and not yet commited,
although some new work was done too.
[1] I don't think, that these were my patches but those submitted by
John Holland <john@zoner.org> in PR 19180.
* Fixes some issues with the configure/setup scripts introduced
since the previous version.
* Additionally, original FreeBSD patches from 4.0pl2 were
merged in where they were not addressed by anything else.
(except the I18N patch, sorry).
I removed the FORBIDDEN line since there are at least no obvious security
concerns left.
PR: 19237
Submitted by: Andy Sparrow <andy@geek4food.org>
2000-06-27 13:59:36 +02:00
|
|
|
faxadduser.8c faxanswer.8c faxconfig.8c faxdeluser.8c faxmodem.8c \
|
2003-01-14 13:49:57 +01:00
|
|
|
faxstate.8c faxcron.8c faxgetty.8c faxinfo.8c faxlock.8c faxq.8c \
|
2003-01-14 05:33:10 +01:00
|
|
|
faxqclean.8c faxquit.8c faxrcvd.8c faxsend.8c faxsetup.8c \
|
|
|
|
faxwatch.8c hfaxd.8c mkcover.8c notify.8c pagesend.8c pdf2fax.8c \
|
|
|
|
pollrcvd.8c ps2fax.8c recvstats.8c \
|
Update to version 4.1.b2, the latest stable release (dispite the "beta" flag),
which officially fixes the setuid security exploit by the vendors.
Additionally, from the PR:
* adds in distribution patches to allow it to interoperate
with libtiff-3.5.5 (the current version in the ports tree),
and replace an original FreeBSD patch.
* includes security patches (replacements of 'strcpy' and
'sprintf', primarily), mostly based on patches originally
submitted by Alex Langer [1] for 4.0pl2 and not yet commited,
although some new work was done too.
[1] I don't think, that these were my patches but those submitted by
John Holland <john@zoner.org> in PR 19180.
* Fixes some issues with the configure/setup scripts introduced
since the previous version.
* Additionally, original FreeBSD patches from 4.0pl2 were
merged in where they were not addressed by anything else.
(except the I18N patch, sorry).
I removed the FORBIDDEN line since there are at least no obvious security
concerns left.
PR: 19237
Submitted by: Andy Sparrow <andy@geek4food.org>
2000-06-27 13:59:36 +02:00
|
|
|
tagtest.8c tiff2fax.8c tiffcheck.8c tsitest.8c wedged.8c \
|
|
|
|
xferfaxstats.8c
|
1997-05-29 08:49:26 +02:00
|
|
|
|
2001-02-14 06:43:00 +01:00
|
|
|
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
|
1997-05-29 08:49:26 +02:00
|
|
|
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
|
|
|
|
|
2000-07-07 21:09:19 +02:00
|
|
|
post-extract:
|
|
|
|
${RM} -rf ${WRKSRC}/zlib ${WRKSRC}/regex
|
|
|
|
|
2003-07-04 15:13:50 +02:00
|
|
|
pre-install:
|
|
|
|
PLIST_SUB= SPOOL="`${GREP} SPOOL ${WRKSRC}/defs | ${CUT} -c10-`"
|
|
|
|
|
1995-05-22 00:37:50 +02:00
|
|
|
post-install:
|
1999-08-22 21:01:07 +02:00
|
|
|
${CHOWN} uucp ${SUID_EXES}
|
|
|
|
${CHMOD} 4555 ${SUID_EXES}
|
1997-05-29 08:49:26 +02:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/hylafax.sh.sample ]; then \
|
2001-10-17 01:51:18 +02:00
|
|
|
${SED} 's^/usr/local^${PREFIX}^g' \
|
|
|
|
< ${FILESDIR}/hylafax.sh.sample \
|
|
|
|
> ${PREFIX}/etc/rc.d/hylafax.sh.sample; \
|
1997-05-29 08:49:26 +02:00
|
|
|
fi
|
2001-10-17 01:51:18 +02:00
|
|
|
@${SED} 's^/usr/local^${PREFIX}^g' < ${PKGMESSAGE}
|
1995-05-22 00:37:50 +02:00
|
|
|
|
2001-10-17 17:43:08 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${LOCALBASE} != /usr/local
|
2002-09-02 23:24:00 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
2001-10-17 17:43:08 +02:00
|
|
|
post-patch:
|
2002-06-27 15:32:14 +02:00
|
|
|
${REINPLACE_CMD} -e 's^/usr/local^${LOCALBASE}^g' \
|
2002-11-19 00:07:37 +01:00
|
|
|
`${FIND} ${WRKSRC} -type f -print0 | \
|
|
|
|
${XARGS} -0 ${GREP} -F -l --mmap /usr/local`
|
2001-10-17 17:43:08 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|