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.

61 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libfstrm
  3. PKG_VERSION:=0.6.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=fstrm-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://dl.farsightsecurity.com/dist/fstrm/
  7. PKG_HASH:=bca4ac1e982a2d923ccd24cce2c98f4ceeed5009694430f73fc0dcebca8f098f
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/fstrm-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
  10. PKG_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_FIXUP:=autoreconf
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libfstrm
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=C implementation of the Frame Streams data transport protocol
  20. URL:=https://github.com/farsightsec/fstrm
  21. endef
  22. define Package/libfstrm/description
  23. fstrm is an optimized C implementation of Frame Streams that includes a fast,
  24. lockless circular queue implementation and exposes library interfaces for
  25. setting up a dedicated Frame Streams I/O thread and asynchronously submitting
  26. data frames for transport from worker threads. It was originally written to
  27. facilitate the addition of high speed binary logging to DNS servers written
  28. in C using the dnstap log format.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --disable-programs
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/include/fstrm
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/fstrm/*.h $(1)/usr/include/fstrm/
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfstrm.{a,so*} $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libfstrm.pc $(1)/usr/lib/pkgconfig/
  41. endef
  42. define Package/libfstrm/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfstrm.so* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libfstrm))