2 # Copyright (C) 2006-2015 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
11 PKG_SOURCE_DATE
:=2018-06-27
14 PKG_SOURCE_URL
:=https
://git.netfilter.org
/ebtables
16 PKG_SOURCE_VERSION
:=48cff25dfea5b37e16ba5dc6601e98ab140f5f99
17 PKG_MIRROR_HASH
:=1327cdc3402e5e3056819e4e9b6f9d4a5bfd401f2c4f58447afb2c3c73fc8aac
20 PKG_CPE_ID
:=cpe
:/a
:netfilter
:ebtables
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ebtables
28 DEPENDS
:=+kmod-ebtables
29 TITLE
:=Ethernet bridge firewall administration utility
30 URL
:=http
://ebtables.sourceforge.net
/
33 define Package
/ebtables-utils
34 $(call Package
/ebtables
)
36 TITLE
:=ebtables save
/restore utilities
39 define Package
/ebtables
/description
40 The ebtables program is a filtering tool for a bridging firewall. The
41 filtering is focussed on the Link Layer Ethernet frame fields. Apart
42 from filtering
, it also gives the ability to alter the Ethernet MAC
43 addresses and implement a brouter.
46 define Package
/ebtables-utils
/description
47 $(call Package
/ebtables
/description
)
50 MAKE_VARS
+= EXT_LIBSI
="$(LIBGCC_S)"
53 CFLAGS
="$(TARGET_CFLAGS)" \
54 LIBDIR
="/usr/lib/ebtables"
56 define Package
/ebtables
/install
57 $(INSTALL_DIR
) $(1)/etc
58 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ethertypes
$(1)/etc
/
59 $(INSTALL_DIR
) $(1)/usr
/lib
/ebtables
60 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
*.so
$(1)/usr
/lib
/
61 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/extensions
/*.so
$(1)/usr
/lib
/ebtables
/
62 $(INSTALL_DIR
) $(1)/usr
/sbin
63 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables
$(1)/usr
/sbin
/
66 define Package
/ebtables-utils
/install
67 $(INSTALL_DIR
) $(1)/usr
/sbin
68 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables-save
$(1)/usr
/sbin
/
69 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables-restore
$(1)/usr
/sbin
/
72 $(eval
$(call BuildPackage
,ebtables
))
73 $(eval
$(call BuildPackage
,ebtables-utils
))