Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.snmpmod.mk
Show All 26 Lines | |||||
DEFSDIR?= ${SHAREDIR}/snmp/defs | DEFSDIR?= ${SHAREDIR}/snmp/defs | ||||
.endif | .endif | ||||
.if defined(BMIBS) | .if defined(BMIBS) | ||||
FILESGROUPS+= BMIBS | FILESGROUPS+= BMIBS | ||||
BMIBSDIR?= ${SHAREDIR}/snmp/mibs | BMIBSDIR?= ${SHAREDIR}/snmp/mibs | ||||
.endif | .endif | ||||
DEFSPACKAGE= bsnmp | |||||
BMIBSPACKAGE= bsnmp | |||||
.if !target(smilint) && !empty(BMIBS) | .if !target(smilint) && !empty(BMIBS) | ||||
LOCALBASE?= /usr/local | LOCALBASE?= /usr/local | ||||
SMILINT?= ${LOCALBASE}/bin/smilint | SMILINT?= ${LOCALBASE}/bin/smilint | ||||
SMIPATH?= ${BMIBSDIR}:${LOCALBASE}/share/snmp/mibs | SMIPATH?= ${BMIBSDIR}:${LOCALBASE}/share/snmp/mibs | ||||
SMILINT_FLAGS?= -c /dev/null -l6 -i group-membership | SMILINT_FLAGS?= -c /dev/null -l6 -i group-membership | ||||
smilint: ${BMIBS} | smilint: ${BMIBS} | ||||
SMIPATH=${SMIPATH} ${SMILINT} ${SMILINT_FLAGS} ${.ALLSRC} | SMIPATH=${SMIPATH} ${SMILINT} ${SMILINT_FLAGS} ${.ALLSRC} | ||||
.endif | .endif | ||||
smilint: .PHONY | smilint: .PHONY | ||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |