From owner-svn-ports-head@FreeBSD.ORG Wed Sep 19 19:07:37 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5800A1065670; Wed, 19 Sep 2012 19:07:37 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 390CE8FC0C; Wed, 19 Sep 2012 19:07:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8JJ7bAi050470; Wed, 19 Sep 2012 19:07:37 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8JJ7aDw050466; Wed, 19 Sep 2012 19:07:36 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201209191907.q8JJ7aDw050466@svn.freebsd.org> From: Chris Rees Date: Wed, 19 Sep 2012 19:07:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304539 - in head/sysutils/monitorix: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 19:07:37 -0000 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() { -- 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;