1998-04-18 04:57:44 -04:00
# ex:ts=8
2000-02-12 22:25:05 -05:00
# Ports collection makefile for: fwtk
# Date created: 15th June 1996
# Whom: gpalmer
1996-06-15 02:55:51 -04:00
#
1999-08-30 21:53:22 -04:00
# $FreeBSD$
1996-06-15 02:55:51 -04:00
#
2000-04-09 14:34:06 -04:00
PORTNAME = fwtk
2000-04-21 04:19:33 -04:00
PORTVERSION = 2.1
2000-06-01 23:18:54 -04:00
CATEGORIES = security
2000-04-09 14:34:06 -04:00
DISTNAME = ${ PORTNAME } ${ PORTVERSION }
1997-03-07 07:33:01 -05:00
EXTRACT_SUFX = .tar.Z
2000-04-21 04:19:33 -04:00
DISTFILES = fwtk2.1${ EXTRACT_SUFX } fwtk-doc-only${ EXTRACT_SUFX }
1996-06-15 02:55:51 -04:00
2002-03-30 20:00:39 -05:00
. i f d e f i n e d ( W I T H _ J U M B O _ P A T C H )
PATCHFILES = trg-jumbo-20001114.diff
PATCH_SITES = http://www.fwtk.org/fwtk/patches/
PATCH_DIST_STRIP = -p1
. e n d i f
MAINTAINER = a.go@wish.net
1997-08-07 21:55:22 -04:00
1997-03-07 07:33:01 -05:00
RESTRICTED = "No form of redistribution is allowed"
1996-11-13 13:15:14 -05:00
WRKSRC = ${ WRKDIR } /fwtk
1996-06-15 02:55:51 -04:00
HAS_CONFIGURE = YES
CONFIGURE_SCRIPT = fixmake
MAN3 = auth.3
MAN5 = netperm-table.5
1996-11-13 13:15:14 -05:00
MAN8 = authmgr.8 authsrv.8 ftp-gw.8 http-gw.8 login-sh.8 netacl.8 \
1999-06-23 02:26:55 -04:00
plug-gw.8 rlogin-gw.8 smap.8 smapd.8 tn-gw.8
1996-06-15 02:55:51 -04:00
DOCS = sample-report.txt manpages.ps admin_guide.ps user_guide.ps \
overview.ps presentation.ps
SBIN_BINS = authdump authload authmgr
LIBEXEC_BINS = authsrv ftp-gw http-gw netacl plug-gw rlogin-gw smap smapd \
1999-06-23 02:26:55 -04:00
tn-gw
2000-04-16 20:19:02 -04:00
. i f ! d e f i n e d ( W I T H O U T _ X 1 1 )
1999-06-23 02:26:55 -04:00
LIBEXEC_BINS += x-gw
MAN8 += x-gw.8
. e n d i f
1996-06-15 02:55:51 -04:00
1998-12-31 17:15:37 -05:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ! e x i s t s ( $ { D I S T D I R } / f w t k 2 . 1 $ { E X T R A C T _ S U F X } ) \
&& !exists( ${ DISTDIR } /fwtk-doc-only${ EXTRACT_SUFX } )
2002-03-30 20:00:39 -05:00
IGNORE = 'Please read ftp://ftp.tislabs.com/pub/firewalls/toolkit/README for details of how to obtain the FTWK source. Put the files fwtk2.1${EXTRACT_SUFX} and fwtk-doc-only${EXTRACT_SUFX} into the directory ${DISTDIR} and run make again'
. e n d i f
pre-patch :
. i f ! d e f i n e d ( W I T H _ J U M B O _ P A T C H )
@${ ECHO } "*****************************************************************************"
@${ ECHO } "**** To enable the \"Jumbo\" patch kit, run 'make -DWITH_JUMBO_PATCH'"
@${ ECHO } "**** For information about patches, read http://www.fwtk.org/fwtk/patches/"
@${ ECHO } "*****************************************************************************"
1998-12-31 17:15:37 -05:00
. e n d i f
1996-09-19 05:58:47 -04:00
1997-03-07 07:33:01 -05:00
pre-configure :
1998-04-18 04:57:44 -04:00
@${ MV } ${ WRKSRC } /Makefile.config ${ WRKSRC } /Makefile.config.in
@${ SED } -e s:%%FWTKSRCDIR%%:${ WRKSRC } : \
-e s:%%BSD_PREFIX%%:${ PREFIX } : \
${ WRKSRC } /Makefile.config.in > ${ WRKSRC } /Makefile.config
@${ MV } ${ WRKSRC } /firewall.h ${ WRKSRC } /firewall.h.in
@${ SED } -e s:%%FWTKSRCDIR%%:${ WRKSRC } : \
-e s:%%BSD_PREFIX%%:${ PREFIX } : \
${ WRKSRC } /firewall.h.in > ${ WRKSRC } /firewall.h
1997-03-07 07:33:01 -05:00
1996-06-15 02:55:51 -04:00
post-install :
2000-02-12 22:25:05 -05:00
cd ${ PREFIX } /libexec ; strip ${ SBIN_BINS } ${ LIBEXEC_BINS }
cd ${ PREFIX } /libexec ; ${ MV } ${ SBIN_BINS } mqueue ../sbin
2002-03-30 20:00:39 -05:00
${ INSTALL_DATA } ${ WRKSRC } /config/netperm-table \
${ PREFIX } /etc/netperm-table.sample
2002-03-28 18:04:51 -05:00
if [ ! -f ${ PREFIX } /etc/netperm-table ] ; then \
${ INSTALL_DATA } ${ WRKSRC } /config/netperm-table \
${ PREFIX } /etc/netperm-table; \
fi
2002-03-30 20:00:39 -05:00
. f o r f i l e i n $ { L I B E X E C _ B I N S }
@${ RM } -f ${ PREFIX } /libexec/${ file } .old
. e n d f o r
2001-12-23 21:17:17 -05:00
. f o r m a n i n $ { M A N 3 }
@${ INSTALL_MAN } ${ WRKSRC } /doc/man/${ man } ${ PREFIX } /man/man3
. e n d f o r
. f o r m a n i n $ { M A N 5 }
@${ INSTALL_MAN } ${ WRKSRC } /doc/man/${ man } ${ PREFIX } /man/man5
. e n d f o r
. f o r m a n i n $ { M A N 8 }
@${ INSTALL_MAN } ${ WRKSRC } /doc/man/${ man } ${ PREFIX } /man/man8
. e n d f o r
1996-06-15 02:55:51 -04:00
. i f ! d e f i n e d ( N O P O R T D O C S )
2001-12-23 21:17:17 -05:00
@${ MKDIR } ${ DOCSDIR }
@${ INSTALL_DATA } ${ WRKSRC } /LICENSE ${ DOCSDIR }
. f o r f i l e s i n $ { D O C S }
@${ INSTALL_DATA } ${ WRKSRC } /doc/${ files } ${ DOCSDIR }
. e n d f o r
1996-06-15 02:55:51 -04:00
. e n d i f
1998-12-31 17:15:37 -05:00
. i n c l u d e < b s d . p o r t . p o s t . m k >