# -*- 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
description Advanced Intrusion Detection Environment
long_description AIDE (Advanced Intrusion Detection Environment) \
is a free replacement for Tripwire. It does the same things as \
the semi-free Tripwire and more. \
It creates a database from the regular expression rules that it \
finds from the config file. Once this database is initialized it \
can be used to verify the integrity of the files. It has several \
message digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that \
are used to check the integrity of the file. More algorithms can \
be added with relative ease. All of the usual file attributes can \
also be checked for inconsistencies. It can read databases from \
older or newer versions. See the manual pages within the distribution \
for further info. There is also a beginning of a manual.
homepage http://aide.sourceforge.net/
master_sites sourceforge:project/aide/aide/${version}
configure.args --mandir=${prefix}/share/man \
--sysconfdir=${prefix}/etc/aide \
--with-mhash --with-zlib \
--with-locale --disable-static
depends_build port:bison port:flex
patchfiles patch-Makefile.in.diff patch-src-Makefile.in.diff
configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]"
reinplace "s|@@LOCALEDIR@@|${prefix}/share/locale|g" \
${worksrcpath}/Makefile.in ${worksrcpath}/src/Makefile.in
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -d ${destroot}${prefix}/share/examples/${name}
xinstall -d ${destroot}${prefix}/etc/${name}
xinstall -d ${destroot}${prefix}/libexec/${name}
xinstall -d ${destroot}${prefix}/Library/LaunchDaemons
xinstall -d ${destroot}${prefix}/var/lib/aide
xinstall -d ${destroot}${prefix}/var/log/aide
copy ${filespath}/aide.conf ${destroot}${prefix}/share/examples/${name}/
reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/share/examples/${name}/aide.conf
copy ${worksrcpath}/contrib ${destroot}${prefix}/share/examples/${name}/
copy ${worksrcpath}/doc/manual.html ${destroot}${prefix}/share/doc/${name}/
copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/
xinstall -m 755 ${filespath}/aide-check.cron ${destroot}${prefix}/libexec/${name}/
reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/libexec/${name}/aide-check.cron
copy ${filespath}/org.macports.aide.plist ${destroot}${prefix}/Library/LaunchDaemons/
reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/Library/LaunchDaemons/org.macports.aide.plist
copy ${filespath}/mp-aide.conf ${destroot}${prefix}/share/examples/${name}/
reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/share/examples/${name}/mp-aide.conf
destroot.keepdirs ${destroot}${prefix}/var/lib/aide \
${destroot}${prefix}/var/log/aide ${destroot}${prefix}/etc/${name}
if ![file exists ${prefix}/etc/aide/aide.conf ] {
copy ${prefix}/share/examples/${name}/aide.conf ${prefix}/etc/aide/aide.conf
# darwin doesn't have or need off64_t and friends
configure.args-append --disable-lfs
If not existing, a default config has been copied to
${prefix}/etc/aide/aide.conf
Review it, especially adjust <myuser> to your environment.
It seems wildcard or @@var are not working there, at least on stable.
A default scheduled task has been set up once a day in