Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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:=1
  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. endef
  27. define Package/libnetfilter-cttimeout/description
  28. libnetfilter_cttimeout is a userspace library providing a programming
  29. interface (API) to the in-kernel connection tracking timeout handling.
  30. This library is currently used by conntrack-tools.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --enable-static \
  35. --enable-shared \
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cttimeout
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cttimeout/*.h \
  40. $(1)/usr/include/libnetfilter_cttimeout/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.{so*,a,la} \
  44. $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cttimeout.pc \
  48. $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libnetfilter-cttimeout/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.so.* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libnetfilter-cttimeout))