2022-06-25 14:24:18 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2006-07-30 17:53:04 +00:00
|
|
|
#
|
2022-06-25 14:24:18 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2006-07-30 17:53:04 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=arptables
|
2022-06-25 14:24:18 +00:00
|
|
|
PKG_VERSION:=0.0.5
|
2006-07-30 17:53:04 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2022-06-25 14:24:18 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.netfilter.org/pub/arptables
|
|
|
|
PKG_HASH:=4f9a0656ce5c90868f551cd4deeb2d04f33899667e1fb2818b64e432fe8f629c
|
2006-07-30 17:53:04 +00:00
|
|
|
|
2016-11-13 15:09:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2022-06-25 14:24:18 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
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-06-25 14:24:18 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/arptables-legacy $(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))
|