diff options
Diffstat (limited to 'net-analyzer/nessus-core/files')
-rw-r--r-- | net-analyzer/nessus-core/files/2.2.9-crash.patch | 15 | ||||
-rw-r--r-- | net-analyzer/nessus-core/files/2.2.9-gentoo.patch | 58 | ||||
-rw-r--r-- | net-analyzer/nessus-core/files/nessus-core-2.2.9-open.patch | 11 | ||||
-rw-r--r-- | net-analyzer/nessus-core/files/nessusd-r7 | 26 |
4 files changed, 110 insertions, 0 deletions
diff --git a/net-analyzer/nessus-core/files/2.2.9-crash.patch b/net-analyzer/nessus-core/files/2.2.9-crash.patch new file mode 100644 index 000000000000..d95c28404de2 --- /dev/null +++ b/net-analyzer/nessus-core/files/2.2.9-crash.patch @@ -0,0 +1,15 @@ +--- nessus-core/nessus/auth.c 2007-08-31 23:12:36.000000000 +0200 ++++ nessus-core/nessus/auth.c 2007-08-31 23:12:52.000000000 +0200 +@@ -92,11 +92,11 @@ + char * buffer = emalloc(s); + int len, n = 0; + signal(SIGPIPE, sighand_pipe); +- va_start(param, data); + + + for(;;) + { ++ va_start(param, data); + r = vsnprintf(buffer, s - 1, data, param); + if(r >= 0 && r < s)break; + s = r > s ? r + 2 : s * 2; diff --git a/net-analyzer/nessus-core/files/2.2.9-gentoo.patch b/net-analyzer/nessus-core/files/2.2.9-gentoo.patch new file mode 100644 index 000000000000..c97f6979340d --- /dev/null +++ b/net-analyzer/nessus-core/files/2.2.9-gentoo.patch @@ -0,0 +1,58 @@ + Makefile | 10 +++++----- + nessus-fetch/Makefile | 2 +- + ssl/Makefile | 2 +- + 3 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/Makefile b/Makefile +index b1485b3..382900a 100644 +--- a/Makefile ++++ b/Makefile +@@ -86,17 +86,17 @@ client-install : client + $(INSTALL) -m $(CLIENTMODE) ${make_bindir}/nessus $(DESTDIR)${bindir} + + client : +- cd nessus && $(MAKE) ++ $(MAKE) -C nessus + +-server : +- cd nessusd && $(MAKE) ++server : client ++ $(MAKE) -C nessusd + + sslstuff : +- cd ssl && $(MAKE) ++ $(MAKE) -C ssl + + + fetchtool: +- cd nessus-fetch && $(MAKE) ++ $(MAKE) -C nessus-fetch + + + doc : $(MAN_NESSUS_1) $(MAN_NESSUSD_8) +diff --git a/nessus-fetch/Makefile b/nessus-fetch/Makefile +index 63439bc..89fd8c9 100644 +--- a/nessus-fetch/Makefile ++++ b/nessus-fetch/Makefile +@@ -5,7 +5,7 @@ include ../nessus.tmpl + all: nessus-fetch + + nessus-fetch: nessus-fetch.o +- $(CC) nessus-fetch.o -o nessus-fetch $(LIBS) ++ $(CC) $(LDFLAGS) nessus-fetch.o -o nessus-fetch $(LIBS) + + nessus-fetch.o: nessus-fetch.c + $(CC) $(NESSUS_CFLAGS) ${include} $(DEFS) $(NESSUS_DEFS) -c nessus-fetch.c +diff --git a/ssl/Makefile b/ssl/Makefile +index 738a692..5e51426 100644 +--- a/ssl/Makefile ++++ b/ssl/Makefile +@@ -6,7 +6,7 @@ OBJS = nessus-mkrand.o + all : nessus-mkrand + + nessus-mkrand: $(OBJS) +- $(CC) $(OBJS) -o nessus-mkrand -lm ++ $(CC) $(LDFLAGS) $(OBJS) -o nessus-mkrand -lm + + nessus-mkrand.o: nessus-mkrand.c + $(CC) $(CFLAGS) -c nessus-mkrand.c diff --git a/net-analyzer/nessus-core/files/nessus-core-2.2.9-open.patch b/net-analyzer/nessus-core/files/nessus-core-2.2.9-open.patch new file mode 100644 index 000000000000..fe60ede62b29 --- /dev/null +++ b/net-analyzer/nessus-core/files/nessus-core-2.2.9-open.patch @@ -0,0 +1,11 @@ +--- nessus-core/nessusd/detached.c.orig ++++ nessus-core/nessusd/detached.c +@@ -408,7 +408,7 @@ + char * target; + { + char * fname = detached_fname(globals); +- int f = open(fname, O_CREAT|O_WRONLY|O_TRUNC); ++ int f = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0600); + if(f >= 0) + { + write(f, target, strlen(target)); diff --git a/net-analyzer/nessus-core/files/nessusd-r7 b/net-analyzer/nessus-core/files/nessusd-r7 new file mode 100644 index 000000000000..5707584ce427 --- /dev/null +++ b/net-analyzer/nessus-core/files/nessusd-r7 @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting nessusd" + start-stop-daemon --start --quiet --exec /usr/sbin/nessusd -- -D + eend $? +} + +stop() { + ebegin "Stop nessusd" + start-stop-daemon --stop --quiet --exec /usr/sbin/nessusd + einfo "Waiting for the environment to be sane" + while [ -n "$RUNNING" ] ; do + sleep 1 + RUNNING=$(ps aux | grep -m 1 nessusd: | grep -v grep) + done + sleep 3 + eend $? +} |