# $Id: Portfile,v 1.1 2004/05/27 15:17:28 mww Exp $

PortSystem 1.0

name		tcpproxy
version		1.1.9
categories	net
platforms	darwin
maintainers	mww@opendarwin.org
description	tcpproxy is a proxy (tunnel, redirector) for TCP/IP protocols
long_description	${description}

homepage	http://quietsche-entchen.de/cgi-bin/wiki.cgi/software/tcpproxy.yawk
master_sites	http://quietsche-entchen.de/cgi-bin/wiki.cgi/download/
checksums	md5 7ae45da0d1b263bc507be97e35dbb15b
patchfiles	patch-tcpproxy.c.diff

configure	{
	reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/tcpproxy.c
}

destroot	{
	xinstall -s -m 755 ${worksrcpath}/tcpproxy ${destroot}${prefix}/sbin
	xinstall -m 644 ${worksrcpath}/tcpproxy.1 \
		${destroot}${prefix}/share/man/man1
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} LICENSE README \
		${destroot}${prefix}/share/doc/${name}
}
