...
 
Commits (4)
AC_INIT([libvirt-snmp],[0.0.3],[libvir-list@redhat.com],[],[https://libvirt.org])
AC_INIT([libvirt-snmp],[0.0.4],[libvir-list@redhat.com],[],[https://libvirt.org])
AC_CONFIG_SRCDIR(src/libvirtSnmp.c)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
......@@ -73,6 +73,14 @@ if test "x$with_mibdir" = "x" ; then
MIB_DIR=$(echo $MIB_DIR | awk -F : '{print $NF}')
AC_MSG_RESULT([found $MIB_DIR])
dnl Replace net-snmp's exec_prefix with our own.
dnl Note that ${exec_prefix} is kept verbatim at this point in time,
dnl and will only be expanded later, when make is called: this makes
dnl it possible to override such prefix at compilation or installation
dnl time
MIB_PREFIX="`$SNMP_CONFIG --prefix`"
MIB_DIR='${exec_prefix}'"${MIB_DIR#$MIB_PREFIX}"
else
AC_MSG_CHECKING([accessibility of $with_mibdir])
if test ! -d "$with_mibdir" ; then
......
......@@ -37,6 +37,15 @@ make install DESTDIR=$RPM_BUILD_ROOT
%changelog
* Thu Oct 25 2018 Michal Privoznik <mprivozn@redhat.com> 0.0.4-1
- Replace placeholder org OID with libvirt OID (BZ: 1603154)
- Fix object OIDs for SNMP traps (BZ: 1624839)
- Send sysUptime in traps (BZ: 1624879)
- Modernize spec file
- Cleaned up some old code and rewritten it to use new Libvirt APIs
- Fixed build with newer net-snmp package
- Some bug fixes
* Fri Sep 7 2012 Michal Privoznik <mprivozn@redhat.com> 0.0.3-1
- various bug fixes and improvements
......
......@@ -228,8 +228,8 @@ int
libvirtGuestTable_container_load(netsnmp_container *container)
{
if (libvirtSnmpLoadGuests(container))
return MFD_ERROR;
return MFD_SUCCESS;
return MFD_ERROR;
return MFD_SUCCESS;
} /* libvirtGuestTable_container_load */
/**
......
......@@ -354,7 +354,7 @@ libvirtSnmpDestroy(unsigned char *uuid)
ret = 0;
cleanup:
virDomainFree(dom);
return 0;
return ret;
}
int
......