Skip to contentSkip to conversation

ebtables: new package

PATCH New Baruch Siach 2 participants 2 messages Jul 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ebtables: new package

---

Changes in v2:
* Update to version 2.0.10-1
* Use target file name in $(INSTALL)
* Add uninstall

 package/Config.in            |    1 +
 package/ebtables/Config.in   |    6 ++++++
 package/ebtables/ebtables.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 package/ebtables/Config.in
 create mode 100644 package/ebtables/ebtables.mk
package/Config.in +1 -0
index 40f523d..853194f 100644
@@ -387,6 +387,7 @@ endif
 source "package/dhcpdump/Config.in"
 source "package/dnsmasq/Config.in"
 source "package/dropbear/Config.in"
+source "package/ebtables/Config.in"
 source "package/ethtool/Config.in"
 source "package/hostapd/Config.in"
 source "package/ifplugd/Config.in"
package/ebtables/Config.in new file +6 -0
new file mode 100644
index 0000000..73af12a
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_EBTABLES
+	bool "ebtables"
+	help
+	  Ethernet bridge frame table administration
+
+	  http://ebtables.sourceforge.net
package/ebtables/ebtables.mk new file +30 -0
new file mode 100644
index 0000000..67c0d92
@@ -0,0 +1,30 @@
+#############################################################
+#
+# ebtables
+#
+#############################################################
+EBTABLES_VERSION = 2.0.10-1
+EBTABLES_SOURCE = ebtables-v$(EBTABLES_VERSION).tar.gz
+EBTABLES_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ebtables
+
+define EBTABLES_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) LIBDIR=/lib/ebtables -C $(@D)
+endef
+
+define EBTABLES_INSTALL_TARGET_CMDS
+	for so in $(@D)/$(EBTABLES_SUBDIR)/*.so \
+		$(@D)/$(EBTABLES_SUBDIR)/extensions/*.so; \
+		do \
+		$(INSTALL) -m 0755 -D $${so} \
+			$(TARGET_DIR)/lib/ebtables/`basename $${so}`; \
+	done
+	$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/ebtables \
+		$(TARGET_DIR)/sbin/ebtables
+endef
+
+define EBTABLES_UNINSTALL_TARGET_CMDS
+	rm -rf $(TARGET_DIR)/lib/ebtables
+	rm -f $(TARGET_DIR)/sbin/ebtables
+endef
+
+$(eval $(call GENTARGETS,package,ebtables))
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH v2 1/1 ebtables: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Baruch> Signed-off-by: Baruch Siach <[email protected]> Baruch> ---

Baruch> Changes in v2:
Baruch> * Update to version 2.0.10-1
Baruch> * Use target file name in $(INSTALL)
Baruch> * Add uninstall

It needs ipv6 support in toolchain:

useful_functions.c: In function 'ebt_parse_ip6_address':
useful_functions.c:394: error: 'in6addr_any' undeclared (first use in this function) useful_functions.c:394: error: (Each undeclared identifier is reported only once useful_functions.c:394: error: for each function it appears in.)

I've added the dependency myself. Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard