Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name fs-check
version 0.4
categories sysutils
platforms darwin
maintainers nomaintainer@macports.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 d231181e5951d47afce181670bf724e0

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
}