summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authortez <tez@pkgsrc.org>2011-10-28 17:13:26 +0000
committertez <tez@pkgsrc.org>2011-10-28 17:13:26 +0000
commite65222f2ba0cb5a4ad4b546b91ef629f4dbc57b5 (patch)
tree57cd3fc60c5db748afd4b42ba1f04c26e0467b51 /misc
parentfbafec3d9846d94cd57f8b69dc94b5ce09e43b23 (diff)
downloadpkgsrc-e65222f2ba0cb5a4ad4b546b91ef629f4dbc57b5.tar.gz
update to 1.8 resolves SA46389
A bug fix and a couple of extra command-line options: Fixed double free() in exec.c/prepare_exec(), thanks to reports from Gregor Kopf of Recurity Labs, Jan Kohlrausch of DFN_CERT, and Wolfgang Ley Updated README & DISCLAIMER files removing DFN-CERT copyright Now just Logsurfer, not Logsurfer+ any more -D command line option for daemon mode. Warning: closes stdin, stdout, & stderr, therefore no error messages -F command line option to auto re-open log file
Diffstat (limited to 'misc')
-rw-r--r--misc/logsurfer/Makefile6
-rw-r--r--misc/logsurfer/distinfo9
-rw-r--r--misc/logsurfer/patches/patch-ac34
3 files changed, 42 insertions, 7 deletions
diff --git a/misc/logsurfer/Makefile b/misc/logsurfer/Makefile
index ace0a89068b..4dddd33a44a 100644
--- a/misc/logsurfer/Makefile
+++ b/misc/logsurfer/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2010/02/04 17:25:25 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2011/10/28 17:13:26 tez Exp $
-DISTNAME= logsurfer+-1.7
-PKGNAME= logsurfer-1.7
+DISTNAME= logsurfer-1.8
+PKGNAME= logsurfer-1.8
CATEGORIES= misc
MASTER_SITES= http://kerryt.orcon.net.nz/ \
http://www.crypt.gen.nz/logsurfer/
diff --git a/misc/logsurfer/distinfo b/misc/logsurfer/distinfo
index 9d38a1f1b08..47bfcb5fcda 100644
--- a/misc/logsurfer/distinfo
+++ b/misc/logsurfer/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2009/01/18 11:01:56 shattered Exp $
+$NetBSD: distinfo,v 1.7 2011/10/28 17:13:26 tez Exp $
-SHA1 (logsurfer+-1.7.tar.gz) = 9fe9b2356c34fe691a8b0c66514d8cbe3c3b33fa
-RMD160 (logsurfer+-1.7.tar.gz) = ad68651d5b87e0bba76871cd5f30ed94d861513b
-Size (logsurfer+-1.7.tar.gz) = 198289 bytes
+SHA1 (logsurfer-1.8.tar.gz) = 8fb732b16f0a0725492d73dd099662eeff0b9362
+RMD160 (logsurfer-1.8.tar.gz) = 1e3d10d018ce5ee7ee941601b6abbca8efd2ed3b
+Size (logsurfer-1.8.tar.gz) = 197433 bytes
SHA1 (patch-aa) = 4c4f4e2f8093d38b08c5a119e9c84ba32b7a7648
SHA1 (patch-ab) = e1cabe243a690d9166dc8e0d5ac4861b37e1e980
+SHA1 (patch-ac) = 1a2c0e4769512e6088c9fb8370a9b2f3dd0a2406
diff --git a/misc/logsurfer/patches/patch-ac b/misc/logsurfer/patches/patch-ac
new file mode 100644
index 00000000000..20cd36bbb63
--- /dev/null
+++ b/misc/logsurfer/patches/patch-ac
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.1 2011/10/28 17:13:26 tez Exp $
+
+Correct location of errno.h to standard
+Remove use of _PATH_DEVNULL which is apparently linux only
+
+--- src/logsurfer.c.orig 2011-10-28 10:45:07.015975100 -0500
++++ src/logsurfer.c 2011-10-28 10:45:13.514116000 -0500
+@@ -47,7 +47,7 @@
+ #include <signal.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#include <paths.h>
++/*#include <paths.h>*/
+
+ #if TIME_WITH_SYS_TIME
+ #include <sys/time.h>
+@@ -76,7 +76,7 @@
+ #include <malloc.h>
+ #endif
+
+-#include <sys/errno.h>
++#include <errno.h>
+ #include <fcntl.h>
+
+ /* local includes */
+@@ -323,7 +323,7 @@
+ exit(0);
+ }
+
+- if ( (fd = open(_PATH_DEVNULL, O_RDWR, 0)) < 0) {
++ if ( (fd = open("/dev/null", O_RDWR, 0)) < 0) {
+ (void) fprintf(stderr, "could not daemonize: %s\n", strerror(errno));
+ exit(11);
+ }