# -*- 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            yafic
version         1.2.2
revision        4
categories      sysutils
maintainers     nomaintainer
platforms       darwin
license         BSD

description     Yet Another File Integrity Checker
long_description \
    yafic is a file integrity checker, similar to programs like         \
    Tripwire, integrit, and AIDE.

homepage        https://www.saddi.com/software/yafic/
master_sites    sourceforge

checksums       sha1    0592df76f87a6b5b972c1e8c1c08c771e3ffdf7f \
                rmd160  976cb8a75bb9cdf75961a60929c5e778049a97b4 \
                sha256  ceec9e5b12048f4630c8273bab04ad149713b40b94067fc80443bcbd3132cb03 \
                size    96893

configure.args  --mandir=${prefix}/share/man

depends_lib     path:lib/libssl.dylib:openssl

# patch from FreeBSD https://svnweb.freebsd.org/ports/head/security/yafic/files/patch-crypto.c?view=markup
patchfiles      patch-crypto.c.diff

post-destroot {
    xinstall ${worksrcpath}/yafic.conf.sample ${destroot}${prefix}/etc
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall ${worksrcpath}/ChangeLog ${worksrcpath}/INSTALL \
        ${worksrcpath}/README ${worksrcpath}/TODO \
        ${destroot}${prefix}/share/doc/${name}
}
