update for mkfilters(1).
This commit is contained in:
parent
423fabec06
commit
ca3ac8917a
@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
#
|
||||
# Copyright (c) 1996 Matthew R. Green
|
||||
# All rights reserved.
|
||||
@ -67,12 +67,9 @@ cd $d/src/usr.sbin/ipf
|
||||
|
||||
echo creating main Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
SUBDIR= ipf ipfstat ipmon ipnat ipftest ipsend iptest
|
||||
.if make(install)
|
||||
SUBDIR+= rules
|
||||
.endif
|
||||
SUBDIR= ipf ipfstat ipmon ipnat ipftest ipsend iptest rules
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
__eof_makefile
|
||||
@ -83,7 +80,7 @@ cd $d/src/usr.sbin/ipf
|
||||
|
||||
echo creating main Makefile.inc
|
||||
cat > Makefile.inc<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
WARNS?= 1
|
||||
|
||||
@ -104,7 +101,7 @@ cd $d/src/usr.sbin/ipf/ipf
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipf
|
||||
SRCS= ipf.c parse.c opt.c
|
||||
@ -131,7 +128,7 @@ cd $d/src/usr.sbin/ipf/ipfstat
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipfstat
|
||||
SRCS= kmem.c fils.c opt.c parse.c
|
||||
@ -157,7 +154,7 @@ cd $d/src/usr.sbin/ipf/ipftest
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipftest
|
||||
SRCS= ipt.c ipft_sn.c ipft_ef.c ipft_td.c ipft_pc.c opt.c ipft_tx.c misc.c ip_frag.c ip_state.c ip_nat.c ipft_hx.c ip_fil.c fil.c parse.c ip_proxy.c ip_auth.c
|
||||
@ -182,7 +179,7 @@ cd $d/src/usr.sbin/ipf/ipmon
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipmon
|
||||
MAN= ipmon.8
|
||||
@ -207,7 +204,7 @@ mv ipnat.1 ipnat.8
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipnat
|
||||
SRCS= kmem.c ipnat.c
|
||||
@ -232,7 +229,7 @@ cd $d/src/usr.sbin/ipf/ipresend
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipresend
|
||||
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
|
||||
@ -259,7 +256,7 @@ cd $d/src/usr.sbin/ipf/ipsend
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= ipsend
|
||||
SRCS= ipsend.c ip.c ipsopt.c 44arp.c sbpf.c iplang_l.l iplang_y.y
|
||||
@ -288,7 +285,7 @@ cd $d/src/usr.sbin/ipf/iptest
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
PROG= iptest
|
||||
SRCS= iptest.c iptests.c ip.c sbpf.c 44arp.c sock.c
|
||||
@ -303,25 +300,29 @@ __eof_makefile
|
||||
### start of rules ##############################
|
||||
cd $r
|
||||
echo rules:
|
||||
file=mkfilters
|
||||
man=mkfilters.1
|
||||
|
||||
pax -rvw rules $d/src/usr.sbin/ipf
|
||||
pax -rvw $file $d/src/usr.sbin/ipf/rules
|
||||
cd man; pax -rvw $man $d/src/usr.sbin/ipf/rules
|
||||
|
||||
cd $d/src/usr.sbin/ipf/rules
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
FILESDIR= /usr/share/examples/ipf
|
||||
MAN= mkfilters.1
|
||||
|
||||
FILES= BASIC.NAT BASIC_1.FW BASIC_2.FW example.1 example.2 example.3 \
|
||||
example.4 example.5 example.6 example.7 example.8 example.9 \
|
||||
example.10 example.sr firewall ftp-proxy ftppxy nat-setup \
|
||||
nat.eg server tcpstate
|
||||
|
||||
all:
|
||||
nat.eg server tcpstate mkfilters
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include <bsd.man.mk>
|
||||
.include <bsd.files.mk>
|
||||
__eof_makefile
|
||||
### end of rules ###############################
|
||||
@ -345,7 +346,7 @@ cd $d/src/sys/lkm/netinet/if_ipl
|
||||
|
||||
echo creating Makefile
|
||||
cat > Makefile<<'__eof_makefile'
|
||||
# $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $
|
||||
# $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -372,7 +373,7 @@ find $d -name '*.[chly]' -print | while read c; do
|
||||
< $c > /tmp/ipf2n$$ && mv /tmp/ipf2n$$ $c && echo transformed $c
|
||||
sed 1q < $c | grep '\$NetBSD' || (
|
||||
cat <<'__eof_header'
|
||||
/* $NetBSD: ipfilter2netbsd,v 1.14 1997/11/13 09:46:41 veego Exp $ */
|
||||
/* $NetBSD: ipfilter2netbsd,v 1.15 1997/11/23 20:59:42 veego Exp $ */
|
||||
|
||||
__eof_header
|
||||
cat $c
|
||||
|
Loading…
Reference in New Issue
Block a user