svn commit: r304539 - in head/sysutils/monitorix: . files

Chris Rees crees at FreeBSD.org
Wed Sep 19 19:07:37 UTC 2012


Author: crees
Date: Wed Sep 19 19:07:36 2012
New Revision: 304539
URL: http://svn.freebsd.org/changeset/ports/304539

Log:
  Enter Monitorix 2.6.0!
  
  Please check the README on important configuration file changes, especially
  the @FS_LIST property which has changed.
  
  - Added a complete statistical BIND graph.
  - Added support for NetBSD systems.
  - Added support for grouping remote servers in the Multihost view.
  	(thanks to Hartmut Woehrle, hartmut AT hartmut-woehrle.ch)
  - The Disk and Filesystems Usage and I/O Activity graphs have been completely
    rewritten.
  	(suggested by Konstantinos Skarlatos, k.skarlatos AT gmail.com)
  - Added support to monitor unlimited number of disk drives.
  - Added support to monitor unlimited number of filesystems.
  - Reorganized the legend in the Disk drive temperatures and health graph.
  - Changed the shebang to be more portable among different systems.
  - Completely rewritten the Debian/Ubuntu init script.
  	(suggested by Andreas Itzchak Rehberg, izzy AT qumran.org)
  - Minor changes in the header of the Debian/Ubuntu init script.
  	(thanks to Uwe Heidrich, uweheidrich AT hotmail.com)
  - Expanded to 15 characters the description in network ports.
  - Changed to lines a bit thicker some graphs with few values.
  - Added a new feature to enable/disable the use of javascript:void function when
    clicking on a zoomable graph.
  	(thanks to Florian E.J. Fruth, fejf AT gmx.de)
  - Fixed a bug that mixed the collected values when monitoring multiple MySQL
    servers.
  	(thanks to Piotr Smalira, p.smalira AT g16-lublin.eu)
  - Fixed a bad percentage calculation in the dentries and inodes values.
  - Removed useless code when collecting Squid stats.
  - Fixed a typo in a MySQL graph.

Modified:
  head/sysutils/monitorix/Makefile
  head/sysutils/monitorix/distinfo
  head/sysutils/monitorix/files/patch-monitorix

Modified: head/sysutils/monitorix/Makefile
==============================================================================
--- head/sysutils/monitorix/Makefile	Wed Sep 19 18:29:13 2012	(r304538)
+++ head/sysutils/monitorix/Makefile	Wed Sep 19 19:07:36 2012	(r304539)
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	monitorix
-PORTVERSION=	2.5.2
-PORTREVISION?=	2
+PORTVERSION=	2.6.0
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.monitorix.org/ \
 		http://www.monitorix.org/old_versions/ \
@@ -22,7 +21,8 @@ LIB_DEPENDS=	rrd:${PORTSDIR}/databases/r
 RUN_DEPENDS=	p5-ParallelUA>=0:${PORTSDIR}/www/p5-ParallelUA \
 		p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm \
 		p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
-		p5-MIME-Lite>=0:${PORTSDIR}/mail/p5-MIME-Lite
+		p5-MIME-Lite>=0:${PORTSDIR}/mail/p5-MIME-Lite \
+		p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple
 
 USE_PERL5=	5.12+
 MAN5=		monitorix.conf.5
@@ -63,7 +63,7 @@ pre-everything::
 
 post-patch:
 .for f in monitorix.cgi monitorix.conf monitorix reports/send_reports
-	@${REINPLACE_CMD} -e "1s|^\(#!\).*|\1${PERL}|" \
+	@${REINPLACE_CMD} -e "1s|^\(#!\).*|\1/usr/bin/env perl|" \
 		${WRKSRC}/${f}
 .endfor
 # eth0 doesn't exist in FreeBSD! Also let's set our own paths.
@@ -80,8 +80,8 @@ post-patch:
 
 do-install:
 	@${INSTALL_SCRIPT} ${WRKSRC}/monitorix ${PREFIX}/bin/
-	@${MKDIR} ${WWWDIR}/imgs
-	@${CHOWN} ${WWW_OWNER}:${WWW_GROUP} ${WWWDIR}/imgs
+	@${MKDIR} ${WWWDIR}
+	@${INSTALL} -d -o ${WWW_OWNER} -g ${WWW_GROUP} ${WWWDIR}/imgs
 .for f in ${WWW_FILES}
 	@${INSTALL_DATA} ${WRKSRC}/${f} ${WWWDIR}/
 .endfor
@@ -107,7 +107,8 @@ do-install:
 post-install:
 	@${MKDIR} ${DATADIR}
 	@${MKDIR} ${WWWDIR}/usage
-	@${INSTALL_DATA} ${WRKSRC}/monitorix.conf ${PREFIX}/etc/monitorix.conf.sample
+	@${INSTALL_DATA} ${WRKSRC}/monitorix.conf \
+		${PREFIX}/etc/monitorix.conf.sample
 	@if [ ! -f ${PREFIX}/etc/monitorix.conf ]; then \
 		${CP} -p ${PREFIX}/etc/monitorix.conf.sample \
 			${PREFIX}/etc/monitorix.conf ; \

Modified: head/sysutils/monitorix/distinfo
==============================================================================
--- head/sysutils/monitorix/distinfo	Wed Sep 19 18:29:13 2012	(r304538)
+++ head/sysutils/monitorix/distinfo	Wed Sep 19 19:07:36 2012	(r304539)
@@ -1,2 +1,2 @@
-SHA256 (monitorix-2.5.2.tar.gz) = 8e059886b6a14cff50b022960571c935604eba6b4d92151bbd4d27c5a0cb9ea2
-SIZE (monitorix-2.5.2.tar.gz) = 127155
+SHA256 (monitorix-2.6.0.tar.gz) = 0e909a06fd5156d7f2b6604da9175dc5d79309b29d2c904c479eb2fb2d1f5c23
+SIZE (monitorix-2.6.0.tar.gz) = 137386

Modified: head/sysutils/monitorix/files/patch-monitorix
==============================================================================
--- head/sysutils/monitorix/files/patch-monitorix	Wed Sep 19 18:29:13 2012	(r304538)
+++ head/sysutils/monitorix/files/patch-monitorix	Wed Sep 19 19:07:36 2012	(r304539)
@@ -1,27 +1,19 @@
---- monitorix.orig	2011-05-04 18:19:58.792045586 +0100
-+++ monitorix	2011-05-04 18:46:51.729913889 +0100
-@@ -1654,10 +1654,8 @@
- 		alarm $TIMEOUT;
- 		open(IN, "df -P / |");
- 		while(<IN>) {
--			if(/dev/ && /\//) {
--				($root_disk) = split(' ', $_);
--				last;
--			}
-+			next if /Filesystem/;
-+			($root_disk) = split;
- 		}
- 		close(IN);
- 		alarm 0;
-@@ -1734,9 +1732,8 @@
+--- monitorix.orig	2012-09-19 19:10:51.216974158 +0100
++++ monitorix	2012-09-19 19:32:41.617971604 +0100
+@@ -2293,8 +2293,14 @@
+ 					}
+ 				}
+ 			} elsif($os eq "FreeBSD" || $os eq "OpenBSD" || $os eq "NetBSD") {
+-				$d =~ s/^.*dev\///;	# remove the /dev/ prefix
+-				$d =~ s/^(...).*/\1/;	# get the first 3 chars
++				# remove the /dev/ prefix
++				if ($d =~ s/^.*dev\///) {
++					# not ZFS; get the device name, eg ada0; md0; ad10
++					$d =~ s/^(\D+\d*)\D.*/\1/;	
++				} else {
++					# Just take ZFS pool name
++					$d =~ s,^([^/]*)/.*,\1,;
++				}
  			}
- 		}
- 	} elsif($os eq "FreeBSD") {
--		$root_disk =~ s/^.*dev\///;	# remove the /dev/ prefix
--#		$root_disk =~ s/.*\///;		# removes /dev/
--		$root_disk =~ s/...$//;		# removes part number
-+		$root_disk =~ s/^.dev.//;	# remove the /dev/ prefix
-+		$root_disk =~ s/[sp][0-9][a-z]?$//;	# removes part number
- 	}
- 
- 	# do exists in /proc/diskstats?
+ 			$FS_DEV{$fs} = $d;
+ 			logger("$myself: Detected physical device name for $fs in '$d'.") unless !$opt_d;



More information about the svn-ports-all mailing list