SOURCES: net-snmp-use-rpm-hrmib.patch (NEW) - rather quick hack to...
glen
glen at pld-linux.org
Wed Feb 20 20:28:22 CET 2008
Author: glen Date: Wed Feb 20 19:28:22 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- rather quick hack to make net-snmp use /var/cache/hrmib export from rpm instead of rpmlib query
---- Files affected:
SOURCES:
net-snmp-use-rpm-hrmib.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/net-snmp-use-rpm-hrmib.patch
diff -u /dev/null SOURCES/net-snmp-use-rpm-hrmib.patch:1.1
--- /dev/null Wed Feb 20 20:28:22 2008
+++ SOURCES/net-snmp-use-rpm-hrmib.patch Wed Feb 20 20:28:17 2008
@@ -0,0 +1,21 @@
+--- net-snmp-5.4.1/agent/mibgroup/host/hr_swinst.c~ 2008-02-20 20:14:05.000000000 +0200
++++ net-snmp-5.4.1/agent/mibgroup/host/hr_swinst.c 2008-02-20 20:19:07.078169853 +0200
+@@ -5,6 +5,8 @@
+
+ #include <net-snmp/net-snmp-config.h>
+
++#undef HAVE_LIBRPM
++
+ #if HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+ #endif
+@@ -183,6 +185,9 @@
+ #define _PATH_HRSW_directory "/var/db/pkg"
+ #endif
+
++#undef _PATH_HRSW_directory
++#define _PATH_HRSW_directory "/var/cache/hrmib"
++
+ void
+ init_hr_swinst(void)
+ {
================================================================
More information about the pld-cvs-commit
mailing list