summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2013-04-05 18:20:08 +0000
committerchristos <christos@pkgsrc.org>2013-04-05 18:20:08 +0000
commit9b2d3481cb403cf6b70c83c1b971b99375aba2bf (patch)
tree4691afdbd0afc03330660cf2e9757deca7fb5ffa /net
parent4b434caedd12274324d84ede4309d56ddc677d86 (diff)
downloadpkgsrc-9b2d3481cb403cf6b70c83c1b971b99375aba2bf.tar.gz
welcome to pl2.
- support for multi-cpu state reporting - fix bug with storage calculation (use frsize instead bsize)
Diffstat (limited to 'net')
-rw-r--r--net/net-snmp/Makefile4
-rw-r--r--net/net-snmp/distinfo3
-rw-r--r--net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c13
3 files changed, 17 insertions, 3 deletions
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile
index e2d035bd1af..1e2399d3486 100644
--- a/net/net-snmp/Makefile
+++ b/net/net-snmp/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.96 2013/04/04 20:00:35 christos Exp $
+# $NetBSD: Makefile,v 1.97 2013/04/05 18:20:08 christos Exp $
DISTNAME= net-snmp-5.7.2
CATEGORIES= net
-PKGREVISION= 1
+PKGREVISION= 2
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/}
MAINTAINER= adam@NetBSD.org
diff --git a/net/net-snmp/distinfo b/net/net-snmp/distinfo
index fac16335f88..77aa118cd9c 100644
--- a/net/net-snmp/distinfo
+++ b/net/net-snmp/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.75 2013/04/05 07:59:20 tron Exp $
+$NetBSD: distinfo,v 1.76 2013/04/05 18:20:08 christos Exp $
SHA1 (net-snmp-5.7.2.tar.gz) = c493027907f32400648244d81117a126aecd27ee
RMD160 (net-snmp-5.7.2.tar.gz) = 392d643e9f2f42ee4fa688b4702329ad005ee12e
@@ -7,6 +7,7 @@ SHA1 (patch-ac) = 59987ecb9467b1cead9af3d4432a4dd69be93480
SHA1 (patch-af) = 4fb96b79f9126dedb8a132d44894ea23c9e8c101
SHA1 (patch-ag) = d9595eceeb5ee986ab4365f62e3c3ab339e605aa
SHA1 (patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c) = b528783f44b15f49eb1a65f919c7a5ec48fe7022
+SHA1 (patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c) = 7fc48c58c8f5bc73caaf3990ef61a94fb856e208
SHA1 (patch-agent_mibgroup_hardware_memory_memory__netbsd.c) = f04d66f823bf2b49401e6d9a62db4b39ed679907
SHA1 (patch-agent_mibgroup_host_data__access_swrun__kinfo.c) = 054866e7c3ac90f183fd4a6d53763a5bba50572c
SHA1 (patch-agent_mibgroup_mibII_ipAddr.c) = cd3345a4b30fe2280d0555ee38feb5f957a55b1e
diff --git a/net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c b/net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c
new file mode 100644
index 00000000000..8da5ac961fb
--- /dev/null
+++ b/net/net-snmp/patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c,v 1.1 2013/04/05 18:20:08 christos Exp $
+
+--- agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig 2013-04-05 13:53:53.000000000 -0400
++++ agent/mibgroup/hardware/fsys/fsys_getfsstats.c 2013-04-05 13:54:19.000000000 -0400
+@@ -154,7 +154,7 @@
+ entry->path[sizeof(entry->path)-1] = '\0';
+ strlcpy( entry->device, stats[i].f_mntfromname, sizeof(entry->device));
+ entry->device[sizeof(entry->device)-1] = '\0';
+- entry->units = stats[i].f_bsize; /* or f_frsize */
++ entry->units = stats[i].f_frsize;
+ entry->size = stats[i].f_blocks;
+ entry->used = (stats[i].f_blocks - stats[i].f_bfree);
+ /* entry->avail is currently unsigned, so protect against negative