1998-04-18 08:57:44 +00:00
# ex:ts=8
1996-06-15 06:55:51 +00:00
# New ports collection makefile for: fwtk
# Version required: 1.3
# Date created: 15th June 1996
# Whom: gpalmer
#
1999-08-31 01:53:22 +00:00
# $FreeBSD$
1996-06-15 06:55:51 +00:00
#
1998-04-18 08:57:44 +00:00
DISTNAME = fwtk2.1
PKGNAME = fwtk-2.1
1996-11-13 18:15:14 +00:00
CATEGORIES = security net
1998-04-18 08:57:44 +00:00
DISTFILES = fwtk2.1${ EXTRACT_SUFX } fwtk-doc-only${ EXTRACT_SUFX }
1997-03-07 12:33:01 +00:00
EXTRACT_SUFX = .tar.Z
1996-06-15 06:55:51 +00:00
1997-08-08 01:55:22 +00:00
MAINTAINER = obrien@FreeBSD.org
1997-03-07 12:33:01 +00:00
RESTRICTED = "No form of redistribution is allowed"
1996-11-13 18:15:14 +00:00
WRKSRC = ${ WRKDIR } /fwtk
1996-06-15 06:55:51 +00:00
HAS_CONFIGURE = YES
CONFIGURE_SCRIPT = fixmake
MAN3 = auth.3
MAN5 = netperm-table.5
1996-11-13 18:15:14 +00:00
MAN8 = authmgr.8 authsrv.8 ftp-gw.8 http-gw.8 login-sh.8 netacl.8 \
1999-06-23 06:26:55 +00:00
plug-gw.8 rlogin-gw.8 smap.8 smapd.8 tn-gw.8
1996-06-15 06:55:51 +00: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 06:26:55 +00:00
tn-gw
. i f ! d e f i n e d ( N O _ X 1 1 )
LIBEXEC_BINS += x-gw
MAN8 += x-gw.8
. e n d i f
1996-06-15 06:55:51 +00:00
1998-12-31 22:15:37 +00: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 } )
IGNORE = 'Please read ftp://ftp.tis.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
1996-09-19 09:58:47 +00:00
1997-03-07 12:33:01 +00:00
pre-configure :
1998-04-18 08:57:44 +00: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 12:33:01 +00:00
1996-06-15 06:55:51 +00:00
post-install :
( cd ${ PREFIX } /libexec ; strip ${ SBIN_BINS } ${ LIBEXEC_BINS } )
1998-04-18 08:57:44 +00:00
( cd ${ PREFIX } /libexec ; ${ MV } ${ SBIN_BINS } mqueue ../sbin )
1997-03-07 12:33:01 +00:00
${ MKDIR } ${ PREFIX } /share/doc/fwtk
${ INSTALL_MAN } ${ WRKSRC } /LICENSE ${ PREFIX } /share/doc/fwtk
( cd ${ WRKSRC } /doc/man ; ${ INSTALL_MAN } ${ MAN3 } ${ PREFIX } /man/man3 )
( cd ${ WRKSRC } /doc/man ; ${ INSTALL_MAN } ${ MAN5 } ${ PREFIX } /man/man5 )
( cd ${ WRKSRC } /doc/man ; ${ INSTALL_MAN } ${ MAN8 } ${ PREFIX } /man/man8 )
1996-06-15 06:55:51 +00:00
. i f ! d e f i n e d ( N O P O R T D O C S )
1997-03-07 12:33:01 +00:00
( cd ${ WRKSRC } /doc ; ${ INSTALL_MAN } ${ DOCS } ${ PREFIX } /share/doc/fwtk )
1996-06-15 06:55:51 +00:00
. e n d i f
1998-12-31 22:15:37 +00:00
. i n c l u d e < b s d . p o r t . p o s t . m k >