You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2017 Banglang Huang
  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:=libpfring
  9. PKG_VERSION:=7.4.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
  12. PKG_LICENSE:=LGPL-2.1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/ntop/PF_RING/tar.gz/$(PKG_VERSION)?
  15. PKG_HASH:=e1c9cb44d8072854220f493c56fa5cba99a6b8336883939dc18b3e30c2954b68
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/PF_RING-$(PKG_VERSION)
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=patch-libtool
  19. include $(INCLUDE_DIR)/package.mk
  20. CONFIGURE_PATH:=userland
  21. MAKE_PATH:=userland/lib
  22. define Package/libpfring
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Library for PR_RING (package process framework)
  26. URL:=https://github.com/ntop/pf_ring
  27. DEPENDS:=+kmod-pf-ring +libpcap +libpthread
  28. endef
  29. define Package/libpfring/description
  30. PF_RING is a high speed packet capture library that turns a commodity PC into an efficient and cheap
  31. network measurement box suitable for both packet and active traffic analysis and manipulation.
  32. Moreover, PF_RING opens totally new markets as it enables the creation of efficient application such as
  33. traffic balancers or packet filters in a matter of lines of codes.
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include/
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/* \
  39. $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/libpfring.so* \
  43. $(1)/usr/lib/
  44. endef
  45. CONFIGURE_VARS += \
  46. MACHINE="$(ARCH)" \
  47. ac_cv_lib_nl_3_nl_socket_alloc=no
  48. define Package/libpfring/install
  49. $(INSTALL_DIR) $(1)/usr/lib/
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/libpfring.so* \
  52. $(1)/usr/lib/
  53. $(LN) libpfring.so $(1)/usr/lib/libpfring.so.1
  54. endef
  55. $(eval $(call BuildPackage,libpfring))