# -*- 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            libpreludedb
version         0.9.15.1
revision        1
categories      security
license         GPL-2+
maintainers     nomaintainer

description     Prelude Universal SIM - database wrapper

long_description \
                Prelude is a Universal "Security Information Management" (SIM) system. \
                Prelude collects, normalizes, sorts, aggregates, correlates and \
                reports all security-related events independently of the product brand \
                or license giving rise to such events.

homepage        http://www.prelude-ids.org/
master_sites    ${homepage}/download/releases/libpreludedb/

platforms       darwin
build.type      gnu

checksums       md5 792b6ce058e4b9db44279409dbc662a3\
                sha1 dce8c3de03c186796e66c965da9be7af91125d3a\
                rmd160 cecb601fd04fcbbab03bb9d49a15a0f80adcd92d


configure.args  --without-mysql \
                --without-sqlite \
                --without-pgsql \
                --without-perl \
                --without-python

depends_lib     port:libprelude

#destroot.keepdirs \
#                ${destroot}${prefix}/var/spool/prelude \
#                ${destroot}${prefix}/etc/prelude/profile

#post-destroot { file delete -force "${destroot}${prefix}/lib/charset.alias" }

default_variants \
                +sqlite3

variant python27 description {python2.7 bindings} {
        configure.args-delete   --without-python
        configure.args-append   --with-python=${prefix}/bin/python2.7
        depends_lib-append port:python27
}

variant perl description {perl bindings} {
        configure.args-delete   --without-perl
        configure.args-append   --with-perl=${prefix}/bin/perl5.8
        depends_lib-append port:perl5.8
}

variant sqlite3 description {sqlite3 database support} {
        configure.args-delete   --without-sqlite
        depends_lib-append port:sqlite3
}

#variant mysql4 description {mysql4 database support} {
#        configure.args-delete   --without-mysql
#        configure.args-append   --with-mysql
#        depends_lib-append port:mysql4
#}

#variant mysql5 description {mysql5 database support} {
#        configure.args-delete   --without-mysql
#        configure.args-append   --with-mysql
#        depends_lib-append path:bin/mysql_config5:mysql5
#}

#variant postgresql84 description {postgresql database support} {
#        configure.args-delete   --without-pgsql
#        configure.args-append   --with-pgsql
#        depends_lib-append port:postgresql84
#}