aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-21 19:14:24 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-21 19:14:24 +0000
commitb4fac9c9f8278dc61fad507547ffd1f034da076e (patch)
treeb1fed3148ca91cf032caeedd08f1b26e768aaa3b
parent025e8a9c18aba4d743a1b83bedc0c502b737c69a (diff)
downloadports-b4fac9c9f8278dc61fad507547ffd1f034da076e.tar.gz
ports-b4fac9c9f8278dc61fad507547ffd1f034da076e.zip
Notes
-rw-r--r--security/prelude-manager/Makefile14
-rw-r--r--security/prelude-manager/distinfo6
-rw-r--r--security/prelude-manager/files/patch-xmlmod.c11
-rw-r--r--security/prelude-manager/pkg-plist2
4 files changed, 27 insertions, 6 deletions
diff --git a/security/prelude-manager/Makefile b/security/prelude-manager/Makefile
index 60a09b90adb6..8e17b54c06cf 100644
--- a/security/prelude-manager/Makefile
+++ b/security/prelude-manager/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= prelude-manager
-PORTVERSION= 0.9.6.1
+PORTVERSION= 0.9.7
CATEGORIES= security
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
http://www.prelude-ids.org/download/releases/old/
@@ -13,7 +13,7 @@ MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
MAINTAINER= r.gruyters@yirdis.nl
COMMENT= Prelude Network Intrusion Detection System central logging point
-LIB_DEPENDS+= prelude.10:${PORTSDIR}/security/libprelude \
+LIB_DEPENDS+= prelude.11:${PORTSDIR}/security/libprelude \
gnutls.13:${PORTSDIR}/security/gnutls
USE_GPG= yes
@@ -26,6 +26,8 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
--localstatedir=/var
+.include <bsd.port.pre.mk>
+
.if defined(WITHOUT_XML)
PLIST_SUB+= WITH_XML="@comment "
CONFIGURE_ARGS+= --disable-xmltest --without-xml
@@ -41,4 +43,10 @@ LIB_DEPENDS+= preludedb.4:${PORTSDIR}/security/libpreludedb
PLIST_SUB+= WITH_DB=""
.endif
-.include <bsd.port.mk>
+post-install:
+ @if [ -f ${PREFIX}/etc/prelude-manager/prelude-manager.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/prelude-manager/prelude-manager.conf-dist \
+ ${PREFIX}/etc/prelude-manager/prelude-manager.conf ; \
+ fi
+
+.include <bsd.port.post.mk>
diff --git a/security/prelude-manager/distinfo b/security/prelude-manager/distinfo
index ea727d03ef98..1577ae5d4689 100644
--- a/security/prelude-manager/distinfo
+++ b/security/prelude-manager/distinfo
@@ -1,3 +1,3 @@
-MD5 (prelude-manager-0.9.6.1.tar.gz) = 97babc1a3c163eced05ace1fa47d011a
-SHA256 (prelude-manager-0.9.6.1.tar.gz) = b30fa5691ddaffada7bc65b074b8855faf6e6d8280fbbbdced67043465867311
-SIZE (prelude-manager-0.9.6.1.tar.gz) = 573156
+MD5 (prelude-manager-0.9.7.tar.gz) = 6265843b38384f5d6c4005f3837af091
+SHA256 (prelude-manager-0.9.7.tar.gz) = 6c3b8edba4aeb4ed13586fc41047e477824f97e625db124e2d2591d411a56106
+SIZE (prelude-manager-0.9.7.tar.gz) = 565775
diff --git a/security/prelude-manager/files/patch-xmlmod.c b/security/prelude-manager/files/patch-xmlmod.c
new file mode 100644
index 000000000000..db74bb0bebe8
--- /dev/null
+++ b/security/prelude-manager/files/patch-xmlmod.c
@@ -0,0 +1,11 @@
+--- plugins/reports/xmlmod/xmlmod.c.orig Wed Dec 20 15:58:15 2006
++++ plugins/reports/xmlmod/xmlmod.c Thu Dec 21 16:59:22 2006
+@@ -58,7 +58,7 @@
+ size_t ret;
+
+ ret = fwrite(buf, 1, len, context);
+- if ( ret != (size_t ) len && ferror(context) ) {
++ if ( ret != (size_t ) len && ferror((FILE *) context) ) {
+ prelude_log(PRELUDE_LOG_ERR, "could not write IDMEF-XML data: '%s'.\n", strerror(errno));
+ return -1;
+ }
diff --git a/security/prelude-manager/pkg-plist b/security/prelude-manager/pkg-plist
index 63e827dd0d6a..4dc22fb1b4a2 100644
--- a/security/prelude-manager/pkg-plist
+++ b/security/prelude-manager/pkg-plist
@@ -1,6 +1,8 @@
@comment $FreeBSD$
bin/prelude-manager
+@unexec if cmp -s %D/etc/prelude-manager/prelude-manager.conf %D/etc/prelude-manager/prelude-manager.conf-dist; then rm -f %D/etc/prelude-manager/prelude-manager.conf; fi
etc/prelude-manager/prelude-manager.conf-dist
+@exec if [ ! -f %D/etc/prelude-manager/prelude-manager.conf ] ; then cp -p %D/%F %B/prelude-manager.conf; fi
include/prelude-manager/prelude-manager.h
lib/prelude-manager/filters/idmef-criteria.la
lib/prelude-manager/filters/idmef-criteria.so