ports/132098: [maintainer-update] net-mgmt/nagios-devel: Update to 3.1.0

Jarrod Sayers jarrod at netleader.com.au
Wed Feb 25 13:00:15 UTC 2009


>Number:         132098
>Category:       ports
>Synopsis:       [maintainer-update] net-mgmt/nagios-devel: Update to 3.1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 13:00:13 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jarrod Sayers
>Release:        FreeBSD 7.0-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD manhattan.netleader.com.au 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #7: Mon Jan 19 18:50:08 CST 2009 root at manhattan.netleader.com.au:/usr/obj/usr/src/sys/MANHATTAN i386
>Description:
Update to Nagios 3.1.0 (development branch).

This PR obsoletes ports/131605 (though thanks Martin!) and includes a suggested
hack from ports/131643.  There isn't a clean way to resolve the issue in the
latter PR and from what I have been told, the Nagios team don't see this as a
bug, hence it's "hack" status.

This bump of net-mgmt/nagios-devel also removes statuswrl.cgi which has seemingly
disappeared from the side bar.  It also introduces a requirement for PHP, *sigh*.

Modified Files:
ports/net-mgmt/nagios-devel/Makefile
ports/net-mgmt/nagios-devel/distinfo
ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in
ports/net-mgmt/nagios-devel/files/pkg-message.in
ports/net-mgmt/nagios-devel/pkg-plist

Added Files:
ports/net-mgmt/nagios-devel/files/patch-html__docs__configcgi.html
ports/net-mgmt/nagios-devel/files/patch-sample-config__cgi.cfg.in
>How-To-Repeat:
>Fix:
Downloadable diff from:
http://www.netleader.com.au/~jarrod/FreeBSD/net-mgmt-nagios-devel-3.1.0.diff

--- net-mgmt-nagios-devel-3.1.0.diff begins here ---
diff -ruN ports/net-mgmt/nagios-devel.orig/Makefile ports/net-mgmt/nagios-devel/Makefile
--- ports/net-mgmt/nagios-devel.orig/Makefile	2008-09-03 13:00:37.000000000 +0930
+++ ports/net-mgmt/nagios-devel/Makefile	2009-02-25 11:52:25.000000000 +1030
@@ -6,10 +6,9 @@
 #
 
 PORTNAME=	nagios
-DISTVERSION=	3.0.3
+DISTVERSION=	3.1.0
 CATEGORIES=	net-mgmt
-MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=	nagios
+MASTER_SITES=	SF
 PKGNAMESUFFIX=	-devel
 
 MAINTAINER=	jarrod at netleader.com.au
@@ -22,13 +21,16 @@
 
 USE_ICONV=	yes
 USE_PERL5_BUILD=	yes
+USE_PHP=	yes
 USE_AUTOTOOLS=	autoconf:262 libltdl:15
 USE_RC_SUBR=	nagios.sh
 
-CONFLICTS=	nagios-[12].*
+CONFLICTS=	nagios-[123].*
 
-OPTIONS=	EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8+]" off \
-		NANOSLEEP "Use nanosleep in event timing" off
+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
 
 GNU_CONFIGURE=	yes
 
@@ -60,7 +62,8 @@
 		--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}" \
@@ -84,17 +87,14 @@
 		pkg-deinstall \
 		pkg-message
 
+# XXX: Don't remove PREFIX from SUB_LIST here.
 SUB_LIST=	PREFIX=${PREFIX} \
 		${PLIST_SUB}
 
 .if defined(WITH_EMBEDDED_PERL)
-.if ${PERL_LEVEL} >= 500800
-USE_PERL5=	yes
+USE_PERL5=	5.8.0+
 CONFIGURE_ARGS+=	--enable-embedded-perl \
 		--with-perlcache
-.else
-IGNORE=		embedded Perl requires Perl 5.8 or higher (see lang/perl5.8)
-.endif
 PLIST_SUB+=	EMBEDDED_PERL=""
 .else
 PLIST_SUB+=	EMBEDDED_PERL="@comment "
@@ -104,6 +104,18 @@
 CONFIGURE_ARGS+=	--enable-nanosleep
 .endif
 
+.if defined(WITH_EVENT_BROKER)
+CONFIGURE_ARGS+=	--enable-event-broker
+.else
+CONFIGURE_ARGS+=	--disable-event-broker
+.endif
+
+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.php
+.endif
+
 pre-install:
 	@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
 
diff -ruN ports/net-mgmt/nagios-devel.orig/distinfo ports/net-mgmt/nagios-devel/distinfo
--- ports/net-mgmt/nagios-devel.orig/distinfo	2008-07-05 15:04:56.000000000 +0930
+++ ports/net-mgmt/nagios-devel/distinfo	2009-02-25 10:00:47.000000000 +1030
@@ -1,3 +1,3 @@
-MD5 (nagios-3.0.3.tar.gz) = 151df7bf19b696f7498410fb76fb7caf
-SHA256 (nagios-3.0.3.tar.gz) = 65e96d7da182b40d4f9a8c63da1ef861fdfb9502be36a983f8a2e803f711d53c
-SIZE (nagios-3.0.3.tar.gz) = 2759396
+MD5 (nagios-3.1.0.tar.gz) = 02d3b0e13f772481d0ac9e00bdc3e979
+SHA256 (nagios-3.1.0.tar.gz) = 30b81eb7943805b129d1db18bb67386feb998f9e6464cb2efbea0756499b2651
+SIZE (nagios-3.1.0.tar.gz) = 2724545
diff -ruN ports/net-mgmt/nagios-devel.orig/files/patch-html__Makefile.in ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in
--- ports/net-mgmt/nagios-devel.orig/files/patch-html__Makefile.in	2008-02-02 20:50:45.000000000 +1030
+++ ports/net-mgmt/nagios-devel/files/patch-html__Makefile.in	2009-02-25 10:03:24.000000000 +1030
@@ -1,6 +1,6 @@
---- html/Makefile.in.orig	2008-01-10 04:21:25.000000000 +1030
-+++ html/Makefile.in	2008-01-30 23:02:38.000000000 +1030
-@@ -33,39 +33,39 @@
+--- html/Makefile.in.orig	2008-12-15 04:30:46.000000000 +1030
++++ html/Makefile.in	2009-02-25 10:02:59.000000000 +1030
+@@ -33,42 +33,42 @@
  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,15 +24,16 @@
 +	$(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; \
+ 	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; \
--	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
-+	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
+ #	for file in media/*.wav; \
+-#	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
++#	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
  	for file in stylesheets/*.css; \
 -	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
 +	do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
@@ -59,6 +61,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 -ruN ports/net-mgmt/nagios-devel.orig/files/patch-html__docs__configcgi.html ports/net-mgmt/nagios-devel/files/patch-html__docs__configcgi.html
--- ports/net-mgmt/nagios-devel.orig/files/patch-html__docs__configcgi.html	1970-01-01 09:30:00.000000000 +0930
+++ ports/net-mgmt/nagios-devel/files/patch-html__docs__configcgi.html	2009-02-25 09:40:57.000000000 +1030
@@ -0,0 +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>
+ 
diff -ruN ports/net-mgmt/nagios-devel.orig/files/patch-sample-config__cgi.cfg.in ports/net-mgmt/nagios-devel/files/patch-sample-config__cgi.cfg.in
--- ports/net-mgmt/nagios-devel.orig/files/patch-sample-config__cgi.cfg.in	1970-01-01 09:30:00.000000000 +0930
+++ ports/net-mgmt/nagios-devel/files/patch-sample-config__cgi.cfg.in	2009-02-25 09:40:57.000000000 +1030
@@ -0,0 +1,11 @@
+--- sample-config/cgi.cfg.in.orig	2007-10-08 05:12:52.000000000 +0930
++++ sample-config/cgi.cfg.in	2008-10-23 10:31:31.000000000 +1030
+@@ -229,7 +229,7 @@
+ # OS and distribution, so you may have to tweak this to
+ # work on your system.
+ 
+-ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
++ping_syntax=/sbin/ping -n -c 5 $HOSTADDRESS$
+ 
+ 
+ 
diff -ruN ports/net-mgmt/nagios-devel.orig/files/pkg-message.in ports/net-mgmt/nagios-devel/files/pkg-message.in
--- ports/net-mgmt/nagios-devel.orig/files/pkg-message.in	2007-08-31 00:24:59.000000000 +0930
+++ ports/net-mgmt/nagios-devel/files/pkg-message.in	2009-02-25 10:26:29.000000000 +1030
@@ -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 -ruN ports/net-mgmt/nagios-devel.orig/pkg-plist ports/net-mgmt/nagios-devel/pkg-plist
--- ports/net-mgmt/nagios-devel.orig/pkg-plist	2008-02-02 20:50:45.000000000 +1030
+++ ports/net-mgmt/nagios-devel/pkg-plist	2009-02-25 11:13:03.000000000 +1030
@@ -30,10 +30,10 @@
 %%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
@@ -106,6 +106,7 @@
 %%NAGIOSWWWDIR%%/docs/cgiauth.html
 %%NAGIOSWWWDIR%%/docs/cgiincludes.html
 %%NAGIOSWWWDIR%%/docs/cgis.html
+%%NAGIOSWWWDIR%%/docs/cgisecurity.html
 %%NAGIOSWWWDIR%%/docs/checkscheduling.html
 %%NAGIOSWWWDIR%%/docs/clusters.html
 %%NAGIOSWWWDIR%%/docs/config.html
@@ -318,7 +319,7 @@
 %%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/splunk1.gif
 %%NAGIOSWWWDIR%%/images/splunk2.gif
@@ -344,13 +345,11 @@
 %%NAGIOSWWWDIR%%/images/weblogo1.png
 %%NAGIOSWWWDIR%%/images/zoom1.gif
 %%NAGIOSWWWDIR%%/images/zoom2.gif
-%%NAGIOSWWWDIR%%/index.html
-%%NAGIOSWWWDIR%%/main.html
-%%NAGIOSWWWDIR%%/media/critical.wav
-%%NAGIOSWWWDIR%%/media/hostdown.wav
-%%NAGIOSWWWDIR%%/media/warning.wav
+%%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
@@ -376,6 +375,7 @@
 @dirrm %%NAGIOSWWWDIR%%/docs
 @dirrm %%NAGIOSWWWDIR%%/images/logos
 @dirrm %%NAGIOSWWWDIR%%/images
+ at dirrm %%NAGIOSWWWDIR%%/includes
 @dirrm %%NAGIOSWWWDIR%%/media
 @dirrm %%NAGIOSWWWDIR%%/ssi
 @dirrm %%NAGIOSWWWDIR%%/stylesheets
--- net-mgmt-nagios-devel-3.1.0.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list