packages: assign PKG_CPE_ID for all missing packages
[openwrt/openwrt.git] / package / network / utils / ebtables / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ebtables
11 PKG_SOURCE_DATE:=2018-06-27
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=https://git.netfilter.org/ebtables
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_VERSION:=48cff25dfea5b37e16ba5dc6601e98ab140f5f99
17 PKG_MIRROR_HASH:=1327cdc3402e5e3056819e4e9b6f9d4a5bfd401f2c4f58447afb2c3c73fc8aac
18
19 PKG_LICENSE:=GPL-2.0
20 PKG_CPE_ID:=cpe:/a:netfilter:ebtables
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ebtables
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Firewall
28 DEPENDS:=+kmod-ebtables
29 TITLE:=Ethernet bridge firewall administration utility
30 URL:=http://ebtables.sourceforge.net/
31 endef
32
33 define Package/ebtables-utils
34 $(call Package/ebtables)
35 DEPENDS += ebtables
36 TITLE:=ebtables save/restore utilities
37 endef
38
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.
44 endef
45
46 define Package/ebtables-utils/description
47 $(call Package/ebtables/description)
48 endef
49
50 MAKE_VARS += EXT_LIBSI="$(LIBGCC_S)"
51
52 MAKE_FLAGS += \
53 CFLAGS="$(TARGET_CFLAGS)" \
54 LIBDIR="/usr/lib/ebtables"
55
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/
64 endef
65
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/
70 endef
71
72 $(eval $(call BuildPackage,ebtables))
73 $(eval $(call BuildPackage,ebtables-utils))