# $Id: Portfile,v 1.1 2004/09/17 00:04:13 mww Exp $

PortSystem 1.0

name			listat
version			1.0
categories		mail textproc
platforms		darwin
maintainers		mww@opendarwin.org
description		generates interesting statistics on mailing list demographics
long_description	professional package to generate interesting statistics on \
					mailing list demographics. 

homepage		http://wordsmith.org/anu/listat/
master_sites	${homepage}
distname		listat
checksums		md5 0a8a9fa805c884c4964b1994a0f231e0
patchfiles		patch-listat \
				patch-listat.conf \
				patch-subdomains.txt

depends_run		bin:perl:perl5.8

worksrcdir		${name}_${version}


configure	{
	reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/listat
}

build		{}

destroot	{
	xinstall -m 755 ${worksrcpath}/listat ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/listat.conf ${destroot}${prefix}/etc
	xinstall -m 755 -d ${destroot}${prefix}/share/listat/
	file copy ${worksrcpath}/flags ${destroot}${prefix}/share/listat/
	xinstall -m 644 -W ${worksrcpath} domains.txt subdomains.txt \
		${destroot}${prefix}/share/listat/
}
