# $Id: Portfile 35207 2008-03-20 17:16:27Z markd@macports.org $

PortSystem        1.0

name              base
version           1.3.9
categories        security
maintainers       markd
description       Basic Analysis and Security Engine - Snort web frontend
long_description  Basic Analysis and Security Engine - based on the ACID \
                  project. It provides a web front-end to query and analyze \
                  the alerts from SNORT.
platforms         darwin
homepage          http://secureideas.sourceforge.net/
master_sites      sourceforge:secureideas
checksums         md5 66e50f45c6bbf6b0cb2913b8c67f50d6
depends_run       port:gd2 \
                  port:adodb

use_configure     no
build             {}

set basedir ${prefix}/share/${name}
set docsdir ${prefix}/share/doc/${name}

destroot {
    xinstall -m 755 -d ${destroot}${basedir}
    xinstall -m 755 -d ${destroot}${docsdir}
    system "cd ${worksrcpath} && cp -R . ${destroot}${basedir}"
    system "cd ${worksrcpath}/docs/ && cp -R . ${destroot}${docsdir}"
}

post-activate {
ui_msg "\n
Make sure to customize ${prefix}/share/base/base_conf.php.dist
\n"
}
