# $Id: Portfile,v 1.1 2004/05/12 11:40:56 mww Exp $

PortSystem 1.0

name		fs-check
version		0.2
categories	sysutils
platforms	darwin
maintainers	mww@opendarwin.org
description	checks filesystem if they are getting too full
long_description	fs-check checks filesystem sizes to see if they are \
			getting too full. It uses a configuration file that \
			specifies the filesystems to check, email contacts, \
			trigger thresholds (percentage or amount used/unused), \
			and a report program to run.

homepage	http://fs-check.sourceforge.net/
master_sites	sourceforge
checksums	md5 fe5e17937742df8828872426cdb2d156

depends_lib	bin:perl:perl5.8

configure.args	--mandir=${prefix}/share/man
post-configure	{
	reinplace "s|/var/adm/fs-check.cf|${prefix}/etc/fs-check.conf|g" \
		${worksrcpath}/fs-check
	reinplace "s|/var/run|${prefix}/var/run|g" ${worksrcpath}/fs-check
}

test.run	yes
test.target	check

post-destroot	{
	xinstall -m 644 ${worksrcpath}/sample/fs-check-sample.cnf \
		${destroot}${prefix}/etc/fs-check.conf.sample
}
