summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2017-01-14 10:35:23 +0100
committerMichael Orlitzky <mjo@gentoo.org>2017-01-14 16:04:16 -0500
commit85d8b5b7b78412408d6e77d6083b8790cb4d7e5f (patch)
tree5398480fe84ef6437ec168ae8779607154638fbf /net-analyzer/nagios-core
parentnet-analyzer/nagios-core: remove old vulnerable versions. (diff)
downloadgentoo-85d8b5b7b78412408d6e77d6083b8790cb4d7e5f.tar.gz
gentoo-85d8b5b7b78412408d6e77d6083b8790cb4d7e5f.tar.bz2
gentoo-85d8b5b7b78412408d6e77d6083b8790cb4d7e5f.zip
net-analyzer/nagios-core: remove unused patches
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'net-analyzer/nagios-core')
-rw-r--r--net-analyzer/nagios-core/files/nagios-3.3.1-htmlmakefile.patch14
-rw-r--r--net-analyzer/nagios-core/files/statuswml-bug275288.patch51
-rw-r--r--net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch65
3 files changed, 0 insertions, 130 deletions
diff --git a/net-analyzer/nagios-core/files/nagios-3.3.1-htmlmakefile.patch b/net-analyzer/nagios-core/files/nagios-3.3.1-htmlmakefile.patch
deleted file mode 100644
index c033c9843c10..000000000000
--- a/net-analyzer/nagios-core/files/nagios-3.3.1-htmlmakefile.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- html/Makefile.in.orig 2011-07-27 16:06:58.000000000 +0200
-+++ html/Makefile.in 2011-07-27 16:07:10.000000000 +0200
-@@ -75,9 +75,9 @@
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
- for file in includes/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done
-- for file in includes/rss/*; \
-+ for file in includes/rss/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss; done
-- for file in includes/rss/extlib/*; \
-+ for file in includes/rss/extlib/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss/extlib; done
-
- install-unstripped:
diff --git a/net-analyzer/nagios-core/files/statuswml-bug275288.patch b/net-analyzer/nagios-core/files/statuswml-bug275288.patch
deleted file mode 100644
index 8b9a0200e148..000000000000
--- a/net-analyzer/nagios-core/files/statuswml-bug275288.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- cgi/statuswml.c 2008/11/30 18:13:11 1.27
-+++ cgi/statuswml.c 2009/06/19 04:30:26 1.28
-@@ -67,6 +67,8 @@
- void document_header(void);
- void document_footer(void);
- int process_cgivars(void);
-+int validate_arguments(void);
-+int is_valid_hostip(char *hostip);
-
- int display_type=DISPLAY_INDEX;
- int hostgroup_style=DISPLAY_HOSTGROUP_SUMMARY;
-@@ -108,6 +110,13 @@
-
- document_header();
-
-+ /* validate arguments in URL */
-+ result=validate_arguments();
-+ if(result==ERROR){
-+ document_footer();
-+ return ERROR;
-+ }
-+
- /* read the CGI configuration file */
- result=read_cgi_config_file(get_cgi_config_location());
- if(result==ERROR){
-@@ -334,7 +343,25 @@
- return error;
- }
-
-+int validate_arguments(void){
-+ int result=OK;
-+ if((strcmp(ping_address,"")) && !is_valid_hostip(ping_address)) {
-+ printf("<p>Invalid host name/ip</p>\n");
-+ result=ERROR;
-+ }
-+ if(strcmp(traceroute_address,"") && !is_valid_hostip(traceroute_address)){
-+ printf("<p>Invalid host name/ip</p>\n");
-+ result=ERROR;
-+ }
-+ return result;
-+ }
-
-+int is_valid_hostip(char *hostip) {
-+ char *valid_domain_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-";
-+ if(strcmp(hostip,"") && strlen(hostip)==strspn(hostip,valid_domain_chars) && hostip[0] != '-' && hostip[strlen(hostip)-1] != '-')
-+ return TRUE;
-+ return FALSE;
-+ }
-
- /* main intro screen */
- void display_index(void){
diff --git a/net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch b/net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch
deleted file mode 100644
index a14f5a39b056..000000000000
--- a/net-analyzer/nagios-core/files/use-INSTALL-to-install-themes-r1.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From b6552e3b0b006fa28014150d199813de12d89ef4 Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky <michael@orlitzky.com>
-Date: Mon, 25 Apr 2016 20:06:18 -0400
-Subject: [PATCH 1/1] Use $(INSTALL) to install themes.
-
-Most of the images installed under the htdocs folder are installed
-mode 644 with owner:group nagios:nagios. This is due to the use of
-$(INSTALL) in html/Makefile. However, the theme images and stylesheets
-are currently installed with a simple "cp -r", which leads to
-inconsistencies like the following:
-
- $ cd /usr/share/nagios/htdocs/images
- $ ls action*.gif
- -rw-rw-r-- 1 nagios nagios 1.3K 2014-11-12 08:22 action.gif
- -rw-r--r-- 1 root root 1.3K 2014-11-12 08:22 action-graph.gif
- -rw-r--r-- 1 root root 171 2014-11-12 08:22 action-nagios.gif
- -rw-r--r-- 1 root root 162 2014-11-12 08:22 action-orig.gif
-
-By using $(INSTALL) in the install-exfoliation and install-classicui
-targets, we enforce some consistency.
----
- Makefile.in | 20 ++++++++++++++++----
- 1 file changed, 16 insertions(+), 4 deletions(-)
-
-diff --git a/Makefile.in b/Makefile.in
-index 5b97513..0ec50b7 100644
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -300,8 +300,14 @@ install-webconf:
- @echo ""
-
- install-exfoliation:
-- cp -rf contrib/exfoliation/stylesheets/* $(DESTDIR)$(HTMLDIR)/stylesheets
-- cp -rf contrib/exfoliation/images/* $(DESTDIR)$(HTMLDIR)/images
-+ for file in contrib/exfoliation/stylesheets/*.*; \
-+ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
-+
-+ for file in contrib/exfoliation/images/*.*; \
-+ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
-+
-+ for file in contrib/exfoliation/images/logos/*.*; \
-+ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
-
- @echo ""
- @echo "*** Exfoliation theme installed ***"
-@@ -309,8 +315,14 @@ install-exfoliation:
- @echo ""
-
- install-classicui:
-- cp -rf html/stylesheets/* $(DESTDIR)$(HTMLDIR)/stylesheets
-- cp -rf html/images/* $(DESTDIR)$(HTMLDIR)/images
-+ for file in html/stylesheets/*.*; \
-+ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
-+
-+ for file in html/images/*.*; \
-+ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
-+
-+ for file in html/images/logos/*.*; \
-+ do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
-
- @echo ""
- @echo "*** Classic theme installed ***"
---
-2.7.3
-