aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp53
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2007-03-03 21:00:16 +0800
committerkuriyama <kuriyama@FreeBSD.org>2007-03-03 21:00:16 +0800
commit71b06dd4cd9934054af23c803ca789046ffcb67b (patch)
tree48ba11bdf08b0a6a446829cdf1dfa495f3fc6245 /net-mgmt/net-snmp53
parent408be82a7dd238aa5bf3e323a7e729626a2f2d58 (diff)
downloadfreebsd-ports-gnome-71b06dd4cd9934054af23c803ca789046ffcb67b.tar.gz
freebsd-ports-gnome-71b06dd4cd9934054af23c803ca789046ffcb67b.tar.zst
freebsd-ports-gnome-71b06dd4cd9934054af23c803ca789046ffcb67b.zip
- Fix wrong syscall for Total Memory.
PR: ports/108126 Submitted by: brd
Diffstat (limited to 'net-mgmt/net-snmp53')
-rw-r--r--net-mgmt/net-snmp53/Makefile2
-rw-r--r--net-mgmt/net-snmp53/files/patch-memory_freebsd2.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile
index 83964517c081..9bfc68e0f934 100644
--- a/net-mgmt/net-snmp53/Makefile
+++ b/net-mgmt/net-snmp53/Makefile
@@ -7,7 +7,7 @@
PORTNAME= snmp
PORTVERSION= 5.3.1
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= net-snmp
diff --git a/net-mgmt/net-snmp53/files/patch-memory_freebsd2.c b/net-mgmt/net-snmp53/files/patch-memory_freebsd2.c
new file mode 100644
index 000000000000..310cad53506e
--- /dev/null
+++ b/net-mgmt/net-snmp53/files/patch-memory_freebsd2.c
@@ -0,0 +1,11 @@
+--- agent/mibgroup/ucd-snmp/memory_freebsd2.c Sat Mar 3 19:40:34 2007
++++ agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Sat Mar 3 19:39:57 2007
+@@ -256,7 +256,7 @@
+
+ u_long phys_mem;
+ size_t phys_mem_size = sizeof(phys_mem);
+- int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
++ int phys_mem_mib[] = { CTL_HW, HW_PHYSMEM };
+
+ #ifdef BUFSPACE_SYMBOL
+ long bufspace;