2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ebtables
17 PKG_MD5SUM:=66bcbcb2dcf3b981ad4e86e1720e796e
19 PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
21 include $(INCLUDE_DIR)/package.mk
23 define Package/ebtables
26 DEPENDS:=+kmod-ebtables
27 TITLE:=Ethernet bridge firewall administration utility
28 URL:=http://ebtables.sourceforge.net/
31 define Package/ebtables/description
32 The ebtables program is a filtering tool for a bridging firewall. The
33 filtering is focussed on the Link Layer Ethernet frame fields. Apart
34 from filtering, it also gives the ability to alter the Ethernet MAC
35 addresses and implement a brouter.
39 CFLAGS="$(TARGET_CFLAGS)" \
40 LIBDIR="/usr/lib/ebtables"
42 define Package/ebtables/install
43 $(INSTALL_DIR) $(1)/etc
44 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
45 $(INSTALL_DIR) $(1)/usr/lib/ebtables
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
54 $(eval $(call BuildPackage,ebtables))