mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Oliver Graute <oliver.graute@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCHv3] ebtables: this patch adds ebtables to ptxdist
Date: Mon, 25 Jun 2018 11:37:43 +0200	[thread overview]
Message-ID: <20180625093743.GA17519@graute-opti> (raw)

Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
---
 .../ebtables-v2.0.10-4/0001-fixed-returncode.patch | 23 ++++++
 patches/ebtables-v2.0.10-4/series                  |  4 ++
 rules/ebtables.in                                  | 12 ++++
 rules/ebtables.make                                | 82 ++++++++++++++++++++++
 4 files changed, 121 insertions(+)
 create mode 100644 patches/ebtables-v2.0.10-4/0001-fixed-returncode.patch
 create mode 100644 patches/ebtables-v2.0.10-4/series
 create mode 100644 rules/ebtables.in
 create mode 100644 rules/ebtables.make

diff --git a/patches/ebtables-v2.0.10-4/0001-fixed-returncode.patch b/patches/ebtables-v2.0.10-4/0001-fixed-returncode.patch
new file mode 100644
index 0000000..77cc296
--- /dev/null
+++ b/patches/ebtables-v2.0.10-4/0001-fixed-returncode.patch
@@ -0,0 +1,23 @@
+From: Oliver Graute <oliver.graute@neuhaus.de>
+Date: Fri, 27 Nov 2015 11:13:46 +0100
+Subject: [PATCH] fixed returncode
+
+fixed returncode in store_counters_in_file
+
+---
+ communication.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/communication.c b/communication.c
+index 62ed667..ba058c0 100644
+--- a/communication.c
++++ b/communication.c
+@@ -282,7 +282,7 @@ static int store_counters_in_file(char *filename, struct ebt_u_replace *repl)
+ 	}
+ close_file:
+ 	fclose(file);
+-	return 0;
++	return ret;
+ }
+ 
+ /* Gets executed after ebt_deliver_table. Delivers the counters to the kernel
diff --git a/patches/ebtables-v2.0.10-4/series b/patches/ebtables-v2.0.10-4/series
new file mode 100644
index 0000000..05283fe
--- /dev/null
+++ b/patches/ebtables-v2.0.10-4/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-fixed-returncode.patch
+# 5247698c8b551a01103d9b67868658de  - git-ptx-patches magic
diff --git a/rules/ebtables.in b/rules/ebtables.in
new file mode 100644
index 0000000..460aed8
--- /dev/null
+++ b/rules/ebtables.in
@@ -0,0 +1,12 @@
+## SECTION=networking
+
+config EBTABLES
+	tristate
+	prompt "ebtables"
+	help
+	  The ebtables program is a filtering tool for a Linux-based bridging
+	  firewall. It enables transparent filtering of network traffic passing
+	  through a Linux bridge. The filtering possibilities are limited to
+	  link layer filtering and some basic filtering on higher network
+	  layers. Advanced logging, MAC DNAT/SNAT and brouter facilities
+	  are also included.
diff --git a/rules/ebtables.make b/rules/ebtables.make
new file mode 100644
index 0000000..906e40e
--- /dev/null
+++ b/rules/ebtables.make
@@ -0,0 +1,82 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute <oliver.graute@neuhaus.de>
+#
+# 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	:= v2.0.10-4
+EBTABLES_MD5		:= 506742a3d44b9925955425a659c1a8d0
+EBTABLES		:= ebtables-$(EBTABLES_VERSION)
+EBTABLES_SUFFIX	:= tar.gz
+EBTABLES_URL		:= ftp://ftp.netfilter.org/pub/ebtables/$(EBTABLES).$(EBTABLES_SUFFIX)
+EBTABLES_SOURCE	:= $(SRCDIR)/$(EBTABLES).$(EBTABLES_SUFFIX)
+EBTABLES_DIR		:= $(BUILDDIR)/$(EBTABLES)
+EBTABLES_LICENSE	:= GPL-2.0
+
+EBTABLES_CONF_OPT := $(CROSS_AUTOCONF_USR)
+
+EBTABLES_MAKE_ENV := \
+	$(CROSS_ENV)
+
+EBTABLES_MAKE_OPT := \
+	$(CROSS_CC_ENV)\
+	BINDIR=/usr/sbin
+
+# ----------------------------------------------------------------------------
+# 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,"<oliver.graute@neuhaus.de>")
+	@$(call install_fixup, ebtables,DESCRIPTION,missing)
+
+	@$(call install_copy, ebtables, 0, 0, 0755, -, /usr/sbin/ebtables)
+	@$(call install_copy, ebtables, 0, 0, 0755, -, /usr/sbin/ebtables-restore)
+	@$(call install_copy, ebtables, 0, 0, 0755, -, /usr/sbin/ebtables-save)
+	@$(call install_alternative, ebtables, 0, 0, 0644, /etc/ebtables-config)
+	@$(call install_alternative, ebtables, 0, 0, 0644, /etc/ethertypes)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebtc)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_802_3)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebtable_broute)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebtable_filter)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebtable_nat)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_among)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_arpreply)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_arp)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_ip6)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_ip)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_limit)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_log)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_mark_m)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_mark)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_nat)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_nflog)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_pkttype)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_redirect)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_standard)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_stp)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_ulog)
+	@$(call install_lib, ebtables, 0, 0, 0644, libebt_vlan)
+
+	@$(call install_finish, ebtables)
+
+	@$(call touch)
+
+# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2018-06-25 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25  9:37 Oliver Graute [this message]
2018-06-25 14:27 ` Michael Olbrich

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=20180625093743.GA17519@graute-opti \
    --to=oliver.graute@gmail.com \
    --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