1
0

Makefile 1016 B

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