mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
a285174426
- bump libprelude library Changelog libpreludedb: - Source and Target now use a 16 bits index (required for CorrelationAlert with large number of source/target). CorrelationAlert Alertident now use a 32 bits index (required to link large number of Alert together). - Fix compilation on system without ENOTSUP (fix #227): Include modified patch from Alexandre Anriot <aanriot@atlantilde.com>. - [pgsql] Patch by Pierre Chifflier <chifflier@inl.fr>, that fixes type conversions preventing PostgreSQL to use indexes (fix #225). - [preludedb-admin] Use separate alert / heartbeat command: this is done to have a coherent implementation of the --offset and --count command line options. - [preludedb-admin] Fix --offset with the load command. - [preludedb-admin] Give the delete table a decent size, should speedup the delete command. - [documentation] preludedb-admin manpage (fix #230), by Pierre Chifflier <chifflier@inl.fr>. PR: ports/116109 Submitted by: maintainer (Robin Gruyters)
95 lines
2.4 KiB
Makefile
95 lines
2.4 KiB
Makefile
# New ports collection makefile for: libpreludedb
|
|
# Date created: 2005-10-14
|
|
# Whom: Sergei Kolobov <sergei@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libpreludedb
|
|
PORTVERSION= 0.9.13
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
|
|
http://www.prelude-ids.org/download/releases/old/
|
|
|
|
MAINTAINER= r.gruyters@yirdis.nl
|
|
COMMENT= Framework library for access to Prelude NIDS database
|
|
|
|
LIB_DEPENDS= prelude.13:${PORTSDIR}/security/libprelude
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib \
|
|
%%PREFIX%%/lib/libpreludedb/plugins/formats
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
OPTIONS= PERL "Include Perl bindings" off \
|
|
PYTHON "Include Python bindings" off \
|
|
MYSQL "Use MySQL backend" on \
|
|
PGSQL "Use PostgreSQL backend" off \
|
|
SQLITE "Use SQLite backend" off
|
|
|
|
MAN1= preludedb-admin.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_PERL)
|
|
USE_PERL5= yes
|
|
CONFIGURE_ARGS+= --with-perl
|
|
PLIST_SUB+= WITH_PERL=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-perl
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
USE_PYTHON= 2.3+
|
|
# Need to manually include bsd.python.mk, because USE_PYTHON is defined
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
|
CONFIGURE_ARGS+= --with-python
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-python
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
USE_MYSQL= yes
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
PLIST_SUB+= WITH_MYSQL=""
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib/libpreludedb/plugins/sql
|
|
.else
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
PLIST_SUB+= WITH_MYSQL="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_PGSQL)
|
|
USE_PGSQL= yes
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
PLIST_SUB+= WITH_PGSQL=""
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib/libpreludedb/plugins/sql
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pgsql
|
|
PLIST_SUB+= WITH_PGSQL="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_SQLITE)
|
|
USE_SQLITE= yes
|
|
CONFIGURE_ARGS+= --with-sqlite3
|
|
PLIST_SUB+= WITH_SQLITE=""
|
|
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib/libpreludedb/plugins/sql
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sqlite3
|
|
PLIST_SUB+= WITH_SQLITE="@comment "
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
|
|
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|