2016-11-13 15:09:54 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2006-07-30 17:53:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=arptables
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2017-10-08 18:09:46 +00:00
|
|
|
PKG_SOURCE_URL:=https://git.netfilter.org/arptables
|
2016-11-13 15:09:54 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-12-21 21:25:41 +00:00
|
|
|
PKG_SOURCE_DATE:=2015-05-20
|
2016-11-13 15:09:54 +00:00
|
|
|
PKG_SOURCE_VERSION:=f4ab8f63f11a72f14687a6646d04ae1bae3fa45f
|
2016-12-21 21:25:41 +00:00
|
|
|
PKG_MIRROR_HASH:=84bc660be4c9f70be91046acfd87785add930eceab7c543036058e1a9de2e9d9
|
2006-07-30 17:53:04 +00:00
|
|
|
|
2016-11-13 15:09:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2006-09-24 20:49:31 +00:00
|
|
|
|
2006-07-30 17:53:04 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2022-03-01 03:37:41 +00:00
|
|
|
define Package/arptables-legacy
|
2006-07-30 17:53:04 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 01:24:18 +00:00
|
|
|
SUBMENU:=Firewall
|
2006-07-30 17:53:04 +00:00
|
|
|
TITLE:=ARP firewalling software
|
2006-11-18 22:54:13 +00:00
|
|
|
DEPENDS:=+kmod-arptables
|
2016-11-13 15:09:54 +00:00
|
|
|
URL:=https://git.netfilter.org/arptables/
|
2022-03-01 03:37:41 +00:00
|
|
|
PROVIDES:=arptables
|
|
|
|
ALTERNATIVES:=\
|
|
|
|
200:/usr/sbin/arptables:/usr/sbin/arptables-legacy
|
2006-07-30 17:53:04 +00:00
|
|
|
endef
|
|
|
|
|
2016-11-13 15:09:54 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
|
|
|
|
KERNEL_DIR="$(LINUX_DIR)"
|
2006-07-30 17:53:04 +00:00
|
|
|
|
2022-03-01 03:37:41 +00:00
|
|
|
define Package/arptables-legacy/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2022-03-01 03:37:41 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/arptables $(1)/usr/sbin/arptables-legacy
|
2006-07-30 17:53:04 +00:00
|
|
|
endef
|
|
|
|
|
2022-03-01 03:37:41 +00:00
|
|
|
$(eval $(call BuildPackage,arptables-legacy))
|