2005-04-25 18:55:52 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
Create packages for atm, ccdconfig, devd, ipf, ipfw,
iscsi, natd, nandfs, pf, quotacheck, and routed.
Add ping6 and rtsol to the runtime package.
Sponsored by: The FreeBSD Foundation
2016-02-09 19:30:31 +00:00
|
|
|
PACKAGE= ipf
|
2005-04-25 18:55:52 +00:00
|
|
|
PROG= ipmon
|
2006-09-10 08:58:47 +00:00
|
|
|
SRCS= ${GENHDRS} ipmon.c ipmon_y.c ipmon_l.c
|
2019-06-27 02:43:26 +00:00
|
|
|
MAN= ipmon.5 ipmon.8
|
2019-06-27 12:37:44 +00:00
|
|
|
MLINKS= ipmon.5 ipmon.conf.5
|
2005-04-25 18:55:52 +00:00
|
|
|
|
|
|
|
CFLAGS+= -DLOGFAC=LOG_LOCAL0 -I.
|
|
|
|
|
2006-09-10 08:58:47 +00:00
|
|
|
GENHDRS+= ipmon_l.h ipmon_y.h
|
|
|
|
CLEANFILES+= ${GENHDRS} ipmon_y.c ipmon_l.c
|
2005-04-25 18:55:52 +00:00
|
|
|
|
|
|
|
ipmon_y.c: ipmon_y.y
|
|
|
|
${YACC} -d ${.ALLSRC}
|
|
|
|
sed -e 's/yy/ipmon_yy/g' \
|
|
|
|
-e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \
|
|
|
|
y.tab.c > ${.TARGET}
|
|
|
|
sed -e 's/yy/ipmon_yy/g' \
|
|
|
|
y.tab.h > ${.TARGET:.c=.h}
|
|
|
|
|
|
|
|
ipmon_y.h: ipmon_y.c
|
|
|
|
|
|
|
|
ipmon_l.c: lexer.c
|
|
|
|
sed -e 's/yy/ipmon_yy/g' \
|
|
|
|
-e 's/y.tab.h/ipmon_y.h/' \
|
|
|
|
-e 's/lexer.h/ipmon_l.h/' \
|
|
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
ipmon_l.h: lexer.h
|
|
|
|
sed -e 's/yy/ipmon_yy/g' \
|
|
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|