From 7b001e5d5edaab2abb29840bc32847edd30b01b5 Mon Sep 17 00:00:00 2001 From: darrenr Date: Mon, 16 May 2005 16:22:55 +0000 Subject: Enable building /sbin/ipf (but not the rescue version) with the ability to parse bpf strings for filter rules in ipf.conf --- sbin/ipf/ipf/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin/ipf') diff --git a/sbin/ipf/ipf/Makefile b/sbin/ipf/ipf/Makefile index 820de39..e0b887f 100644 --- a/sbin/ipf/ipf/Makefile +++ b/sbin/ipf/ipf/Makefile @@ -1,10 +1,10 @@ # $FreeBSD$ PROG= ipf -SRCS= ipf.c ipfcomp.c ipf_y.c ipf_l.c +SRCS= ipf.c ipfcomp.c ipf_y.c ipf_l.c bpf_filter.c MAN= ipf.8 ipf.4 ipf.5 ipl.4 MLINKS= ipl.4 ipfilter.4 ipf.5 ipf.conf.5 ipf.5 ipf6.conf.5 -CFLAGS+= -I. +CFLAGS+= -I. -DIPFILTER_BPF DPSRCS+= ipf_l.h ipf_y.h @@ -34,6 +34,8 @@ ipf_l.h: lexer.h .if defined(RESCUE) LIBIPF_SRCS!= cd ${.CURDIR}/../libipf && ${MAKE} -V SRCS SRCS+= ${LIBIPF_SRCS} +.else +LDADD+= -lpcap .endif .include -- cgit v1.1