aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2011-09-07 01:49:27 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2011-09-07 01:49:27 +0000
commit70cc253a68d646cced4b45a8e4a20b7c335af583 (patch)
treeb0fb7fed8360728da5767c8aa07ffb3040ce7909 /net-mgmt
parent93ec5151289c0f8f3a38fc5bc6ae1ae8a0485a70 (diff)
downloadports-70cc253a68d646cced4b45a8e4a20b7c335af583.tar.gz
ports-70cc253a68d646cced4b45a8e4a20b7c335af583.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp/Makefile2
-rw-r--r--net-mgmt/net-snmp/files/patch-agent-mibgroup-ucd-snmp_disk_hw.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 2dd030394a60..350e546b6a43 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= snmp
PORTVERSION= 5.7
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt ipv6
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= net-
diff --git a/net-mgmt/net-snmp/files/patch-agent-mibgroup-ucd-snmp_disk_hw.c b/net-mgmt/net-snmp/files/patch-agent-mibgroup-ucd-snmp_disk_hw.c
new file mode 100644
index 000000000000..db9cbd1dff78
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-agent-mibgroup-ucd-snmp_disk_hw.c
@@ -0,0 +1,11 @@
+--- agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-06 22:38:43.000000000 -0300
++++ agent/mibgroup/ucd-snmp/disk_hw.c 2011-09-06 22:40:13.000000000 -0300
+@@ -245,7 +245,7 @@
+
+
+ static int _percent( int value, int total ) {
+- return (int)( value * 100 ) / total;
++ return (int)( value / (total / 100));
+ }
+
+ static netsnmp_fsys_info **