# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                fs-check
version             0.9
categories          sysutils
license             GPL-2+
supported_archs     noarch
maintainers         nomaintainer
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:project/fs-check/fs-check/${version}/

checksums           rmd160  bb496efe6527b4d1473f30a341066e65eb596040 \
                    sha256  0b57f365bd87812f409e8fee59dd8f9247f2e5e786eaa0888bfe296bab401ec3

depends_lib         bin:perl:perl5

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
}
