treewide: switch git.netfilter.org to HTTPS
[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_RELEASE:=1
11
12 PKG_SOURCE_URL:=https://git.netfilter.org/arptables
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_DATE:=2015-05-20
15 PKG_SOURCE_VERSION:=f4ab8f63f11a72f14687a6646d04ae1bae3fa45f
16 PKG_MIRROR_HASH:=84bc660be4c9f70be91046acfd87785add930eceab7c543036058e1a9de2e9d9
17
18 PKG_LICENSE:=GPL-2.0
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/arptables
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Firewall
26 TITLE:=ARP firewalling software
27 DEPENDS:=+kmod-arptables
28 URL:=https://git.netfilter.org/arptables/
29 endef
30
31 MAKE_FLAGS += \
32 COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
33 KERNEL_DIR="$(LINUX_DIR)"
34
35 define Package/arptables/install
36 $(INSTALL_DIR) $(1)/usr/sbin
37 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
38 endef
39
40 $(eval $(call BuildPackage,arptables))