Update for the static ipnat programm.

This commit is contained in:
veego 1998-01-23 22:34:12 +00:00
parent a0f14625a7
commit ccd79b8dca

View File

@ -1,6 +1,6 @@
#! /bin/sh
#
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
#
# Copyright (c) 1996 Matthew R. Green
# All rights reserved.
@ -67,7 +67,7 @@ cd $d/src/usr.sbin/ipf
echo creating main Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
SUBDIR= ipf ipfstat ipftest ipmon ipnat ipresend ipsend iptest rules
@ -80,7 +80,7 @@ cd $d/src/usr.sbin/ipf
echo creating main Makefile.inc
cat > Makefile.inc<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
WARNS?= 1
@ -101,7 +101,7 @@ cd $d/src/usr.sbin/ipf/ipf
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
PROG= ipf
SRCS= ipf.c parse.c opt.c
@ -128,7 +128,7 @@ cd $d/src/usr.sbin/ipf/ipfstat
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
PROG= ipfstat
SRCS= kmem.c fils.c opt.c parse.c
@ -154,7 +154,7 @@ cd $d/src/usr.sbin/ipf/ipftest
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 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
@ -179,7 +179,7 @@ cd $d/src/usr.sbin/ipf/ipmon
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
PROG= ipmon
MAN= ipmon.8
@ -204,7 +204,7 @@ mv ipnat.1 ipnat.8
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
PROG= ipnat
SRCS= kmem.c ipnat.c
@ -212,6 +212,9 @@ MAN= ipnat.8 ipnat.4 ipnat.5
MLINKS= ipnat.5 ipnat.conf.5
CPPFLAGS+=-I${.CURDIR}/../ipf -I${.CURDIR}/../ipfstat
BINDIR= /sbin
LDSTATIC= -static
.PATH: ${.CURDIR}/../ipf ${.CURDIR}/../ipfstat
.include <bsd.prog.mk>
__eof_makefile
@ -229,7 +232,7 @@ cd $d/src/usr.sbin/ipf/ipresend
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 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 ipft_pc.c
@ -256,7 +259,7 @@ cd $d/src/usr.sbin/ipf/ipsend
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
PROG= ipsend
SRCS= ipsend.c ip.c ipsopt.c 44arp.c sbpf.c iplang_l.l iplang_y.y
@ -285,7 +288,7 @@ cd $d/src/usr.sbin/ipf/iptest
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
PROG= iptest
SRCS= iptest.c iptests.c ip.c sbpf.c 44arp.c sock.c
@ -311,7 +314,7 @@ cd $d/src/usr.sbin/ipf/rules
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
FILESDIR= /usr/share/examples/ipf
MAN= mkfilters.1
@ -346,7 +349,7 @@ cd $d/src/sys/lkm/netinet/if_ipl
echo creating Makefile
cat > Makefile<<'__eof_makefile'
# $NetBSD: ipfilter2netbsd,v 1.16 1997/11/23 23:20:08 veego Exp $
# $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $
.include "../Makefile.inc"
@ -373,7 +376,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.16 1997/11/23 23:20:08 veego Exp $ */
/* $NetBSD: ipfilter2netbsd,v 1.17 1998/01/23 22:34:12 veego Exp $ */
__eof_header
cat $c