# $Id: Portfile,v 1.2 2005/09/21 18:35:35 mww Exp $

PortSystem 1.0

name		tinyproxy
version		1.6.2
categories	net
platforms	darwin
maintainers	mww@opendarwin.org
description	fast, lightweight HTTP proxy
long_description	tinyproxy is a lightweight HTTP proxy. Designed from \
			the ground up to be fast and yet small, it is an ideal \
			solution for sites where a full-featured HTTP proxy is \
			required, but the system resources required to run a \
			more demanding HTTP proxy are unavailable.

homepage	http://tinyproxy.sourceforge.net/
master_sites	freebsd sourceforge
checksums	md5 08abe93ebd3a229a68e471bb5e013c46
patchfiles	patch-tinyproxy.conf.diff

post-patch	{
	reinplace "s|PREFIX|${prefix}|g" ${worksrcpath}/doc/tinyproxy.conf
}

post-destroot	{
	file mkdir ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/AUTHORS ${worksrcpath}/COPYING \
		${worksrcpath}/doc/filter-howto.txt ${worksrcpath}/INSTALL \
		${worksrcpath}/NEWS ${worksrcpath}/README ${worksrcpath}/TODO \
		${worksrcpath}/doc/RFC_INFO ${worksrcpath}/ChangeLog \
		${destroot}${prefix}/share/doc/${name}
}
