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 19DEFS= ${MOD}_tree.def 20INCS= snmp_${MOD}.h 21BMIBS= BEGEMOT-IP-MIB.txt BEGEMOT-MIB2-MIB.txt 22 23.include <bsd.snmpmod.mk> 24 25smilint: 26 env SMIPATH=/usr/share/snmp/mibs:/usr/local/share/snmp/mibs \ 27 smilint -c /dev/null -l6 -i group-membership ${BMIBS:C/^/${CONTRIB}\/snmp_mibII\//} 28