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
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/ebtables-legacy
27 DEPENDS
:=+kmod-ebtables
28 TITLE
:=Ethernet bridge firewall administration utility
29 URL
:=http
://ebtables.sourceforge.net
/
32 200:/usr
/sbin
/ebtables
:/usr
/sbin
/ebtables-legacy
35 define Package
/ebtables-legacy-utils
36 $(call Package
/ebtables-legacy
)
37 DEPENDS
:=ebtables-legacy
38 TITLE
:=ebtables save
/restore utilities
39 PROVIDES
:=ebtables-utils
41 200:/usr
/sbin
/ebtables-restore
:/usr
/sbin
/ebtables-legacy-restore
44 define Package
/ebtables-legacy
/description
45 The ebtables program is a filtering tool for a bridging firewall. The
46 filtering is focussed on the Link Layer Ethernet frame fields. Apart
47 from filtering
, it also gives the ability to alter the Ethernet MAC
48 addresses and implement a brouter.
51 define Package
/ebtables-legacy-utils
/description
52 $(call Package
/ebtables-legacy
/description
)
55 MAKE_VARS
+= EXT_LIBSI
="$(LIBGCC_S)"
58 CFLAGS
="$(TARGET_CFLAGS)" \
59 LIBDIR
="/usr/lib/ebtables"
61 define Package
/ebtables-legacy
/install
62 $(INSTALL_DIR
) $(1)/etc
63 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ethertypes
$(1)/etc
/
64 $(INSTALL_DIR
) $(1)/usr
/lib
/ebtables
65 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
*.so
$(1)/usr
/lib
/
66 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/extensions
/*.so
$(1)/usr
/lib
/ebtables
/
67 $(INSTALL_DIR
) $(1)/usr
/sbin
68 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables
$(1)/usr
/sbin
/ebtables-legacy
71 define Package
/ebtables-legacy-utils
/install
72 $(INSTALL_DIR
) $(1)/usr
/sbin
73 #ebtables-save depends on perl and is just broken
74 #$(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/ebtables-legacy-save
75 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ebtables-restore
$(1)/usr
/sbin
/ebtables-legacy-restore
78 $(eval
$(call BuildPackage
,ebtables-legacy
))
79 $(eval
$(call BuildPackage
,ebtables-legacy-utils
))