Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2009-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnetfilter_cttimeout
  9. PKG_VERSION:=1.0.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_cttimeout/files/ \
  14. ftp://ftp.netfilter.org/pub/libnetfilter_cttimeout/
  15. PKG_HASH:=aeab12754f557cba3ce2950a2029963d817490df7edb49880008b34d7ff8feba
  16. PKG_FIXUP:=autoreconf
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnetfilter-cttimeout
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libmnl
  24. TITLE:=API to the in-kernel connection tracking timeout infrastructure
  25. URL:=http://www.netfilter.org/projects/libnetfilter_cttimeout/
  26. ABI_VERSION:=1
  27. endef
  28. define Package/libnetfilter-cttimeout/description
  29. libnetfilter_cttimeout is a userspace library providing a programming
  30. interface (API) to the in-kernel connection tracking timeout handling.
  31. This library is currently used by conntrack-tools.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS += \
  35. --enable-static \
  36. --enable-shared \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cttimeout
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cttimeout/*.h \
  41. $(1)/usr/include/libnetfilter_cttimeout/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.{so*,a,la} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cttimeout.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libnetfilter-cttimeout/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libnetfilter-cttimeout))