arptables: bump to 2015-05-20
[openwrt/openwrt.git] / package / network / utils / arptables / Makefile
1 # Copyright (C) 2006-2016 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:=2015-05-20
11 PKG_RELEASE:=1
12 PKG_MIRROR_MD5SUM:=736c2a88f99936811d80dd75d3016c3829ebb9dac8b28ced020a0bee149c2a31
13
14 PKG_SOURCE_URL:=git://git.netfilter.org/arptables
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=f4ab8f63f11a72f14687a6646d04ae1bae3fa45f
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
19
20 PKG_LICENSE:=GPL-2.0
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/arptables
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Firewall
28 TITLE:=ARP firewalling software
29 DEPENDS:=+kmod-arptables
30 URL:=https://git.netfilter.org/arptables/
31 endef
32
33 MAKE_FLAGS += \
34 COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
35 KERNEL_DIR="$(LINUX_DIR)"
36
37 define Package/arptables/install
38 $(INSTALL_DIR) $(1)/usr/sbin
39 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
40 endef
41
42 $(eval $(call BuildPackage,arptables))