From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Sa6kl-0002nK-NA for ptxdist@pengutronix.de; Thu, 31 May 2012 16:53:31 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1Sa6kl-00046v-M2 for ptxdist@pengutronix.de; Thu, 31 May 2012 16:53:31 +0200 Date: Thu, 31 May 2012 16:53:31 +0200 From: Michael Olbrich Message-ID: <20120531145331.GG10627@pengutronix.de> References: <1338208981-8681-20-git-send-email-bartvdrmeulen@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1338208981-8681-20-git-send-email-bartvdrmeulen@gmail.com> Subject: Re: [ptxdist] [PATCH] ebtables: Add new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Mon, May 28, 2012 at 02:42:46PM +0200, Bart vdr. Meulen wrote: > From: "Bart vdr. Meulen" > > Add ebtables, an administration tool for ethernet frame filtering > > Signed-off-by: Bart vdr. Meulen > --- > rules/ebtables.in | 40 +++++++++++++++++++++ > rules/ebtables.make | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 138 insertions(+) > create mode 100644 rules/ebtables.in > create mode 100644 rules/ebtables.make > > diff --git a/rules/ebtables.in b/rules/ebtables.in > new file mode 100644 > index 0000000..d6ca932 > --- /dev/null > +++ b/rules/ebtables.in > @@ -0,0 +1,40 @@ > +## SECTION=networking > + > +menuconfig EBTABLES > + tristate > + prompt "ebtables" > + select KERNEL_HEADER > + help > + Ethernet bridge frame table administration > + Ebtables is used to set up, maintain, and inspect the tables of > + Ethernet frame rules in the Linux kernel. It is analogous to iptables, > + but operates at the MAC layer rather than the IP layer. > + > +if EBTABLES > + > +config EBTABLES_INSTALL_TOOLS > + bool remove this option. Either nothing is installed, which is useless, or this is enabled. > + > +config EBTABLES_INSTALL_EBTABLES > + bool "install ebtables" > + select EBTABLES_INSTALL_TOOLS > + help > + install the ebtables command > + > +config EBTABLES_INSTALL_EBTABLES_RESTORE > + bool "install ebtables-restore" > + select EBTABLES_INSTALL_TOOLS > + help > + The ebtables-restore command is used to restore > + the ebtables rule-set that was saved with the > + ebtables-save command. > + > +config EBTABLES_INSTALL_EBTABLES_SAVE > + bool "install ebtables-save" > + select EBTABLES_INSTALL_TOOLS > + help > + The ebtables-save command is a tool to save > + the current rule-set into a file that > + ebtables-restore can use. same as with arptables > + > +endif > diff --git a/rules/ebtables.make b/rules/ebtables.make > new file mode 100644 > index 0000000..cfaff7d > --- /dev/null > +++ b/rules/ebtables.make > @@ -0,0 +1,98 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2011 by Bart vdr. Meulen > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_EBTABLES) += ebtables > + > +# > +# Paths and names > +# > +EBTABLES_VERSION := 2.0.10-1 > +EBTABLES_MD5 := 33b9ff7c9b605605c705418f17812714 > +EBTABLES := ebtables-v$(EBTABLES_VERSION) > +EBTABLES_SUFFIX := tar.gz > +EBTABLES_URL := $(PTXCONF_SETUP_SFMIRROR)/ebtables/ebtables/ebtables-2-0-10-1/$(EBTABLES).$(EBTABLES_SUFFIX) > +EBTABLES_SOURCE := $(SRCDIR)/$(EBTABLES).$(EBTABLES_SUFFIX) > +EBTABLES_DIR := $(BUILDDIR)/$(EBTABLES) > +EBTABLES_LICENSE := GPLv2 > + > +# ---------------------------------------------------------------------------- > +# Get > +# ---------------------------------------------------------------------------- > + > +$(EBTABLES_SOURCE): > + @$(call targetinfo) > + @$(call get, EBTABLES) remove > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +EBTABLES_CONF_TOOL := NO > +EBTABLES_MAKE_OPT := \ > + $(CROSS_ENV_CFLAGS) \ > + $(CROSS_ENV_CPPFLAGS) \ > + $(CROSS_ENV_LDFLAGS) \ > + $(CROSS_ENV_CC) \ > + KERNEL_INCLUDES=$(KERNEL_HEADERS_DIR)/include > +EBTABLES_INSTALL_OPT := \ > + BINDIR=/usr/sbin install > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/ebtables.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, ebtables) > + @$(call install_fixup, ebtables,PRIORITY,optional) > + @$(call install_fixup, ebtables,SECTION,base) > + @$(call install_fixup, ebtables,AUTHOR,"Bart vdr. Meulen ") > + @$(call install_fixup, ebtables,DESCRIPTION,missing) > + > +ifdef PTXCONF_EBTABLES_INSTALL_EBTABLES > + @$(call install_copy, ebtables, 0, 0, 0755, -, \ > + /usr/sbin/ebtables) > +endif > + > +ifdef PTXCONF_EBTABLES_INSTALL_EBTABLES_SAVE > + @$(call install_copy, ebtables, 0, 0, 0755, -, \ > + /usr/sbin/ebtables-save) > +endif > + > +ifdef PTXCONF_EBTABLES_INSTALL_EBTABLES_RESTORE > + @$(call install_copy, ebtables, 0, 0, 0755, -, \ > + /usr/sbin/ebtables-restore) > +endif > + > +ifdef PTXCONF_EBTABLES_INSTALL_TOOLS > + @$(call install_copy, ebtables, 0, 0, 0644, -, \ > + /etc/ethertypes) > + @$(call install_tree, ebtables, 0, 0, \ > + $(EBTABLES_PKGDIR)/usr/lib, \ -, should work. > + /usr/lib) > +endif > + > + @$(call install_finish, ebtables) > + > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Clean > +# ---------------------------------------------------------------------------- > + > +#$(STATEDIR)/ebtables.clean: > +# @$(call targetinfo) > +# @$(call clean_pkg, EBTABLES) remove Michael > + > +# vim: syntax=make > -- > 1.7.9.5 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de