Makefile 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright (C) 2006-2010 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:=0.0.4
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/ebtables
  12. PKG_MD5SUM:=c2e99c3aa9d78c9dfa30710ca3168182
  13. PKG_LICENSE:=GPL-2.0
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  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:=http://ebtables.sourceforge.net
  23. endef
  24. define Build/Compile
  25. $(MAKE) -C $(PKG_BUILD_DIR) \
  26. $(TARGET_CONFIGURE_OPTS) \
  27. COPT_FLAGS="$(TARGET_CFLAGS)" \
  28. KERNEL_DIR="./include/linux"
  29. endef
  30. define Package/arptables/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
  33. endef
  34. $(eval $(call BuildPackage,arptables))