procd: make mDNS TXT record parsing more solid
[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-legacy
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 PROVIDES:=arptables
30 ALTERNATIVES:=\
31 200:/usr/sbin/arptables:/usr/sbin/arptables-legacy
32 endef
33
34 MAKE_FLAGS += \
35 COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
36 KERNEL_DIR="$(LINUX_DIR)"
37
38 define Package/arptables-legacy/install
39 $(INSTALL_DIR) $(1)/usr/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arptables $(1)/usr/sbin/arptables-legacy
41 endef
42
43 $(eval $(call BuildPackage,arptables-legacy))