From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from cl-420.ede-01.nl.sixxs.net ([2001:7b8:2ff:1a3::2] helo=fischmarkt.penguin.de ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzfe-0002vc-Us for ptxdist@pengutronix.de; Mon, 28 May 2012 15:07:42 +0200 Received: from mail-wg0-f50.google.com ([74.125.82.50]) by fischmarkt.penguin.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzIL-000103-7Q for ptxdist@pengutronix.de; Mon, 28 May 2012 14:43:49 +0200 Received: by wgbds11 with SMTP id ds11so2204148wgb.7 for ; Mon, 28 May 2012 05:43:27 -0700 (PDT) From: "Bart vdr. Meulen" Date: Mon, 28 May 2012 14:42:46 +0200 Message-Id: <1338208981-8681-20-git-send-email-bartvdrmeulen@gmail.com> Subject: [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: , MIME-Version: 1.0 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 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 + +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. + +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) + +# ---------------------------------------------------------------------------- +# 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, \ + /usr/lib) +endif + + @$(call install_finish, ebtables) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/ebtables.clean: +# @$(call targetinfo) +# @$(call clean_pkg, EBTABLES) + +# vim: syntax=make -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de