summaryrefslogtreecommitdiffstats
path: root/security/fwtk/Makefile
blob: 39451831be79ce2e03c59dfbe156d49c38d96e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# ex:ts=8
# New ports collection makefile for:    fwtk
# Version required:                     1.3
# Date created:                         15th June 1996
# Whom:                                 gpalmer
#
# $Id: Makefile,v 1.10 1997/08/08 01:55:22 obrien Exp $
#

DISTNAME=	fwtk2.1
PKGNAME=	fwtk-2.1
CATEGORIES=	security net
DISTFILES=	fwtk2.1${EXTRACT_SUFX} fwtk-doc-only${EXTRACT_SUFX}
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	obrien@FreeBSD.org

RESTRICTED=	"No form of redistribution is allowed"

WRKSRC=		${WRKDIR}/fwtk
HAS_CONFIGURE=	YES
CONFIGURE_SCRIPT=	fixmake

MAN3=		auth.3
MAN5=		netperm-table.5
MAN8=		authmgr.8 authsrv.8 ftp-gw.8 http-gw.8 login-sh.8 netacl.8 \
		plug-gw.8 rlogin-gw.8 smap.8 smapd.8 tn-gw.8 x-gw.8
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 \
		tn-gw x-gw

do-fetch:
	@if [ ! -f ${DISTDIR}/fwtk2.1${EXTRACT_SUFX} ]; then \
	  ${ECHO} ""; \
	  ${ECHO} "Please read ftp://ftp.tis.com/pub/firewalls/toolkit/README"; \
	  ${ECHO} "for details of how to obtain the FTWK source.  Put the files"; \
	  ${ECHO} "fwtk2.1${EXTRACT_SUFX} and fwtk-doc-only${EXTRACT_SUFX} in the directory"; \
	  ${ECHO} "${DISTDIR} and run make again"; \
	  ${ECHO} ""; \
	  exit 1;\
	fi

pre-configure:
	@${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

post-install:
	( cd ${PREFIX}/libexec ; strip ${SBIN_BINS} ${LIBEXEC_BINS} )
	( cd ${PREFIX}/libexec ; ${MV} ${SBIN_BINS} mqueue ../sbin )
	${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 )
.if !defined(NOPORTDOCS)
	( cd ${WRKSRC}/doc ; ${INSTALL_MAN} ${DOCS} ${PREFIX}/share/doc/fwtk )
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud