Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright (C) 2009-2012 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=ipset
  10. PKG_VERSION:=6.24
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://ipset.netfilter.org
  14. PKG_MD5SUM:=8831b8f01458bf2abacc222884195a62
  15. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/ipset
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS+= +kmod-ipt-ipset +libmnl
  24. TITLE:=IPset administration utility
  25. URL:=http://ipset.netfilter.org/
  26. endef
  27. CONFIGURE_ARGS += \
  28. --with-kbuild="$(LINUX_DIR)"
  29. MAKE_FLAGS += \
  30. ARCH="$(LINUX_KARCH)" \
  31. SHELL="$(BASH)"
  32. define Build/Compile
  33. $(call Build/Compile/Default)
  34. endef
  35. define Package/ipset/install
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,ipset))