1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.30
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://ipset.netfilter.org
  14. PKG_HASH:=65bfa43fec3d51a6b4012f3d7e4b93a748df9b71b6cd6c53adbec8083e804a31
  15. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  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 Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/libipset $(1)/usr/include/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset.{a,so*} $(1)/usr/lib/
  39. $(CP) $(PKG_BUILD_DIR)/lib/libipset.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/ipset/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,ipset))