mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] ebtables: Add new package
Date: Thu, 31 May 2012 16:53:31 +0200	[thread overview]
Message-ID: <20120531145331.GG10627@pengutronix.de> (raw)
In-Reply-To: <1338208981-8681-20-git-send-email-bartvdrmeulen@gmail.com>

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

      reply	other threads:[~2012-05-31 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 12:42 Bart vdr. Meulen
2012-05-31 14:53 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120531145331.GG10627@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox