Makefile 966 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=arptables
  8. PKG_RELEASE:=1
  9. PKG_SOURCE_URL:=git://git.netfilter.org/arptables
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_DATE:=2015-05-20
  12. PKG_SOURCE_VERSION:=f4ab8f63f11a72f14687a6646d04ae1bae3fa45f
  13. PKG_MIRROR_HASH:=84bc660be4c9f70be91046acfd87785add930eceab7c543036058e1a9de2e9d9
  14. PKG_LICENSE:=GPL-2.0
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/arptables
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=Firewall
  20. TITLE:=ARP firewalling software
  21. DEPENDS:=+kmod-arptables
  22. URL:=https://git.netfilter.org/arptables/
  23. endef
  24. MAKE_FLAGS += \
  25. COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
  26. KERNEL_DIR="$(LINUX_DIR)"
  27. define Package/arptables/install
  28. $(INSTALL_DIR) $(1)/usr/sbin
  29. $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
  30. endef
  31. $(eval $(call BuildPackage,arptables))