On Mon, May 28, 2012 at 02:42:46PM +0200, Bart vdr. Meulen wrote:
> From: "Bart vdr. Meulen" <[email protected]>
> 
> Add ebtables, an administration tool for ethernet frame filtering
> 
> Signed-off-by: Bart vdr. Meulen <[email protected]>
> ---
>  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 <[email protected]>
> +#
> +# 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 
> <[email protected]>")
> +     @$(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
> [email protected]
> 

-- 
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
[email protected]

Reply via email to