summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-21 13:53:18 +0000
committerpeter <peter@FreeBSD.org>1998-03-21 13:53:18 +0000
commit52325b15956a60ed8907cc3b370f71a5473b5eb7 (patch)
treecb1ccb3c5e62d0fdd5b608b49730c11cdaca531d /usr.sbin
parent8643af65b3b3c2f3c8642ed97b509ad4d9840b5a (diff)
downloadFreeBSD-src-52325b15956a60ed8907cc3b370f71a5473b5eb7.zip
FreeBSD-src-52325b15956a60ed8907cc3b370f71a5473b5eb7.tar.gz
Initial bmake scaffolding for ipfilter userland stuff.
Obtained from: large chunks stolen from OpenBSD and NetBSD
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/Makefile4
-rw-r--r--usr.sbin/ipfstat/Makefile10
-rw-r--r--usr.sbin/ipftest/Makefile20
-rw-r--r--usr.sbin/ipmon/Makefile11
-rw-r--r--usr.sbin/ipnat/Makefile12
-rw-r--r--usr.sbin/ipresend/Makefile15
-rw-r--r--usr.sbin/ipsend/Makefile23
-rw-r--r--usr.sbin/iptest/Makefile15
8 files changed, 109 insertions, 1 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index cb9ff12..a4b4063 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -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
diff --git a/usr.sbin/ipfstat/Makefile b/usr.sbin/ipfstat/Makefile
new file mode 100644
index 0000000..200b0b8
--- /dev/null
+++ b/usr.sbin/ipfstat/Makefile
@@ -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>
diff --git a/usr.sbin/ipftest/Makefile b/usr.sbin/ipftest/Makefile
new file mode 100644
index 0000000..60ee314
--- /dev/null
+++ b/usr.sbin/ipftest/Makefile
@@ -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>
diff --git a/usr.sbin/ipmon/Makefile b/usr.sbin/ipmon/Makefile
new file mode 100644
index 0000000..b52523e
--- /dev/null
+++ b/usr.sbin/ipmon/Makefile
@@ -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>
diff --git a/usr.sbin/ipnat/Makefile b/usr.sbin/ipnat/Makefile
new file mode 100644
index 0000000..7daa52d
--- /dev/null
+++ b/usr.sbin/ipnat/Makefile
@@ -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>
diff --git a/usr.sbin/ipresend/Makefile b/usr.sbin/ipresend/Makefile
new file mode 100644
index 0000000..8a9d8b2
--- /dev/null
+++ b/usr.sbin/ipresend/Makefile
@@ -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>
diff --git a/usr.sbin/ipsend/Makefile b/usr.sbin/ipsend/Makefile
new file mode 100644
index 0000000..7e36cf1
--- /dev/null
+++ b/usr.sbin/ipsend/Makefile
@@ -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>
diff --git a/usr.sbin/iptest/Makefile b/usr.sbin/iptest/Makefile
new file mode 100644
index 0000000..f296945
--- /dev/null
+++ b/usr.sbin/iptest/Makefile
@@ -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>
OpenPOWER on IntegriCloud