aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-22 03:14:24 +0800
committermiwi <miwi@FreeBSD.org>2006-12-22 03:14:24 +0800
commita24a0a407feca4767045509a0925deb95921b5e8 (patch)
tree1943b1f5aaf8613166b7c150ad416b9a4002c9f5 /security
parentc7748ae08fa5492444be9e1fc0079ae966e5efa8 (diff)
downloadfreebsd-ports-gnome-a24a0a407feca4767045509a0925deb95921b5e8.tar.gz
freebsd-ports-gnome-a24a0a407feca4767045509a0925deb95921b5e8.tar.zst
freebsd-ports-gnome-a24a0a407feca4767045509a0925deb95921b5e8.zip
- Update to 0.9.7
Changelog prelude-manager-0.9.7: - Fix a startup problem on system with different address of different family mapping to the same IP. - Fix for system using the GnuLib poll replacement modules. The module was broken when used in conjunction with server socket. - Various portability fixes (this release should compile and run on OSX out of the box). PR: ports/107010 Submitted by: Robin Gruyters <r.gruyters@yirdis.nl> (maintainer)
Diffstat (limited to 'security')
-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