Add more license tags with SPDX identifiers
[openwrt.git] / package / network / utils / arptables / Makefile
1 # Copyright (C) 2006-2010 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=arptables
10 PKG_VERSION:=0.0.4
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/ebtables
15 PKG_MD5SUM:=c2e99c3aa9d78c9dfa30710ca3168182
16 PKG_LICENSE:=GPL-2.0
17
18 PKG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/arptables
26   SECTION:=net
27   CATEGORY:=Network
28   SUBMENU:=Firewall
29   TITLE:=ARP firewalling software
30   DEPENDS:=+kmod-arptables
31   URL:=http://ebtables.sourceforge.net
32 endef
33
34 define Build/Compile
35         $(MAKE) -C $(PKG_BUILD_DIR) \
36                 $(TARGET_CONFIGURE_OPTS) \
37                 COPT_FLAGS="$(TARGET_CFLAGS)" \
38                 KERNEL_DIR="./include/linux"
39 endef
40
41 define Package/arptables/install
42         $(INSTALL_DIR) $(1)/usr/sbin
43         $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,arptables))