Initial bmake scaffolding for ipfilter userland stuff.

Obtained from: large chunks stolen from OpenBSD and NetBSD
This commit is contained in:
Peter Wemm 1998-03-21 13:53:18 +00:00
parent 6314ca637f
commit 5021f7402d
13 changed files with 156 additions and 1 deletions

View File

@ -12,6 +12,8 @@ SUBDIR= disklabel dmesg dset dump dumpfs \
scsiformat shutdown slattach startslip spppcontrol tunefs \
umount
SUBDIR+=ipf
.if exists(${.CURDIR}/${MACHINE})
SUBDIR+= ${MACHINE}
.endif

12
sbin/ipf/Makefile Normal file
View File

@ -0,0 +1,12 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipf
MAN1= ipf.1
MAN4= ipf.4
MAN5= ipf.5
SRCS= ipf.c parse.c opt.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

10
sbin/ipfstat/Makefile Normal file
View File

@ -0,0 +1,10 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipfstat
MAN8= ipfstat.8
SRCS= fils.c parse.c opt.c kmem.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

11
sbin/ipmon/Makefile Normal file
View File

@ -0,0 +1,11 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipmon
MAN1= ipmon.8
SRCS= ipmon.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

12
sbin/ipnat/Makefile Normal file
View File

@ -0,0 +1,12 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipnat
MAN1= ipnat.1
MAN4= ipnat.4
MAN5= ipnat.5
SRCS= ipnat.c kmem.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

View File

@ -1,5 +1,5 @@
# From: @(#)Makefile 5.20 (Berkeley) 6/12/93
# $Id: Makefile,v 1.115 1998/02/18 13:48:37 msmith Exp $
# $Id: Makefile,v 1.116 1998/03/13 19:43:12 jb Exp $
# XXX MISSING: mkproto
SUBDIR= ac accton adduser amd arp bootparamd cdcontrol chown chroot ckdist \
@ -16,6 +16,8 @@ SUBDIR= ac accton adduser amd arp bootparamd cdcontrol chown chroot ckdist \
SUBDIR+=IPXrouted
SUBDIR+=ipfstat ipftest ipmon ipnat ipresend ipsend iptest
.if ${MACHINE_ARCH} == "i386"
SUBDIR+=kvm_mkdb natd pcvt pnpinfo pstat rndcontrol wlconfig

10
usr.sbin/ipfstat/Makefile Normal file
View File

@ -0,0 +1,10 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipfstat
MAN8= ipfstat.8
SRCS= fils.c parse.c opt.c kmem.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

20
usr.sbin/ipftest/Makefile Normal file
View File

@ -0,0 +1,20 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../sys/netinet \
${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipftest
MAN1= ipftest.1
SRCS= opt_ipfilter.h \
ipt.c fil.c ipft_hx.c ipft_sn.c ipft_ef.c ipft_td.c ipft_pc.c \
ipft_tx.c misc.c parse.c opt.c ip_frag.c ip_nat.c ip_state.c \
ip_auth.c ip_fil.c ip_proxy.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.OBJDIR} -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
CLEANFILES+= opt_ipfilter.h
opt_ipfilter.h: Makefile
echo "#define IPFILTER 1" > opt_ipfilter.h
.include <bsd.prog.mk>

11
usr.sbin/ipmon/Makefile Normal file
View File

@ -0,0 +1,11 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipmon
MAN1= ipmon.8
SRCS= ipmon.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

12
usr.sbin/ipnat/Makefile Normal file
View File

@ -0,0 +1,12 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter ${.CURDIR}/../../contrib/ipfilter/man
PROG= ipnat
MAN1= ipnat.1
MAN4= ipnat.4
MAN5= ipnat.5
SRCS= ipnat.c kmem.c
CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -I- -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../sys -I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

View File

@ -0,0 +1,15 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter/ipsend \
${.CURDIR}/../../contrib/ipfilter
PROG= ipresend
MAN1= ipresend.1
SRCS= ipresend.c ip.c resend.c opt.c ipft_ef.c ipft_hx.c ipft_sn.c ipft_td.c ipft_tx.c sbpf.c 44arp.c ipft_pc.c
CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" \
-I- -I${.CURDIR}/../../sys/netinet \
-I${.CURDIR}/../../contrib/ipfilter/ipsend \
-I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>

23
usr.sbin/ipsend/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/ipfilter/ipsend \
${.CURDIR}/../../../contrib/ipfilter/iplang \
${.CURDIR}/../../../contrib/ipfilter
PROG= ipsend
MAN1= ipsend.1
MAN5= ipsend.5
SRCS= ipsend.c ip.c ipsopt.c sbpf.c sock.c 44arp.c iplang_y.y iplang_l.l
CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" \
-I- -I. -I${.CURDIR}/../../../sys/netinet \
-I${.CURDIR}/../../../contrib/ipfilter/ipsend \
-I${.CURDIR}/../../../contrib/ipfilter/iplang \
-I${.CURDIR}/../../../contrib/ipfilter
LDADD+= -lfl
DPADD+= ${LIBFL}
CLEANFILES+= y.tab.h
.include <bsd.prog.mk>

15
usr.sbin/iptest/Makefile Normal file
View File

@ -0,0 +1,15 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../contrib/ipfilter/ipsend \
${.CURDIR}/../../contrib/ipfilter
PROG= iptest
MAN1= iptest.1
SRCS= iptest.c iptests.c ip.c sbpf.c 44arp.c sock.c
CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" \
-I- -I${.CURDIR}/../../sys/netinet \
-I${.CURDIR}/../../contrib/ipfilter/ipsend \
-I${.CURDIR}/../../contrib/ipfilter
.include <bsd.prog.mk>