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

Chris Rees crees at FreeBSD.org
Tue Sep 9 15:42:11 UTC 2014


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(' ', $_);


More information about the svn-ports-head mailing list