aboutsummaryrefslogtreecommitdiff
path: root/security/prelude-manager
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-07-30 11:35:41 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-07-30 11:35:41 +0000
commit88ce61c4c2dffbf0fbfc6f0b6c2ec69ea69039a2 (patch)
tree1c9ff1c3a14e9ac12de827d88144dc97bf8547e3 /security/prelude-manager
parent8afbbb3e461464890f72384efdb86daff9ff89ad (diff)
downloadports-88ce61c4c2dffbf0fbfc6f0b6c2ec69ea69039a2.tar.gz
ports-88ce61c4c2dffbf0fbfc6f0b6c2ec69ea69039a2.zip
Notes
Diffstat (limited to 'security/prelude-manager')
-rw-r--r--security/prelude-manager/Makefile39
1 files changed, 31 insertions, 8 deletions
diff --git a/security/prelude-manager/Makefile b/security/prelude-manager/Makefile
index c950f302b98b..4145846bf201 100644
--- a/security/prelude-manager/Makefile
+++ b/security/prelude-manager/Makefile
@@ -6,8 +6,9 @@
PORTNAME= prelude-manager
PORTVERSION= 0.8.7
+PORTREVISION= 1
CATEGORIES= security
-MASTER_SITES= http://www.prelude-ids.org/download/releases/
+MASTER_SITES= http://www.prelude-ids.org/download/releases/
MAINTAINER= sheepkiller@cultdeadsheep.org
COMMENT= Prelude Network Intrusion Detection System central logging point
@@ -20,6 +21,25 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc \
--program-prefix="" --localstatedir=/var
+# MySQL deps hack
+MYSQL323_LIBVER=10
+MYSQL40_LIBVER= 12
+MYSQL41_LIBVER= 14
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL_VER)
+MYSQL_VER= ${WITH_MYSQL_VER}
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL_323_LIBVER})
+MYSQL_VER= 323
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL40_LIBVER})
+MYSQL_VER= 40
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL41_LIBVER})
+MYSQL_VER= 41
+.else
+MYSQL_VER= 40
+.endif
+
.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+= --disable-openssl
.else
@@ -28,20 +48,20 @@ CONFIGURE_ARGS+= --enable-openssl
.endif
.if defined(WITH_MYSQL)
-LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client
CONFIGURE_ARGS+= --enable-mysql
PLIST_SUB+= MYSQL=""
.else
CONFIGURE_ARGS+= --disable-mysql
-PLIST_SUB+= MYSQL="@comment "
+PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_POSTGRES)
-LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
-CONFIGURE_ARGS+= --enable-pgsql
-PLIST_SUB+= PGSQL=""
+LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
+CONFIGURE_ARGS+= --enable-pgsql
+PLIST_SUB+= PGSQL=""
.else
-CONFIGURE_ARGS+= --disable-pgsql
+CONFIGURE_ARGS+= --disable-pgsql
PLIST_SUB+= PGSQL="@comment "
.endif
@@ -52,8 +72,11 @@ post-patch:
@${ECHO} ""
@${ECHO} " WITHOUT_SSL=yes Disable SSL support"
@${ECHO} " WITH_MYSQL=yes Enable MySQL support"
+ @${ECHO} " - WITH_MYSQL_VER=323 Enable MySQL 3.23 support"
+ @${ECHO} " - WITH_MYSQL_VER=40 Enable MySQL 4.0 support (default)"
+ @${ECHO} " - WITH_MYSQL_VER=41 Enable MySQL 4.1 support"
@${ECHO} " WITH_POSTGRES=yes Enable PostreSQL support"
@${ECHO} "*---------------------------------------------------------------------------*"
@${ECHO} ""
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>