aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2014-09-09 23:42:10 +0800
committercrees <crees@FreeBSD.org>2014-09-09 23:42:10 +0800
commita2c1a5fa4490f319a6f759ddf4fe175b70dd95b3 (patch)
tree00d3902d9903a5737bf2e8fbd73fe80cf670080a /sysutils
parent6eb8cd13e8e94c0e95ff415ce759e60f034767f2 (diff)
downloadfreebsd-ports-gnome-a2c1a5fa4490f319a6f759ddf4fe175b70dd95b3.tar.gz
freebsd-ports-gnome-a2c1a5fa4490f319a6f759ddf4fe175b70dd95b3.tar.zst
freebsd-ports-gnome-a2c1a5fa4490f319a6f759ddf4fe175b70dd95b3.zip
Fix detection of FreeBSD version
Submitted by: Jordi Sanfeliu (upstream)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/monitorix/Makefile1
-rw-r--r--sysutils/monitorix/files/patch-lib__net.pm11
2 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/monitorix/Makefile b/sysutils/monitorix/Makefile
index bdb9743ac4f8..c28a1696d1e9 100644
--- a/sysutils/monitorix/Makefile
+++ b/sysutils/monitorix/Makefile
@@ -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/ \
diff --git a/sysutils/monitorix/files/patch-lib__net.pm b/sysutils/monitorix/files/patch-lib__net.pm
new file mode 100644
index 000000000000..e0f5eee10b6b
--- /dev/null
+++ b/sysutils/monitorix/files/patch-lib__net.pm
@@ -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(' ', $_);