# $Id: Portfile 39330 2008-08-18 09:54:33Z ryandesign@macports.org $

PortSystem 1.0

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

homepage	http://quietsche-entchen.de/cgi-bin/wiki.cgi/proxies/TcpProxy
master_sites	http://quietsche-entchen.de/download/ \
		http://www.sourcefiles.org/System/Daemons/Proxy/
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}
}
