summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2008-04-28 22:33:53 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2008-04-28 22:33:53 +0000
commitc1830a37f80e2d583f1819554b74e7e14f29e200 (patch)
tree33041b3d764d3e4d31906535f8633ba6502bd935 /net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h
parent- Fix a typo (diff)
o Fix regression in 5.4.1 - the custom FreeBSD vmstat code is not compiled
in making number of popular OIDs unavailable. o Fix issue with retrieving CPU stats in 6.3-STABLE and upper. The problem is that the cp_time symbol is no longer avaliable in the nevest kernels. Use kern.cp_time sysctl which has been around for 8 years or so, so that it should be present virtually in every FreeBSD version that is able to use modern ports tree (4.x and upper). Sysctl is also better from the security standpoint, as you don't need elevated privileges to get the data. One should probably look at converting few others uses of KVM here, but ENOTIME from me. The patch has been submitted to the vendor. Sponsored by: Sippy Software, Inc., http://www.sippysoft.com Approved by: MAINTAINER
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h')
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h b/net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h
new file mode 100644
index 000000000000..476951ce818c
--- /dev/null
+++ b/net-mgmt/net-snmp-devel/files/patch-ucd_snmp.h
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- agent/mibgroup/ucd_snmp.h.orig
++++ agent/mibgroup/ucd_snmp.h
+@@ -13,5 +13,10 @@
+ config_require(ucd-snmp/logmatch)
+ config_require(ucd-snmp/memory)
+ config_require(ucd-snmp/vmstat)
++config_arch_require(freebsd4, ucd-snmp/vmstat_freebsd2)
++config_arch_require(freebsd5, ucd-snmp/vmstat_freebsd2)
++config_arch_require(freebsd6, ucd-snmp/vmstat_freebsd2)
++config_arch_require(freebsd7, ucd-snmp/vmstat_freebsd2)
++config_arch_require(freebsd8, ucd-snmp/vmstat_freebsd2)
+ config_add_mib(UCD-SNMP-MIB)
+ config_add_mib(UCD-DEMO-MIB)