# New ports collection makefile for:	transproxy
# Version required:		0.4
# Date created:			Fri Mar 27 21:24:13 WST 1998
# Whom:				Peter Wemm <peter@netplex.com.au>
#
# $FreeBSD$
#

DISTNAME=	transproxy-0.4
CATEGORIES=	www net
MASTER_SITES=	ftp://ftp.nlc.net.au/pub/unix/transproxy/
EXTRACT_SUFX=	.tgz

MAINTAINER=	peter@FreeBSD.ORG

ALL_TARGET=	tproxy

# This has been tested with FreeBSD-current. It also works on FreeBSD-2.2.x
# with the ipfilter package installed. However you must manually copy
# ip_compat.h, ip_nat.h and ip_proxy.h to the /usr/include/netinet directory.
# See http://coombs.anu.edu.au/~avalon/ for the ipfilter package.
.if ! (exists(/usr/include/netinet/ip_compat.h) && exists(/usr/include/netinet/ip_fil.h) && exists(/usr/include/netinet/ip_nat.h))
BROKEN=		"transproxy requires ipfilter, available in 3.0 or later"
.endif

do-install:
	cd ${WRKSRC}; ${INSTALL_PROGRAM} ${WRKSRC}/tproxy ${PREFIX}/sbin

.include <bsd.port.mk>
