2005-10-14 20:18:45 +02:00
|
|
|
# New ports collection makefile for: libpreludedb
|
|
|
|
# Date created: 2005-10-14
|
|
|
|
# Whom: Sergei Kolobov <sergei@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libpreludedb
|
2008-02-15 12:17:20 +01:00
|
|
|
PORTVERSION= 0.9.14.1
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 2
|
2005-10-14 20:18:45 +02:00
|
|
|
CATEGORIES= security
|
2006-03-02 10:38:29 +01:00
|
|
|
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
|
|
|
|
http://www.prelude-ids.org/download/releases/old/
|
2005-10-14 20:18:45 +02:00
|
|
|
|
2006-02-15 15:02:57 +01:00
|
|
|
MAINTAINER= r.gruyters@yirdis.nl
|
2005-10-14 20:18:45 +02:00
|
|
|
COMMENT= Framework library for access to Prelude NIDS database
|
|
|
|
|
2008-05-13 16:51:35 +02:00
|
|
|
LIB_DEPENDS= prelude.14:${PORTSDIR}/security/libprelude
|
2006-01-20 00:50:30 +01:00
|
|
|
|
2005-10-14 20:18:45 +02:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-02-14 16:19:47 +01:00
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib \
|
2006-02-21 00:01:33 +01:00
|
|
|
%%PREFIX%%/lib/libpreludedb/plugins/formats
|
2006-12-21 20:14:31 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-10-14 20:18:45 +02:00
|
|
|
|
2006-07-20 23:10:21 +02:00
|
|
|
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
|
|
|
|
|
2007-10-05 03:46:14 +02:00
|
|
|
MAN1= preludedb-admin.1
|
|
|
|
|
2006-12-21 20:14:31 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-10-14 20:18:45 +02:00
|
|
|
.if defined(WITH_PERL)
|
|
|
|
USE_PERL5= yes
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perl
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_PERL=""
|
|
|
|
.else
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PYTHON)
|
2006-12-21 20:14:31 +01:00
|
|
|
USE_PYTHON= 2.3+
|
|
|
|
# Need to manually include bsd.python.mk, because USE_PYTHON is defined
|
2006-07-20 23:10:21 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
|
|
.else
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --without-python
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-07-20 23:10:21 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2005-10-14 20:18:45 +02:00
|
|
|
USE_MYSQL= yes
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_MYSQL=""
|
2006-02-14 16:19:47 +01:00
|
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib/libpreludedb/plugins/sql
|
2005-10-14 20:18:45 +02:00
|
|
|
.else
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_PGSQL=""
|
2006-02-14 16:19:47 +01:00
|
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib/libpreludedb/plugins/sql
|
2005-10-14 20:18:45 +02:00
|
|
|
.else
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
2005-10-14 20:18:45 +02:00
|
|
|
PLIST_SUB+= WITH_PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-02-21 00:01:33 +01:00
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
USE_SQLITE= yes
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-sqlite3
|
2006-02-21 00:01:33 +01:00
|
|
|
PLIST_SUB+= WITH_SQLITE=""
|
2006-03-02 10:38:29 +01:00
|
|
|
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
|
2006-02-21 00:01:33 +01:00
|
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib/libpreludedb/plugins/sql
|
|
|
|
.else
|
2006-06-07 17:08:09 +02:00
|
|
|
CONFIGURE_ARGS+= --without-sqlite3
|
2006-02-21 00:01:33 +01:00
|
|
|
PLIST_SUB+= WITH_SQLITE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-10-14 20:18:45 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
|
2007-10-05 03:46:14 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/
|
2005-10-14 20:18:45 +02:00
|
|
|
.endif
|
|
|
|
|
2006-12-21 20:14:31 +01:00
|
|
|
.include <bsd.port.post.mk>
|