Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2014 15:42:11 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367743 - in head/sysutils/monitorix: . files
Message-ID:  <201409091542.s89FgBX5034395@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Tue Sep  9 15:42:10 2014
New Revision: 367743
URL: http://svnweb.freebsd.org/changeset/ports/367743
QAT: https://qat.redports.org/buildarchive/r367743/

Log:
  Fix detection of FreeBSD version
  
  Submitted by:	Jordi Sanfeliu (upstream)

Added:
  head/sysutils/monitorix/files/patch-lib__net.pm   (contents, props changed)
Modified:
  head/sysutils/monitorix/Makefile

Modified: head/sysutils/monitorix/Makefile
==============================================================================
--- head/sysutils/monitorix/Makefile	Tue Sep  9 15:27:04 2014	(r367742)
+++ head/sysutils/monitorix/Makefile	Tue Sep  9 15:42:10 2014	(r367743)
@@ -2,6 +2,7 @@
 
 PORTNAME=	monitorix
 PORTVERSION=	3.5.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.monitorix.org/ \
 		http://www.monitorix.org/old_versions/ \

Added: head/sysutils/monitorix/files/patch-lib__net.pm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/monitorix/files/patch-lib__net.pm	Tue Sep  9 15:42:10 2014	(r367743)
@@ -0,0 +1,11 @@
+--- lib/net.pm.orig	2014-09-09 15:40:43 UTC
++++ lib/net.pm
+@@ -203,7 +203,7 @@
+ 				while(<IN>) {
+ 					if(/Link/ && /$nl[$n]/) {
+ 						# Idrop column added in 8.0
+-						if($config->{kernel} gt "7.2") {
++						if($config->{kernel} > "7.2") {
+ 							(undef, undef, undef, undef, $net_packs_in[$n], $net_error_in[$n], undef, $net_bytes_in[$n], $net_packs_out[$n], $net_error_out[$n], $net_bytes_out[$n]) = split(' ', $_);
+ 						} else {
+ 							(undef, undef, undef, undef, $net_packs_in[$n], $net_error_in[$n], $net_bytes_in[$n], $net_packs_out[$n], $net_error_out[$n], $net_bytes_out[$n]) = split(' ', $_);



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