f0c239fe26
snmpd: - fix trap processing from SMUX peers - fix disman/event monitoring crashes - fix bug 1399369: ifNumber broken - fix re-init of daemons after SIGHUP snmptrapd: - fix bug 1420758/1458815: snmptrapd aborts/loops in select() - fix re-init of daemons after SIGHUP snmplib: - fix OID lookups for fully qualified object names (eg .iso.org) snmpusm: - performance improvement when changing localized keys perl: - The perl modules now check to make sure they're building against the proper Net-SNMP version. misc: - Coverity fixes
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# $NetBSD: builtin.mk,v 1.1 2006/07/29 16:48:27 adam Exp $
|
|
|
|
BUILTIN_PKG:= net-snmp
|
|
|
|
BUILTIN_FIND_FILES_VAR:= H_NETSNMP
|
|
BUILTIN_FIND_FILES.H_NETSNMP= /usr/include/net-snmp/net-snmp-config.h
|
|
|
|
.include "../../mk/buildlink3/bsd.builtin.mk"
|
|
|
|
###
|
|
### Determine if there is a built-in implementation of the package and
|
|
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
|
|
###
|
|
.if !defined(IS_BUILTIN.net-snmp)
|
|
IS_BUILTIN.net-snmp= no
|
|
. if empty(H_NETSNMP:M__nonexistent__) && empty(H_NETSNMP:M${LOCALBASE}/*)
|
|
IS_BUILTIN.net-snmp= yes
|
|
. endif
|
|
.endif
|
|
MAKEVARS+= IS_BUILTIN.net-snmp
|
|
|
|
###
|
|
### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
|
|
### a package name to represent the built-in package.
|
|
###
|
|
.if !defined(BUILTIN_PKG.net-snmp) && \
|
|
!empty(IS_BUILTIN.net-snmp:M[yY][eE][sS]) && \
|
|
empty(H_NETSNMP:M__nonexistent__)
|
|
BUILTIN_VERSION.net-snmp!= \
|
|
${AWK} '/\#define[ ]*PACKAGE_VERSION/ { \
|
|
vers = $$3; \
|
|
gsub("\"", "", vers); \
|
|
print vers; \
|
|
} \
|
|
' ${H_NETSNMP:Q}
|
|
BUILTIN_PKG.net-snmp= net-snmp-${BUILTIN_VERSION.net-snmp}
|
|
.endif
|
|
MAKEVARS+= BUILTIN_PKG.net-snmp
|
|
|
|
###
|
|
### Determine whether we should use the built-in implementation if it
|
|
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
|
|
###
|
|
.if !defined(USE_BUILTIN.net-snmp)
|
|
. if ${PREFER.net-snmp} == "pkgsrc"
|
|
USE_BUILTIN.net-snmp= no
|
|
. else
|
|
USE_BUILTIN.net-snmp= ${IS_BUILTIN.net-snmp}
|
|
. if defined(BUILTIN_PKG.net-snmp) && \
|
|
!empty(IS_BUILTIN.net-snmp:M[yY][eE][sS])
|
|
USE_BUILTIN.net-snmp= yes
|
|
. for _dep_ in ${BUILDLINK_API_DEPENDS.net-snmp}
|
|
. if !empty(USE_BUILTIN.net-snmp:M[yY][eE][sS])
|
|
USE_BUILTIN.net-snmp!= \
|
|
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.net-snmp:Q}; then \
|
|
${ECHO} yes; \
|
|
else \
|
|
${ECHO} no; \
|
|
fi
|
|
. endif
|
|
. endfor
|
|
. endif
|
|
. endif
|
|
.endif
|
|
MAKEVARS+= USE_BUILTIN.net-snmp
|