diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/ndoutils/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/ndoutils/files')
-rw-r--r-- | net-analyzer/ndoutils/files/ndo2db.init-nagios3 | 24 | ||||
-rw-r--r-- | net-analyzer/ndoutils/files/ndoutils-2.0.0-asprintf.patch | 10 | ||||
-rw-r--r-- | net-analyzer/ndoutils/files/ndoutils-2.0.0-sleep.patch | 10 |
3 files changed, 44 insertions, 0 deletions
diff --git a/net-analyzer/ndoutils/files/ndo2db.init-nagios3 b/net-analyzer/ndoutils/files/ndo2db.init-nagios3 new file mode 100644 index 000000000000..3e1e262f6e0c --- /dev/null +++ b/net-analyzer/ndoutils/files/ndo2db.init-nagios3 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depends() { + before nagios + need mysql +} + +start() { + ebegin "Starting ndo2db" + if [ -S /var/nagios/ndo.sock ] ; then + rm -f /var/nagios/ndo.sock + fi + start-stop-daemon --start --quiet --exec /usr/bin/ndo2db \ + -- -c /etc/nagios/ndo2db.cfg + eend $? +} + +stop() { + ebegin "Stopping ndo2db" + start-stop-daemon --stop --quiet --exec /usr/bin/ndo2db + eend $? +} diff --git a/net-analyzer/ndoutils/files/ndoutils-2.0.0-asprintf.patch b/net-analyzer/ndoutils/files/ndoutils-2.0.0-asprintf.patch new file mode 100644 index 000000000000..146132c21de3 --- /dev/null +++ b/net-analyzer/ndoutils/files/ndoutils-2.0.0-asprintf.patch @@ -0,0 +1,10 @@ +--- a/include/config.h.in ++++ b/include/config.h.in +@@ -9,6 +9,7 @@ + #ifndef _CONFIG_H + #define _CONFIG_H + ++#define _GNU_SOURCE + #include <stdio.h> + #include <stdlib.h> + diff --git a/net-analyzer/ndoutils/files/ndoutils-2.0.0-sleep.patch b/net-analyzer/ndoutils/files/ndoutils-2.0.0-sleep.patch new file mode 100644 index 000000000000..61694baee9e3 --- /dev/null +++ b/net-analyzer/ndoutils/files/ndoutils-2.0.0-sleep.patch @@ -0,0 +1,10 @@ +--- a/src/queue.c ++++ b/src/queue.c +@@ -8,6 +8,7 @@ + #include "../include/queue.h" + #include <errno.h> + #include <time.h> ++#include <unistd.h> /* sleep() */ + + #define RETRY_LOG_INTERVAL 600 /* Seconds */ + #define MAX_RETRIES 20 /* Max number of times to retry sending message */ |