Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ipf Build gluons
details: https://anonhg.NetBSD.org/src/rev/3320273cbed6
branches: trunk
changeset: 778376:3320273cbed6
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 23 21:29:44 2012 +0000
description:
Build gluons
diffstat:
external/bsd/ipf/Makefile | 5 +
external/bsd/ipf/Makefile.inc | 36 +
external/bsd/ipf/bin/Makefile | 6 +
external/bsd/ipf/bin/Makefile.inc | 2 +
external/bsd/ipf/bin/ipf/Makefile | 44 ++
external/bsd/ipf/bin/ipfs/Makefile | 6 +
external/bsd/ipf/bin/ipfstat/Makefile | 9 +
external/bsd/ipf/bin/ipftest/Makefile | 105 +++++
external/bsd/ipf/bin/ipftest/bpf-ipf.h | 452 ++++++++++++++++++++++
external/bsd/ipf/bin/ipftest/bpf_filter.c | 595 ++++++++++++++++++++++++++++++
external/bsd/ipf/bin/ipmon/Makefile | 37 +
external/bsd/ipf/bin/ipnat/Makefile | 39 +
external/bsd/ipf/bin/ippool/Makefile | 37 +
external/bsd/ipf/bin/ipresend/Makefile | 11 +
external/bsd/ipf/bin/ipsend/Makefile | 38 +
external/bsd/ipf/bin/iptest/Makefile | 11 +
external/bsd/ipf/lib/Makefile | 147 +++++++
external/bsd/ipf/rules/Makefile | 17 +
18 files changed, 1597 insertions(+), 0 deletions(-)
diffs (truncated from 1669 to 300 lines):
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/Makefile Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2012/03/23 21:29:44 christos Exp $
+
+SUBDIR+= lib .WAIT bin rules
+
+.include <bsd.subdir.mk>
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/Makefile.inc Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/03/23 21:29:44 christos Exp $
+
+WARNS?= 1 # XXX -Wcast-qual -Wshadow
+CWARNFLAGS.clang+= -Wno-format -Wno-tautological-compare \
+ -Wno-self-assign -Wno-array-bounds
+
+.include <bsd.own.mk>
+
+USE_FORT?= yes # network client/server
+
+UDIST=${NETBSDSRCDIR}/external/bsd/ipf/dist
+SDIST=${NETBSDSRCDIR}/sys/external/bsd/ipf
+
+CPPFLAGS+= -I${UDIST}
+CPPFLAGS+= -I${UDIST}/tools
+CPPFLAGS+= -I${SDIST}
+CPPFLAGS+= -I${SDIST}/netinet
+CPPFLAGS+= -DSTATETOP -D__UIO_EXPOSE
+CPPFLAGS+= -DINET
+
+.if (${USE_INET6} == "no")
+CPPFLAGS+= -DNOINET6
+.else
+CPPFLAGS+= -DINET6
+.endif
+
+IPFOBJDIR!= cd ${UDIST}/../lib && ${PRINTOBJDIR}
+DPADD+= ${IPFOBJDIR}/libipf.a ${LIBKVM}
+LDADD+= -L${IPFOBJDIR} -lipf -lkvm
+
+CLEANFILES+= y.tab.c y.tab.h
+
+.PATH: ${UDIST} \
+ ${UDIST}/lib \
+ ${UDIST}/tools \
+ ${UDIST}/man
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/Makefile Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2012/03/23 21:29:44 christos Exp $
+
+SUBDIR+= ipf ipfs ipfstat ipftest ipmon ipnat ippool ipresend
+SUBDIR+= ipsend iptest
+
+.include <bsd.subdir.mk>
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/Makefile.inc Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/03/23 21:29:44 christos Exp $
+.include "../Makefile.inc"
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/ipf/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/ipf/Makefile Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2012/03/23 21:29:44 christos Exp $
+
+.include <bsd.own.mk> # for MKDYNAMICROOT definition
+
+PROG= ipf
+SRCS= ipf.c ipfcomp.c ipf_y.c ipf_l.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
+CPPFLAGS+= -I.
+
+DPSRCS+= ipf_l.h ipf_y.h
+
+CLEANFILES+= ipf_y.c ipf_y.h
+CLEANFILES+= ipf_l.c ipf_l.h
+
+ipf_y.c: ipf_y.y
+ ${_MKTARGET_CREATE}
+ ${YACC} -d ${.ALLSRC}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \
+ y.tab.c > ${.TARGET}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ y.tab.h > ${.TARGET:.c=.h}
+
+ipf_y.h: ipf_y.c
+
+ipf_l.c: lexer.c
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ -e 's/y.tab.h/ipf_y.h/' \
+ -e 's/lexer.h/ipf_l.h/' \
+ ${.ALLSRC} > ${.TARGET}
+
+ipf_l.h: lexer.h
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ ${.ALLSRC} > ${.TARGET}
+
+BINDIR= /sbin
+.if (${MKDYNAMICROOT} == "no")
+LDSTATIC?= -static
+.endif
+
+.include <bsd.prog.mk>
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/ipfs/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/ipfs/Makefile Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2012/03/23 21:29:44 christos Exp $
+
+PROG= ipfs
+MAN= ipfs.8
+
+.include <bsd.prog.mk>
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/ipfstat/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/ipfstat/Makefile Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2012/03/23 21:29:45 christos Exp $
+
+PROG= ipfstat
+SRCS= ipfstat.c
+MAN= ipfstat.8
+DPADD+= ${LIBCURSES} ${LIBTERMINFO}
+LDADD+= -lcurses -lterminfo
+
+.include <bsd.prog.mk>
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/ipftest/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/ipftest/Makefile Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,105 @@
+# $NetBSD: Makefile,v 1.1 2012/03/23 21:29:45 christos Exp $
+
+.include <bsd.own.mk>
+
+PROG= ipftest
+SRCS= ipftest.c fil.c ip_frag.c ip_state.c ip_nat.c ip_nat6.c \
+ ip_proxy.c ip_auth.c ip_htable.c ip_lookup.c \
+ ip_dstlist.c ip_pool.c ip_sync.c \
+ ip_fil.c ip_log.c ippool_y.c ippool_l.c ipf_y.c \
+ ipf_l.c ipnat_y.c ipnat_l.c md5.c radix_ipf.c bpf_filter.c
+MAN= ipftest.1
+
+CPPFLAGS+= -DIPFILTER_LOG -DIPFILTER_LOOKUP \
+ -DIPFILTER_SYNC -DIPFILTER_CKSUM \
+ -I.
+
+COPTS.radix.c= -Wno-error
+COPTS+= -fno-strict-aliasing
+
+.PATH: ${NETBSDSRCDIR}/sys/dist/ipf/netinet
+
+DPSRCS+= ipnat_l.h ipnat_y.h ippool_l.h ippool_y.h ipf_l.h ipf_y.h
+
+CLEANFILES+= ipf_y.c ipf_y.h
+CLEANFILES+= ipf_l.c ipf_l.h
+CLEANFILES+= ipf.tab.c ipf.tab.h
+CLEANFILES+= ipnat_y.c ipnat_y.h
+CLEANFILES+= ipnat_l.c ipnat_l.h
+CLEANFILES+= ipnat.tab.c ipnat.tab.h
+CLEANFILES+= ippool_y.c ippool_y.h
+CLEANFILES+= ippool_l.c ippool_l.h
+CLEANFILES+= ippool.tab.c ippool.tab.h
+
+ipnat_y.c: ipnat_y.y
+ ${_MKTARGET_CREATE}
+ ${YACC} -b ipnat -d ${.ALLSRC}
+ ${TOOL_SED} -e 's/yy/ipnat_yy/g' \
+ -e 's/y.tab.c/ipnat_y.c/' \
+ -e s/\"ipnat_y.y\"/\"..\\/tools\\/ipnat_y.y\"/ \
+ ipnat.tab.c > ${.TARGET}
+ ${TOOL_SED} -e 's/yy/ipnat_yy/g' \
+ -e 's/y.tab.h/ipnat_y.h/' \
+ ipnat.tab.h > ${.TARGET:.c=.h}
+
+ipnat_y.h: ipnat_y.c
+
+ipnat_l.c: lexer.c
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ipnat_yy/g' \
+ -e 's/y.tab.h/ipnat_y.h/' \
+ -e 's/lexer.h/ipnat_l.h/' \
+ ${.ALLSRC} > ${.TARGET}
+
+ipnat_l.h: lexer.h
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ipnat_yy/g' \
+ ${.ALLSRC} > ${.TARGET}
+
+ippool_y.c: ippool_y.y
+ ${_MKTARGET_CREATE}
+ ${YACC} -b ippool -d ${.ALLSRC}
+ ${TOOL_SED} -e 's/yy/ippool_yy/g' \
+ -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
+ ippool.tab.c > ${.TARGET}
+ ${TOOL_SED} -e 's/yy/ippool_yy/g' \
+ ippool.tab.h > ${.TARGET:.c=.h}
+
+ippool_y.h: ippool_y.c
+
+ippool_l.c: lexer.c
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ippool_yy/g' \
+ -e 's/y.tab.h/ippool_y.h/' \
+ -e 's/lexer.h/ippool_l.h/' \
+ ${.ALLSRC} > ${.TARGET}
+
+ippool_l.h: lexer.h
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ippool_yy/g' \
+ ${.ALLSRC} > ${.TARGET}
+
+ipf_y.c: ipf_y.y
+ ${_MKTARGET_CREATE}
+ ${YACC} -b ipf -d ${.ALLSRC}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \
+ ipf.tab.c > ${.TARGET}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ ipf.tab.h > ${.TARGET:.c=.h}
+
+ipf_y.h: ipf_y.c
+
+ipf_l.c: lexer.c
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ -e 's/y.tab.h/ipf_y.h/' \
+ -e 's/lexer.h/ipf_l.h/' \
+ ${.ALLSRC} > ${.TARGET}
+
+ipf_l.h: lexer.h
+ ${_MKTARGET_CREATE}
+ ${TOOL_SED} -e 's/yy/ipf_yy/g' \
+ ${.ALLSRC} > ${.TARGET}
+
+.include <bsd.prog.mk>
diff -r 423997f1b8b8 -r 3320273cbed6 external/bsd/ipf/bin/ipftest/bpf-ipf.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/ipf/bin/ipftest/bpf-ipf.h Fri Mar 23 21:29:44 2012 +0000
@@ -0,0 +1,452 @@
+/* $NetBSD: bpf-ipf.h,v 1.1 2012/03/23 21:29:45 christos Exp $ */
+
+/*-
+ * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
+ * The Regents of the University of California. All rights reserved.
+ *
+ * This code is derived from the Stanford/CMU enet packet filter,
+ * (net/enet.c) distributed as part of 4.3BSD, and code contributed
+ * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
+ * Berkeley Laboratory.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * @(#)bpf.h 7.1 (Berkeley) 5/7/91
+ *
+ * @(#) Header: /devel/CVS/IP-Filter/bpf-ipf.h,v 2.2 2007/10/25 17:03:18 darrenr Exp (LBL)
+ */
+
+#ifndef BPF_MAJOR_VERSION
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* BSD style release date */
Home |
Main Index |
Thread Index |
Old Index