1# $FreeBSD$ 2# 3# Author: Harti Brandt <harti@freebsd.org> 4 5CONTRIB=${.CURDIR}/../../../contrib/bsnmp 6.PATH: ${CONTRIB}/snmpd 7 8PROG= bsnmpd 9SRCS= main.c action.c config.c export.c trap.c trans_udp.c trans_lsock.c 10SRCS+= oid.h tree.c tree.h 11XSYM= snmpMIB begemotSnmpdModuleTable begemotSnmpd begemotTrapSinkTable \ 12 sysUpTime snmpTrapOID coldStart authenticationFailure \ 13 begemotSnmpdTransUdp begemotSnmpdTransLsock begemotSnmpdLocalPortTable \ 14 freeBSDVersion 15CLEANFILES= oid.h tree.c tree.h 16MAN= bsnmpd.1 snmpmod.3 17WARNS?= 6 18NO_WERROR= 19 20FILESGROUPS= BMIBS DEFS 21 22BMIBS= FOKUS-MIB.txt BEGEMOT-MIB.txt BEGEMOT-SNMPD.txt 23BMIBSDIR= ${SHAREDIR}/snmp/mibs 24DEFS= tree.def 25DEFSDIR= ${SHAREDIR}/snmp/defs 26 27CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I. -DUSE_LIBBEGEMOT 28CFLAGS+= -DUSE_TCPWRAPPERS -DQUADFMT='"llu"' -DQUADXFMT='"llx"' 29CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR_H -DHAVE_STRLCPY 30DPADD= ${LIBBEGEMOT} ${LIBBSNMP} ${LIBWRAP} 31LDADD= -lbegemot -lbsnmp -lwrap 32 33LDFLAGS= -export-dynamic 34 35oid.h: tree.def Makefile 36 gensnmptree -e ${XSYM} < ${.ALLSRC:M*.def} > ${.TARGET} 37 38.ORDER: tree.c tree.h 39tree.c tree.h: tree.def 40 gensnmptree -l < ${.ALLSRC} 41 42MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \ 43 -e 's%@DEFPATH@%${DEFSDIR}/%g' \ 44 -e 's%@MIBSPATH@%${BMIBSDIR}/%g' 45 46.include <bsd.prog.mk> 47