mpc85xx: fix address config for ws-ap3825i
[openwrt/openwrt.git] / package / network / utils / arptables / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2006-2016 OpenWrt.org
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=arptables
9 PKG_VERSION:=0.0.5
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://ftp.netfilter.org/pub/arptables
14 PKG_HASH:=4f9a0656ce5c90868f551cd4deeb2d04f33899667e1fb2818b64e432fe8f629c
15
16 PKG_LICENSE:=GPL-2.0
17 PKG_LICENSE_FILES:=COPYING
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/arptables-legacy
22 SECTION:=net
23 CATEGORY:=Network
24 SUBMENU:=Firewall
25 TITLE:=ARP firewalling software
26 DEPENDS:=+kmod-arptables
27 URL:=https://git.netfilter.org/arptables/
28 PROVIDES:=arptables
29 ALTERNATIVES:=\
30 200:/usr/sbin/arptables:/usr/sbin/arptables-legacy
31 endef
32
33 MAKE_FLAGS += \
34 COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
35 KERNEL_DIR="$(LINUX_DIR)"
36
37 define Package/arptables-legacy/install
38 $(INSTALL_DIR) $(1)/usr/sbin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arptables-legacy $(1)/usr/sbin/arptables-legacy
40 endef
41
42 $(eval $(call BuildPackage,arptables-legacy))