diff options
author | miwi <miwi@FreeBSD.org> | 2009-11-28 21:44:45 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-11-28 21:44:45 +0800 |
commit | 5aba0f7870f88cef82a3628b238a817e910c4de8 (patch) | |
tree | 28327a52439293977377858f6bee339d48271777 /net-mgmt/nagios | |
parent | d63954e51a5edeb554ca14ead87b181f3c40912b (diff) | |
download | freebsd-ports-gnome-5aba0f7870f88cef82a3628b238a817e910c4de8.tar.gz freebsd-ports-gnome-5aba0f7870f88cef82a3628b238a817e910c4de8.tar.zst freebsd-ports-gnome-5aba0f7870f88cef82a3628b238a817e910c4de8.zip |
- Update to 3.2.0
Changelog:
http://www.nagios.org/development/history/core-3x
PR: 139210
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Runtime test by:Frank Steinborn
Diffstat (limited to 'net-mgmt/nagios')
-rw-r--r-- | net-mgmt/nagios/Makefile | 17 | ||||
-rw-r--r-- | net-mgmt/nagios/distinfo | 6 | ||||
-rw-r--r-- | net-mgmt/nagios/files/patch-base-utils.c | 38 | ||||
-rw-r--r-- | net-mgmt/nagios/files/patch-cgi-statuswml.c | 51 | ||||
-rw-r--r-- | net-mgmt/nagios/files/patch-configure.in | 12 | ||||
-rw-r--r-- | net-mgmt/nagios/files/patch-html-Makefile.in | 17 | ||||
-rw-r--r-- | net-mgmt/nagios/files/patch-html-docs-configcgi.html | 22 | ||||
-rw-r--r-- | net-mgmt/nagios/files/pkg-message.in | 2 | ||||
-rw-r--r-- | net-mgmt/nagios/pkg-plist | 16 |
9 files changed, 50 insertions, 131 deletions
diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile index b316a61225bc..ff9340433b5e 100644 --- a/net-mgmt/nagios/Makefile +++ b/net-mgmt/nagios/Makefile @@ -6,8 +6,7 @@ # PORTNAME= nagios -PORTVERSION= 3.0.6 -PORTREVISION= 3 +PORTVERSION= 3.2.0 CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3.x/${PORTNAME}-${PORTVERSION} @@ -27,7 +26,7 @@ CONFLICTS= nagios-[12].* nagios-devel-* OPTIONS= EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8.0+]" off \ NANOSLEEP "Use nanosleep in event timing" off \ EVENT_BROKER "Enable event broker functionality" off \ - UNHANDLED_HACK "Display passive checks in unhandled queries" off + UNHANDLED_HACK "Display passive checks in unhandled queries" off \ GNU_CONFIGURE= yes @@ -55,11 +54,13 @@ CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \ --with-cgiurl=${NAGIOSCGIURL} \ --sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \ --libexecdir=${PREFIX}/libexec/nagios \ + --datarootdir=${PREFIX}/${NAGIOSWWWDIR} \ --datadir=${PREFIX}/${NAGIOSWWWDIR} \ --sysconfdir=${PREFIX}/etc/nagios \ --localstatedir=${NAGIOSDIR} \ --with-httpd-conf=${PREFIX}/etc \ - --with-checkresult-dir=${NAGIOSDIR}/checkresults + --with-checkresult-dir=${NAGIOSDIR}/checkresults \ + --disable-statuswrl CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \ CFLAGS="${CFLAGS}" \ @@ -85,10 +86,12 @@ SUB_FILES= pkg-install \ pkg-deinstall \ pkg-message -### XXX: Subtle bug with removing PREFIX from here +# XXX: Don't remove PREFIX from SUB_LIST here. SUB_LIST= PREFIX=${PREFIX} \ ${PLIST_SUB} +USE_PHP= yes + .if defined(WITH_EMBEDDED_PERL) USE_PERL5= 5.8.0+ CONFIGURE_ARGS+= --enable-embedded-perl \ @@ -110,8 +113,8 @@ CONFIGURE_ARGS+= --disable-event-broker post-patch: .if defined(WITH_UNHANDLED_HACK) - @${REINPLACE_CMD} -e 's#\&serviceprops=42\&#\&serviceprops=10\&#g' \ - -e 's#\&hostprops=42\"#\&hostprops=10\"#g' ${WRKSRC}/html/side.html.in + @${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \ + -e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php .endif pre-install: diff --git a/net-mgmt/nagios/distinfo b/net-mgmt/nagios/distinfo index 7a8f1de5a300..c411d3e77f32 100644 --- a/net-mgmt/nagios/distinfo +++ b/net-mgmt/nagios/distinfo @@ -1,3 +1,3 @@ -MD5 (nagios-3.0.6.tar.gz) = 900e3f4164f4b2a18485420eeaefe812 -SHA256 (nagios-3.0.6.tar.gz) = bedeb2c1ffbf7525ec19ac84a66bad60a19d2b0544cbf050a53bfc363c09bb22 -SIZE (nagios-3.0.6.tar.gz) = 2735504 +MD5 (nagios-3.2.0.tar.gz) = 3566167cc60ddeaad34e7d2e26ed4a58 +SHA256 (nagios-3.2.0.tar.gz) = 7cbf35ba0319f24fa085982c038437c4515003b27863c4897dc86b197a50a5e7 +SIZE (nagios-3.2.0.tar.gz) = 3170967 diff --git a/net-mgmt/nagios/files/patch-base-utils.c b/net-mgmt/nagios/files/patch-base-utils.c index e4aa4a489b82..e69de29bb2d1 100644 --- a/net-mgmt/nagios/files/patch-base-utils.c +++ b/net-mgmt/nagios/files/patch-base-utils.c @@ -1,38 +0,0 @@ ---- base/utils.c.orig 2008-12-01 03:52:58.000000000 +1030 -+++ base/utils.c 2009-05-03 11:51:19.000000000 +0930 -@@ -3597,7 +3597,7 @@ - /* initializes embedded perl interpreter */ - int init_embedded_perl(char **env){ - #ifdef EMBEDDEDPERL -- char *embedding[]={ "", "" }; -+ char **embedding = NULL; - int exitstatus=0; - char *temp_buffer=NULL; - int argc=2; -@@ -3613,6 +3613,17 @@ - - else{ - -+ embedding = malloc(argc * sizeof(char *)); -+ if (embedding == NULL) { -+ use_embedded_perl = FALSE; -+ logit(NSLOG_RUNTIME_ERROR, TRUE, "Error: Unable to allocate memory for embedded Perl interpreter! (see ports/131993)\n"); -+ } else { -+ embedding[0] = malloc(sizeof(char)); -+ if (embedding[0] == NULL) { -+ use_embedded_perl = FALSE; -+ logit(NSLOG_RUNTIME_ERROR, TRUE, "Error: Unable to allocate memory for embedded Perl interpreter! (see ports/131993)\n"); -+ } else { -+ *embedding[0] = '\0'; - embedding[1]=p1_file; - - use_embedded_perl=TRUE; -@@ -3624,6 +3635,8 @@ - logit(NSLOG_RUNTIME_ERROR,TRUE,"Error: Could not allocate memory for embedded Perl interpreter!\n"); - } - } -+ } -+ } - - /* a fatal error occurred... */ - if(use_embedded_perl==FALSE){ diff --git a/net-mgmt/nagios/files/patch-cgi-statuswml.c b/net-mgmt/nagios/files/patch-cgi-statuswml.c deleted file mode 100644 index 2c562217bf03..000000000000 --- a/net-mgmt/nagios/files/patch-cgi-statuswml.c +++ /dev/null @@ -1,51 +0,0 @@ ---- cgi/statuswml.c.orig 2008-12-01 04:43:11.000000000 +1030 -+++ cgi/statuswml.c 2009-07-09 18:35:02.000000000 +0930 -@@ -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-mgmt/nagios/files/patch-configure.in b/net-mgmt/nagios/files/patch-configure.in index 58ac6002360c..f8601c6c3afe 100644 --- a/net-mgmt/nagios/files/patch-configure.in +++ b/net-mgmt/nagios/files/patch-configure.in @@ -41,18 +41,6 @@ AC_SUBST(INSTALL_OPTS) AC_ARG_WITH(command_user,--with-command-user=<user> sets user name for command access,command_user=$withval,command_user=$nagios_user) -@@ -520,9 +528,9 @@ - fi - - dnl Try and locate glib --GLIB_INCLUDE=`pkg-config --cflags glib-2.0` -+GLIB_INCLUDE="" - AC_SUBST(GLIB_INCLUDE) --GLIB_LIBS=`pkg-config --libs glib-2.0` -+GLIB_LIBS="" - AC_SUBST(GLIB_LIBS) - if test x$GLIB_LIBS != x; then - AC_DEFINE_UNQUOTED(HAVE_GLIB) @@ -667,6 +675,9 @@ AC_DEFINE_UNQUOTED(EMBEDDEDPERL) diff --git a/net-mgmt/nagios/files/patch-html-Makefile.in b/net-mgmt/nagios/files/patch-html-Makefile.in index fe3fcd26878a..12516ac1b168 100644 --- a/net-mgmt/nagios/files/patch-html-Makefile.in +++ b/net-mgmt/nagios/files/patch-html-Makefile.in @@ -1,6 +1,6 @@ ---- html/Makefile.in.orig 2008-11-03 04:02:03.000000000 +1030 -+++ html/Makefile.in 2008-11-05 15:11:08.000000000 +1030 -@@ -33,39 +33,39 @@ +--- html/Makefile.in.orig 2009-06-17 13:27:21.000000000 +0930 ++++ html/Makefile.in 2009-07-06 19:27:38.000000000 +0930 +@@ -33,46 +33,46 @@ devclean: distclean install: @@ -12,6 +12,7 @@ - $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images - $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images - $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes - $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi - $(INSTALL) -m 664 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR) - $(INSTALL) -m 664 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs @@ -23,10 +24,15 @@ + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos ++ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi + $(INSTALL) -m 644 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR) + $(INSTALL) -m 644 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs - for file in *.html; \ + # Remove old HTML files (PHP files are used now) + rm -f $(DESTDIR)$(HTMLDIR)/index.html + rm -f $(DESTDIR)$(HTMLDIR)/main.html + rm -f $(DESTDIR)$(HTMLDIR)/side.html + for file in *.php; \ - do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done + do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done # for file in media/*.wav; \ @@ -59,6 +65,9 @@ for file in images/logos/*.*; \ - do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done + do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done + for file in includes/*.*; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done ++ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done install-unstripped: $(MAKE) install diff --git a/net-mgmt/nagios/files/patch-html-docs-configcgi.html b/net-mgmt/nagios/files/patch-html-docs-configcgi.html index f87ab0b99b6a..18d710944800 100644 --- a/net-mgmt/nagios/files/patch-html-docs-configcgi.html +++ b/net-mgmt/nagios/files/patch-html-docs-configcgi.html @@ -1,11 +1,11 @@ ---- html/docs/configcgi.html.orig 2008-11-08 17:49:55.000000000 +0100 -+++ html/docs/configcgi.html 2008-11-08 17:50:33.000000000 +0100 -@@ -616,7 +616,7 @@ - </tr>
- <tr>
- <td valign=top>Example:</td>
--<td><font color="red"><strong>ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$</strong></font></td>
-+<td><font color="red"><strong>ping_syntax=/sbin/ping -n -c 5 $HOSTADDRESS$</strong></font></td>
- </tr>
- </table>
-
+--- html/docs/configcgi.html.orig 2009-06-17 17:13:52.000000000 +0200 ++++ html/docs/configcgi.html 2009-11-27 23:16:02.000000000 +0100 +@@ -1250,7 +1250,7 @@ + + <td valign=top>Example:</td> + +-<td><font color="red"><strong>ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$</strong></font></td> ++<td><font color="red"><strong>ping_syntax=/sbin/ping -n -U -c 5 $HOSTADDRESS$</strong></font></td> + + </tr> + diff --git a/net-mgmt/nagios/files/pkg-message.in b/net-mgmt/nagios/files/pkg-message.in index a6cd7784dae3..8bf96edca81d 100644 --- a/net-mgmt/nagios/files/pkg-message.in +++ b/net-mgmt/nagios/files/pkg-message.in @@ -18,6 +18,8 @@ Order deny,allow Deny from all Allow from 127.0.0.1 + php_flag engine on + php_admin_value open_basedir %%PREFIX%%/%%NAGIOSWWWDIR%%/ %%NAGIOSDIR%%/ </Directory> <Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin> diff --git a/net-mgmt/nagios/pkg-plist b/net-mgmt/nagios/pkg-plist index bbfce3fd374c..a75abf02e065 100644 --- a/net-mgmt/nagios/pkg-plist +++ b/net-mgmt/nagios/pkg-plist @@ -30,10 +30,10 @@ etc/nagios/resource.cfg-sample %%NAGIOSWWWDIR%%/cgi-bin/status.cgi %%NAGIOSWWWDIR%%/cgi-bin/statusmap.cgi %%NAGIOSWWWDIR%%/cgi-bin/statuswml.cgi -%%NAGIOSWWWDIR%%/cgi-bin/statuswrl.cgi %%NAGIOSWWWDIR%%/cgi-bin/summary.cgi %%NAGIOSWWWDIR%%/cgi-bin/tac.cgi %%NAGIOSWWWDIR%%/cgi-bin/trends.cgi +%%NAGIOSWWWDIR%%/config.inc.php %%NAGIOSWWWDIR%%/contexthelp/A1.html %%NAGIOSWWWDIR%%/contexthelp/A2.html %%NAGIOSWWWDIR%%/contexthelp/A3.html @@ -128,6 +128,7 @@ etc/nagios/resource.cfg-sample %%NAGIOSWWWDIR%%/docs/freshness.html %%NAGIOSWWWDIR%%/docs/funstuff.html %%NAGIOSWWWDIR%%/docs/hostchecks.html +%%NAGIOSWWWDIR%%/docs/knownissues.html %%NAGIOSWWWDIR%%/docs/images/activechecks.png %%NAGIOSWWWDIR%%/docs/images/cachedcheckgraphs.png %%NAGIOSWWWDIR%%/docs/images/cachedchecks.png @@ -192,6 +193,8 @@ etc/nagios/resource.cfg-sample %%NAGIOSWWWDIR%%/docs/images/multiple-templates1.png %%NAGIOSWWWDIR%%/docs/images/multiple-templates2.png %%NAGIOSWWWDIR%%/docs/images/nagios.jpg +%%NAGIOSWWWDIR%%/docs/images/nagiosexchange.png +%%NAGIOSWWWDIR%%/docs/images/nagiossupport.png %%NAGIOSWWWDIR%%/docs/images/ndoutils.png %%NAGIOSWWWDIR%%/docs/images/network-outage1.png %%NAGIOSWWWDIR%%/docs/images/network-outage2.png @@ -319,8 +322,9 @@ etc/nagios/resource.cfg-sample %%NAGIOSWWWDIR%%/images/redundancy.png %%NAGIOSWWWDIR%%/images/restart.gif %%NAGIOSWWWDIR%%/images/right.gif -%%NAGIOSWWWDIR%%/images/sblogo.jpg +%%NAGIOSWWWDIR%%/images/sblogo.png %%NAGIOSWWWDIR%%/images/serviceevent.gif +%%NAGIOSWWWDIR%%/images/sflogo.png %%NAGIOSWWWDIR%%/images/splunk1.gif %%NAGIOSWWWDIR%%/images/splunk2.gif %%NAGIOSWWWDIR%%/images/start.gif @@ -345,10 +349,11 @@ etc/nagios/resource.cfg-sample %%NAGIOSWWWDIR%%/images/weblogo1.png %%NAGIOSWWWDIR%%/images/zoom1.gif %%NAGIOSWWWDIR%%/images/zoom2.gif -%%NAGIOSWWWDIR%%/index.html -%%NAGIOSWWWDIR%%/main.html +%%NAGIOSWWWDIR%%/includes/utils.inc.php +%%NAGIOSWWWDIR%%/index.php +%%NAGIOSWWWDIR%%/main.php %%NAGIOSWWWDIR%%/robots.txt -%%NAGIOSWWWDIR%%/side.html +%%NAGIOSWWWDIR%%/side.php %%NAGIOSWWWDIR%%/stylesheets/avail.css %%NAGIOSWWWDIR%%/stylesheets/checksanity.css %%NAGIOSWWWDIR%%/stylesheets/cmd.css @@ -374,6 +379,7 @@ etc/nagios/resource.cfg-sample @dirrm %%NAGIOSWWWDIR%%/docs @dirrm %%NAGIOSWWWDIR%%/images/logos @dirrm %%NAGIOSWWWDIR%%/images +@dirrm %%NAGIOSWWWDIR%%/includes @dirrm %%NAGIOSWWWDIR%%/media @dirrm %%NAGIOSWWWDIR%%/ssi @dirrm %%NAGIOSWWWDIR%%/stylesheets |