A rather trivial patch, but useful :-)
/Niels
--
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers --- R W Hamming
diff --git a/agent/mibgroup/host/data_access/swinst.h
b/agent/mibgroup/host/data_access/swinst.h
index 887c355..591e957 100644
--- a/agent/mibgroup/host/data_access/swinst.h
+++ b/agent/mibgroup/host/data_access/swinst.h
@@ -26,7 +26,7 @@ config_exclude(host/hr_swinst)
#elif defined( HAVE_LIBRPM ) && defined( linux )
config_require(host/data_access/swinst_rpm)
#elif defined( HAVE_PKGLOCS_H ) || defined( hpux9 ) || defined( hpux10 ) ||
defined( hpux11 ) || defined( freebsd2 ) || defined( linux )
- config_require(host/data_access/swinst_pkginfo)
+ config_require(host/data_access/swinst_pkginfo) || defined( openbsd )
#else
config_warning(This platform does not yet support hrSWInstalledTable
rewrites)
config_require(host/data_access/swinst_null)
diff --git a/agent/mibgroup/host/data_access/swinst_pkginfo.c
b/agent/mibgroup/host/data_access/swinst_pkginfo.c
index 327ca70..965a7ef 100644
--- a/agent/mibgroup/host/data_access/swinst_pkginfo.c
+++ b/agent/mibgroup/host/data_access/swinst_pkginfo.c
@@ -59,7 +59,7 @@ netsnmp_swinst_arch_init(void)
snprintf( pkg_directory, SNMP_MAXPATH, "/system" );
#elif defined(hpux10) || defined(hpux11)
snprintf( pkg_directory, SNMP_MAXPATH, "/var/adm/sw/products" );
-#elif defined(freebsd2)
+#elif defined(freebsd2) || defined(openbsd)
snprintf( pkg_directory, SNMP_MAXPATH, "/var/db/pkg" );
#elif defined(linux)
snprintf( pkg_directory, SNMP_MAXPATH, "/var/cache/hrmib" );
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders