# $Id: Portfile,v 1.1 2004/11/03 20:09:16 mww Exp $

PortSystem 1.0

name			polipo
version			0.9.6
categories		www
platforms		darwin
maintainers		mww@opendarwin.org
description		small and fast web caching proxy
long_description	Polipo is a small and fast caching web proxy designed to \
				be used by one person or a small group of people.

homepage		http://www.pps.jussieu.fr/~jch/software/polipo/
master_sites	http://www.pps.jussieu.fr/~jch/software/files/
checksums		md5 8da2a61a1bfd03eb530f38c4172cecb3

use_configure	no

build.args		PREFIX=${prefix} \
				LOCAL_ROOT=${prefix}/share/polipo/www \
				DISK_CACHE_ROOT=${prefix}/var/cache/polipo

destroot.destdir	PREFIX=${prefix} \
				TARGET=${destroot} \
				MANDIR=${prefix}/share/man \
				INFODIR=${prefix}/share/info \
				DISK_CACHE_ROOT=${prefix}/var/cache/polipo \
				LOCAL_ROOT=${prefix}/share/polipo/www

post-destroot	{
	xinstall -m 644 ${worksrcpath}/config.sample \
		${destroot}${prefix}/etc/polipo.conf.sample
	xinstall -m 755 -d ${destroot}${prefix}/var/cache/polipo
	system "touch ${destroot}${prefix}/var/cache/polipo/.turd"
}
