1# $FreeBSD$ 2# 3# Author: Harti Brandt <harti@freebsd.org> 4 5CONTRIB= ${.CURDIR}/../../../../contrib/bsnmp 6.PATH: ${CONTRIB}/snmp_mibII 7 8MOD= mibII 9SRCS= mibII.c mibII_begemot.c mibII_ifmib.c mibII_ifstack.c \ 10 mibII_interfaces.c mibII_ip.c mibII_ipaddr.c mibII_nettomedia.c \ 11 mibII_rcvaddr.c mibII_route.c mibII_tcp.c mibII_udp.c 12XSYM= ipAddrTable ifTable ifRcvAddressEntry ifMIB ipMIB tcpMIB udpMIB \ 13 ipForward ifIndex linkDown linkUp 14MAN= snmp_mibII.3 15 16CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd 17CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H 18# XXX Work around clang warning, until maintainer approves fix. 19NO_WERROR.clang= 20 21DEFS= ${MOD}_tree.def 22INCS= snmp_${MOD}.h 23BMIBS= BEGEMOT-IP-MIB.txt BEGEMOT-MIB2-MIB.txt 24 25.include <bsd.snmpmod.mk> 26 27smilint: 28 env SMIPATH=/usr/share/snmp/mibs:/usr/local/share/snmp/mibs \ 29 smilint -c /dev/null -l6 -i group-membership ${BMIBS:C/^/${CONTRIB}\/snmp_mibII\//} 30