Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_conntrack
  9. PKG_VERSION:=1.0.9
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.netfilter.org/projects/libnetfilter_conntrack/files
  13. PKG_HASH:=67bd9df49fe34e8b82144f6dfb93b320f384a8ea59727e92ff8d18b5f4b579a8
  14. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:netfilter:libnetfilter_conntrack
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libnetfilter-conntrack
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+libnfnetlink +kmod-nf-conntrack-netlink +libmnl
  25. TITLE:=API to the in-kernel connection tracking state table
  26. URL:=http://www.netfilter.org/projects/libnetfilter_conntrack/
  27. ABI_VERSION:=3
  28. endef
  29. define Package/libnetfilter-conntrack/description
  30. libnetfilter_conntrack is a userspace library providing a programming
  31. interface (API) to the in-kernel connection tracking state table. The
  32. library libnetfilter_conntrack has been previously known as
  33. libnfnetlink_conntrack and libctnetlink. This library is currently
  34. used by conntrack-tools among many other applications.
  35. endef
  36. TARGET_CFLAGS += $(FPIC)
  37. CONFIGURE_ARGS += \
  38. --enable-static \
  39. --enable-shared \
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_conntrack
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_conntrack/*.h \
  44. $(1)/usr/include/libnetfilter_conntrack/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.{so*,a,la} \
  48. $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_conntrack.pc \
  52. $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/libnetfilter-conntrack/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_conntrack.so.* \
  58. $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libnetfilter-conntrack))