aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2008-07-03 13:35:20 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2008-07-03 13:35:20 +0000
commit98956be584f3066165958d2201c672a5cc4cd800 (patch)
tree5311cf63a549fec73b9daceb2e22a9e421fb71a1 /net-mgmt/net-snmp
parent232bcff2b452fbe22fdacc1924c55f9d7d11c661 (diff)
downloadports-98956be584f3066165958d2201c672a5cc4cd800.tar.gz
ports-98956be584f3066165958d2201c672a5cc4cd800.zip
Notes
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile3
-rw-r--r--net-mgmt/net-snmp/distinfo6
-rw-r--r--net-mgmt/net-snmp/files/patch-memory_freebsd.c13
3 files changed, 15 insertions, 7 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 811a72845f89..08770cbc8302 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= snmp
-PORTVERSION= 5.4.1
-PORTREVISION= 5
+PORTVERSION= 5.4.1.2
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= net-snmp
diff --git a/net-mgmt/net-snmp/distinfo b/net-mgmt/net-snmp/distinfo
index add5fe8aefb6..e02915a0ce75 100644
--- a/net-mgmt/net-snmp/distinfo
+++ b/net-mgmt/net-snmp/distinfo
@@ -1,3 +1,3 @@
-MD5 (net-snmp-5.4.1.tar.gz) = 6c974df7a5a5b1579f72115e6b045bda
-SHA256 (net-snmp-5.4.1.tar.gz) = 0ea976722c993c87dede8eb6348e6feb059e3851bbef2de824bf18ac97cdb565
-SIZE (net-snmp-5.4.1.tar.gz) = 5122455
+MD5 (net-snmp-5.4.1.2.tar.gz) = 2dfcf97d65f3b7d34b78c8d4be11fc83
+SHA256 (net-snmp-5.4.1.2.tar.gz) = 17d67076ab5c5fb6dfaffe70a2757526f99b0638bca102dec27af08ec01a9068
+SIZE (net-snmp-5.4.1.2.tar.gz) = 5123346
diff --git a/net-mgmt/net-snmp/files/patch-memory_freebsd.c b/net-mgmt/net-snmp/files/patch-memory_freebsd.c
index 69e3f6617257..7bf2248c38ed 100644
--- a/net-mgmt/net-snmp/files/patch-memory_freebsd.c
+++ b/net-mgmt/net-snmp/files/patch-memory_freebsd.c
@@ -1,5 +1,5 @@
---- agent/mibgroup/hardware/memory/memory_freebsd.c.orig 2006-03-06 17:23:52.000000000 +0100
-+++ agent/mibgroup/hardware/memory/memory_freebsd.c 2008-04-14 16:45:19.000000000 +0200
+--- agent/mibgroup/hardware/memory/memory_freebsd.c.orig 2006-03-07 01:23:52.000000000 +0900
++++ agent/mibgroup/hardware/memory/memory_freebsd.c 2008-07-03 21:32:46.000000000 +0900
@@ -47,6 +47,9 @@
int phys_mem_mib[] = { CTL_HW, HW_PHYSMEM };
int user_mem_mib[] = { CTL_HW, HW_USERMEM };
@@ -18,6 +18,15 @@
#ifndef freebsd4
pagesize = 1024;
#else
+@@ -70,7 +74,7 @@
+ if (!mem->descr)
+ mem->descr = strdup("Physical memory");
+ mem->units = pagesize;
+- mem->size = user_mem/pagesize;
++ mem->size = phys_mem/pagesize;
+ mem->free = total.t_free;
+ }
+
@@ -129,6 +133,18 @@
mem->free = -1;
}