1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00

Fix detection of FreeBSD version

Submitted by:	Jordi Sanfeliu (upstream)
This commit is contained in:
Chris Rees 2014-09-09 15:42:10 +00:00
parent de46e6061c
commit 6e2fd8fc00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367743
2 changed files with 12 additions and 0 deletions

View File

@ -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/ \

View File

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