# -*- 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            prelude-lml
version         0.9.12.2
revision        1
categories      security
license         GPL-3+
maintainers     googlemail.com:usx303 \
                openmaintainer

description     Prelude Network Intrusion Detection System Log Monitoring Lackey

long_description \
        Prelude is an Hybrid IDS framework that relies on the IDMEF (Intrusion \
        Detection Message Exchange Format) IETF standard.  It enables security \
        sensors such as Snort, honeyd, Nessus Vulnerability Scanner, Samhain, \
        over 30 types of system logs, and many others to verify an attack \
        by performing automatic correlation between events.

homepage        http://www.prelude-ids.org/

master_sites    ${homepage}download/releases/prelude-lml/

platforms       darwin
build.type      gnu

checksums       md5 f13df3fdee98f6ceb5519d1a71cdf87f \
                sha1 32ce278d51ea6def910f213d13901ab01c6f0ad6 \
                rmd160 44e8e803bd9a46fabc5748ee9621a55ed475d863

configure.args  --mandir=${prefix}/share/man \
                --with-html-dir=${prefix}/share/doc

destroot.keepdirs \
        ${destroot}${prefix}/var/lib/prelude-lml

depends_lib     port:pcre \
                port:libprelude
post-destroot {
        reinplace "s|= /var/log/messages|= /var/log/system.log|g" ${destroot}${prefix}/etc/prelude-lml/prelude-lml.conf
}