Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2009-2016 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_conntrack
  9. PKG_VERSION:=1.0.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_conntrack/files/ \
  14. ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/
  15. PKG_MD5SUM:=7139c5f408dd9606ffecfd5dcda8175b
  16. PKG_LICENSE:=GPL-2.0+
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libnetfilter-conntrack
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libnfnetlink +kmod-nf-conntrack-netlink +libmnl
  23. TITLE:=API to the in-kernel connection tracking state table
  24. URL:=http://www.netfilter.org/projects/libnetfilter_conntrack/
  25. endef
  26. define Package/libnetfilter-conntrack/description
  27. libnetfilter_conntrack is a userspace library providing a programming
  28. interface (API) to the in-kernel connection tracking state table. The
  29. library libnetfilter_conntrack has been previously known as
  30. libnfnetlink_conntrack and libctnetlink. This library is currently
  31. used by conntrack-tools among many other applications.
  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_conntrack
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_conntrack/*.h \
  41. $(1)/usr/include/libnetfilter_conntrack/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.{so*,a,la} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_conntrack.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libnetfilter-conntrack/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libnetfilter-conntrack))