# $Id: Portfile 31911 2007-12-11 21:07:04Z mww@macports.org $

PortSystem 1.0

name			pstree
version			2.32
categories		sysutils
maintainers		mww
description		pstree shows the output of the ps command as a tree
platforms		darwin freebsd
long_description	${description}

homepage		http://freshmeat.net/projects/pstree/
master_sites		ftp://ftp.thp.uni-duisburg.de/pub/source/ \
			http://fresh.t-systems-sfr.com/unix/src/misc/
checksums		sha1 78fd42e10c678290e50f169f0afb73f3a5cabca4

pre-extract {
	file mkdir ${worksrcpath}
	xinstall -m 755 ${filespath}/configure ${worksrcpath}
}
extract.dir	${worksrcpath}

destroot	{
	xinstall -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
	set docdir ${prefix}/share/doc/${name}-${version}
	xinstall -d ${destroot}${docdir}
	xinstall -m 0644 ${worksrcpath}/README \
		${destroot}${docdir}
}

livecheck.check	regex
livecheck.url	ftp://ftp.thp.uni-duisburg.de/pub/source/
livecheck.regex	pstree.tar.gz -> pstree-(\[0-9\]+\\.\[0-9\]+)

