mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ebtables: Add new package
@ 2012-05-28 12:42 Bart vdr. Meulen
  2012-05-31 14:53 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bart vdr. Meulen @ 2012-05-28 12:42 UTC (permalink / raw)
  To: ptxdist

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
+
+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 <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)
+
+# ----------------------------------------------------------------------------
+# 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, \
+		/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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-31 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-28 12:42 [ptxdist] [PATCH] ebtables: Add new package Bart vdr. Meulen
2012-05-31 14:53 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox