Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 21:38:11 +1030 (CST)
From:      Jarrod Sayers <jarrod@netleader.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/117742: [maintainer-update] net-mgmt/nagios: Update to 2.10
Message-ID:  <200711011108.lA1B8B2r085576@wallace.netleader.com.au>
Resent-Message-ID: <200711011230.lA1CU4oR012551@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         117742
>Category:       ports
>Synopsis:       [maintainer-update] net-mgmt/nagios: Update to 2.10
>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:   Thu Nov 01 12:30:04 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jarrod Sayers
>Release:        FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD wallace.netleader.com.au 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #99: Sat Oct 6 22:54:56 CST 2007 root@wallace.netleader.com.au:/usr/obj/usr/src/sys/WALLACE i386
>Description:
Update to 2.10:
- Fix for SIGTERMs being seen as SIGEXITs, non-logging of SIGTERMs/shutdowns
- Minor fix for notification timeout log messages
- Fix for not logging passive host check results
- Minor bug fixes in CGIs
- Fix for a segfault when processing passive host check results with empty
  output/perfdata
- Fix for incorrect latency calculation for passive service checks
- Bug fix with attempting to access an uninitalized mutex if external commands
  are disabled
- Fix for keeping service checks in the event queue when active service checks
  are disabled globally
- Fix for a potential cross site scripting vulnerability in the CGIs
- Program version is now displayed in CGIs

In addition to application updates, the port now includes the CONFLICTS flag to
prevent installation on hosts running Nagios 1.x or the current development
stream of 3.x.  A sync of pkg-message.in from net-mgmt/nagios-devel corrects a
few typos and changes default sample Apache config to deny by default.
>How-To-Repeat:
>Fix:
Downloadable diff from:
http://www.netleader.com.au/~jarrod/FreeBSD/net-mgmt-nagios-2.10.diff

--- net-mgmt-nagios-2.10.diff begins here ---
diff -ruN ports/net-mgmt/nagios.orig/Makefile ports/net-mgmt/nagios/Makefile
--- ports/net-mgmt/nagios.orig/Makefile	Sun Sep 30 14:17:18 2007
+++ ports/net-mgmt/nagios/Makefile	Thu Nov  1 20:41:03 2007
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	nagios
-PORTVERSION=	2.9
-PORTREVISION=	2
+PORTVERSION=	2.10
 CATEGORIES=	net-mgmt
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	nagios
@@ -23,6 +22,8 @@
 USE_PERL5_BUILD=	yes
 USE_AUTOTOOLS=	autoconf:261
 USE_RC_SUBR=	nagios.sh
+
+CONFLICTS=	nagios-[13].*
 
 OPTIONS=	EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8+]" OFF \
 		NANOSLEEP "Use nanosleep in event timing" OFF
diff -ruN ports/net-mgmt/nagios.orig/distinfo ports/net-mgmt/nagios/distinfo
--- ports/net-mgmt/nagios.orig/distinfo	Mon Apr 16 04:25:26 2007
+++ ports/net-mgmt/nagios/distinfo	Thu Nov  1 19:59:51 2007
@@ -1,3 +1,3 @@
-MD5 (nagios-2.9.tar.gz) = b6e3a21c91edb063c00712c6001e15ec
-SHA256 (nagios-2.9.tar.gz) = f60a72dec1edef308a899734eff4f7e5167522f1afeb5c24fd1852e2749c5d9d
-SIZE (nagios-2.9.tar.gz) = 1738698
+MD5 (nagios-2.10.tar.gz) = 8c3a29e138f2ff8c8abbd3dd8a40c4b6
+SHA256 (nagios-2.10.tar.gz) = d3e916bd11619259246e12a45aac8761e7318b54ed701472e8e49a03d939e5c8
+SIZE (nagios-2.10.tar.gz) = 1740558
diff -ruN ports/net-mgmt/nagios.orig/files/patch-Makefile.in ports/net-mgmt/nagios/files/patch-Makefile.in
--- ports/net-mgmt/nagios.orig/files/patch-Makefile.in	Sat Dec  9 19:42:24 2006
+++ ports/net-mgmt/nagios/files/patch-Makefile.in	Thu Nov  1 20:11:31 2007
@@ -1,5 +1,5 @@
---- Makefile.in.orig	Tue Nov 28 12:59:04 2006
-+++ Makefile.in	Sat Dec  9 08:04:47 2006
+--- Makefile.in.orig	Tue Apr 24 01:14:25 2007
++++ Makefile.in	Thu Nov  1 20:08:40 2007
 @@ -186,7 +186,7 @@
  	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
  	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
@@ -14,11 +14,11 @@
  
  install-config:
 -	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
--	$(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg-sample
--	$(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg-sample
--	$(INSTALL) -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg-sample
--	$(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/localhost.cfg-sample
--	$(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/commands.cfg-sample
+-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg
+-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg
+-	$(INSTALL) -b -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg
+-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/localhost.cfg
+-	$(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/commands.cfg
 +	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
 +	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg-sample
 +	$(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg-sample
diff -ruN ports/net-mgmt/nagios.orig/files/pkg-message.in ports/net-mgmt/nagios/files/pkg-message.in
--- ports/net-mgmt/nagios.orig/files/pkg-message.in	Wed Jan 11 05:26:39 2006
+++ ports/net-mgmt/nagios/files/pkg-message.in	Thu Nov  1 20:48:29 2007
@@ -1,36 +1,30 @@
 **********************************************************************
 
- Enable nagios in /etc/rc.conf with the following line:
+ Enable Nagios in /etc/rc.conf with the following line:
 
    nagios_enable="YES"
 
  Configuration templates are available in %%PREFIX%%/etc/nagios as
- *.cfg-sample files.  Copy then to *.cfg files where required and
+ *.cfg-sample files.  Copy them to *.cfg files where required and
  edit to suit your needs.  Documentation is available in HTML form
  in %%PREFIX%%/%%NAGIOSWWWDIR%%/docs.
 
  If you don't already have a web server running, you will need to
- install and configure one to finish off your nagios installation.
+ install and configure one to finish off your Nagios installation.
  When used with Apache, the following should be sufficient to publish
- the web component of nagios (modification of allow list encouraged):
+ the web component of Nagios (modify the allow list to suit):
 
    <Directory %%PREFIX%%/%%NAGIOSWWWDIR%%>
-     Order allow,deny
-     Allow from all
+     Order deny,allow
+     Deny from all
+     Allow from 127.0.0.1
    </Directory>
 
    <Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin>
      Options ExecCGI
    </Directory>
 
-  ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/
-  Alias %%NAGIOSHTMURL%%/  %%PREFIX%%/%%NAGIOSWWWDIR%%/
-
-**********************************************************************
-
- Users experiencing troubles with logos used in the Status Map CGI
- should first check the value of the physical_html_path variable
- defined in %%PREFIX%%/etc/nagios/cgi.cfg.  Refer to the example in
- %%PREFIX%%/etc/nagios/cgi.cfg-sample for the correct value.
+   ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/
+   Alias %%NAGIOSHTMURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/
 
 **********************************************************************
--- net-mgmt-nagios-2.10.diff ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711011108.lA1B8B2r085576>