diff options
Diffstat (limited to '')
-rw-r--r-- | net-mgmt/nagcon/files/patch-br.cpp | 10 | ||||
-rw-r--r-- | net-mgmt/nagcon/files/patch-br.h | 15 | ||||
-rw-r--r-- | net-mgmt/nagcon/files/patch-nc.cpp | 29 | ||||
-rw-r--r-- | net-mgmt/nagcon/files/patch-utils.cpp | 12 |
4 files changed, 0 insertions, 66 deletions
diff --git a/net-mgmt/nagcon/files/patch-br.cpp b/net-mgmt/nagcon/files/patch-br.cpp deleted file mode 100644 index a56f8a045a99..000000000000 --- a/net-mgmt/nagcon/files/patch-br.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- br.cpp.orig 2017-12-27 12:07:16 UTC -+++ br.cpp -@@ -12,6 +12,7 @@ - #include <sys/mman.h> - #include <fcntl.h> - #include <syslog.h> -+#include <strfunc.h> - #include "br.h" - - buffered_reader::buffered_reader(int cur_fd, int cur_block_size) diff --git a/net-mgmt/nagcon/files/patch-br.h b/net-mgmt/nagcon/files/patch-br.h deleted file mode 100644 index 55976d409430..000000000000 --- a/net-mgmt/nagcon/files/patch-br.h +++ /dev/null @@ -1,15 +0,0 @@ ---- br.h.orig 2017-12-27 12:07:16 UTC -+++ br.h -@@ -10,6 +10,12 @@ - #define likely(x) __builtin_expect((x),1) - #define unlikely(x) __builtin_expect((x),0) - -+/* FreeBSD uses open/stat/lseek/off_t rather than open64/stat64/lseek64/off64_t */ -+#define stat64 stat -+#define lseek64 lseek -+#define open64 open -+#define off64_t off_t -+ - class buffered_reader - { - private: diff --git a/net-mgmt/nagcon/files/patch-nc.cpp b/net-mgmt/nagcon/files/patch-nc.cpp deleted file mode 100644 index 7289f18f42ac..000000000000 --- a/net-mgmt/nagcon/files/patch-nc.cpp +++ /dev/null @@ -1,29 +0,0 @@ ---- nc.cpp.orig 2017-12-27 12:07:16 UTC -+++ nc.cpp -@@ -178,7 +178,7 @@ void help(void) - - printf("-f file what file to monitor (usuallly:\n"); - printf("-F host:port connect to a host for retrieving the status.log information\n"); -- printf(" /usr/local/nagios/var/status.log, look for status_file in\n"); -+ printf(" /var/spool/nagios/status.log, look for status_file in\n"); - printf(" the nagios.cfg file\n"); - printf("-i x check interval (in seconds)\n"); - printf("-a list also the services for hosts that are down\n"); -@@ -210,7 +210,7 @@ int main(int argc, char *argv[]) - WINDOW *win; - int sw; - -- char *status_log = "/usr/local/nagios/var/status.log"; -+ char *status_log = "/var/spool/nagios/status.log"; - int interval = 5; - char list_all_problems = 0; - char always_notify = 0; -@@ -322,7 +322,7 @@ int main(int argc, char *argv[]) - wattroff(win, COLOR_PAIR(MY_DRAW)); - - if (file_mode == 0) /* file */ -- fd = open64(status_log, O_RDONLY); -+ fd = open(status_log, O_RDONLY); - else - fd = connect_to(status_log); - diff --git a/net-mgmt/nagcon/files/patch-utils.cpp b/net-mgmt/nagcon/files/patch-utils.cpp deleted file mode 100644 index d4be5394379a..000000000000 --- a/net-mgmt/nagcon/files/patch-utils.cpp +++ /dev/null @@ -1,12 +0,0 @@ ---- utils.cpp.orig 2017-12-27 12:07:16 UTC -+++ utils.cpp -@@ -10,6 +10,9 @@ - #include <netdb.h> - #include <sys/types.h> - #include <sys/socket.h> -+#include <arpa/inet.h> -+#include <netinet/in.h> -+#include <strfunc.h> - extern "C" { - #include "error.h" - } |