Makefile 994 B

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