]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- rather quick hack to make net-snmp use /var/cache/hrmib export from rpm instead...
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 20 Feb 2008 19:28:17 +0000 (19:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    net-snmp-use-rpm-hrmib.patch -> 1.1

net-snmp-use-rpm-hrmib.patch [new file with mode: 0644]

diff --git a/net-snmp-use-rpm-hrmib.patch b/net-snmp-use-rpm-hrmib.patch
new file mode 100644 (file)
index 0000000..d2b1fbe
--- /dev/null
@@ -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)
+ {
This page took 0.049526 seconds and 4 git commands to generate.