# $Id: Portfile,v 1.1 2004/12/31 17:46:16 mww Exp $

PortSystem 1.0

name			http-replicator
version			3.0
categories		net www
platforms		darwin
maintainers		mww@opendarwin.org
description		replicating HTTP proxy server
long_description	Replicator is a replicating HTTP proxy server. Files that \
				are downloaded through the proxy are transparently stored in a \
				private cache, so an exact copy of accessed remote files is \
				created on the local machine. It is, in essence, a general \
				purpose proxy server, but especially suited for maintaining a \
				cache of DarwinPorts, FreeBSD or Fink packages.

homepage		http://gertjan.freezope.org/replicator/
master_sites	${homepage}
checksums		md5 7d8d69175a5dc3d470273b1e508a27f3

depends_run		bin:python:python24

configure	{
	cd ${worksrcpath}
	reinplace "s| /usr/bin/python|/usr/bin/env pyhton|g" http-replicator \
		http-replicator_maintenance
}

build			{}

destroot	{
	xinstall -m 755 -W ${worksrcpath} http-replicator \
		http-replicator_maintenance ${destroot}${prefix}/sbin
	xinstall -m 644 -W ${worksrcpath} http-replicator.1 \
		http-replicator_maintenance.1 ${destroot}${prefix}/share/man/man1
}
