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
:=160f5087b403173d5d1e93880d28b89dab98e828ba3f545315bf1cb88afe5a46
20 PKG_CPE_ID
:=cpe
:/a
:netfilter
:ebtables
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ebtables-legacy
28 DEPENDS
:=+kmod-ebtables
29 TITLE
:=Ethernet bridge firewall administration utility
30 URL
:=http
://ebtables.sourceforge.net
/
33 200:/usr
/sbin
/ebtables
:/usr
/sbin
/ebtables-legacy
36 define Package
/ebtables-legacy-utils
37 $(call Package
/ebtables-legacy
)
38 DEPENDS
:=ebtables-legacy
39 TITLE
:=ebtables save
/restore utilities
40 PROVIDES
:=ebtables-utils
42 200:/usr
/sbin
/ebtables-restore
:/usr
/sbin
/ebtables-legacy-restore
45 define Package
/ebtables-legacy
/description
46 The ebtables program is a filtering tool for a bridging firewall. The
47 filtering is focussed on the Link Layer Ethernet frame fields. Apart
48 from filtering
, it also gives the ability to alter the Ethernet MAC
49 addresses and implement a brouter.
52 define Package
/ebtables-legacy-utils
/description
53 $(call Package
/ebtables-legacy
/description
)
56 MAKE_VARS
+= EXT_LIBSI
="$(LIBGCC_S)"
59 CFLAGS
="$(TARGET_CFLAGS)" \
60 LIBDIR
="/usr/lib/ebtables"
62 define Package
/ebtables-legacy
/install
63 $(INSTALL_DIR
) $(1)/etc
64 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ethertypes
$(1)/etc
/
65 $(INSTALL_DIR
) $(1)/usr
/lib
/ebtables
66 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
*.so
$(1)/usr
/lib
/
67 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/extensions
/*.so
$(1)/usr
/lib
/ebtables
/
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables
$(1)/usr
/sbin
/ebtables-legacy
72 define Package
/ebtables-legacy-utils
/install
73 $(INSTALL_DIR
) $(1)/usr
/sbin
74 #ebtables-save depends on perl and is just broken
75 #$(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/ebtables-legacy-save
76 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables-restore
$(1)/usr
/sbin
/ebtables-legacy-restore
79 $(eval
$(call BuildPackage
,ebtables-legacy
))
80 $(eval
$(call BuildPackage
,ebtables-legacy-utils
))