2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-v
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/ebtables
16 PKG_MD5SUM
:=506742a3d44b9925955425a659c1a8d0
19 PKG_LICENSE_FILES
:=COPYING
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/ebtables-v
$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/ebtables
30 DEPENDS
:=+kmod-ebtables
31 TITLE
:=Ethernet bridge firewall administration utility
32 URL
:=http
://ebtables.sourceforge.net
/
35 define Package
/ebtables-utils
36 $(call Package
/ebtables
)
38 TITLE
:=ebtables save
/restore utilities
41 define Package
/ebtables
/description
42 The ebtables program is a filtering tool for a bridging firewall. The
43 filtering is focussed on the Link Layer Ethernet frame fields. Apart
44 from filtering
, it also gives the ability to alter the Ethernet MAC
45 addresses and implement a brouter.
48 define Package
/ebtables-utils
/description
49 $(call Package
/ebtables
/description
)
52 MAKE_VARS
+= EXT_LIBSI
="$(LIBGCC_S)"
55 CFLAGS
="$(TARGET_CFLAGS)" \
56 LIBDIR
="/usr/lib/ebtables"
58 define Package
/ebtables
/install
59 $(INSTALL_DIR
) $(1)/etc
60 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ethertypes
$(1)/etc
/
61 $(INSTALL_DIR
) $(1)/usr
/lib
/ebtables
62 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
*.so
$(1)/usr
/lib
/
63 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/extensions
/*.so
$(1)/usr
/lib
/ebtables
/
64 $(INSTALL_DIR
) $(1)/usr
/sbin
65 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables
$(1)/usr
/sbin
/
68 define Package
/ebtables-utils
/install
69 $(INSTALL_DIR
) $(1)/usr
/sbin
70 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables-save
$(1)/usr
/sbin
/
71 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables-restore
$(1)/usr
/sbin
/
74 $(eval
$(call BuildPackage
,ebtables
))
75 $(eval
$(call BuildPackage
,ebtables-utils
))