2019-05-14 14:25:38 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libfstrm
|
2021-09-19 10:13:58 +02:00
|
|
|
PKG_VERSION:=0.6.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2019-05-14 14:25:38 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=fstrm-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://dl.farsightsecurity.com/dist/fstrm/
|
2021-09-19 10:13:58 +02:00
|
|
|
PKG_HASH:=bca4ac1e982a2d923ccd24cce2c98f4ceeed5009694430f73fc0dcebca8f098f
|
2019-05-14 14:25:38 +02:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/fstrm-$(PKG_VERSION)
|
|
|
|
|
2024-03-07 12:23:42 +01:00
|
|
|
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>, Remi Gacogne <remi.gacogne@powerdns.com>
|
2019-05-14 14:25:38 +02:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libfstrm
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2019-05-18 17:07:54 +02:00
|
|
|
TITLE:=C implementation of the Frame Streams data transport protocol
|
|
|
|
URL:=https://github.com/farsightsec/fstrm
|
2019-05-14 14:25:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfstrm/description
|
2019-05-18 17:07:54 +02:00
|
|
|
fstrm is an optimized C implementation of Frame Streams that includes a fast,
|
|
|
|
lockless circular queue implementation and exposes library interfaces for
|
|
|
|
setting up a dedicated Frame Streams I/O thread and asynchronously submitting
|
|
|
|
data frames for transport from worker threads. It was originally written to
|
|
|
|
facilitate the addition of high speed binary logging to DNS servers written
|
|
|
|
in C using the dnstap log format.
|
2019-05-14 14:25:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-programs
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/fstrm
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/fstrm/*.h $(1)/usr/include/fstrm/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfstrm.{a,so*} $(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libfstrm.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfstrm/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-06-20 15:25:59 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfstrm.so* $(1)/usr/lib/
|
2019-05-14 14:25:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libfstrm))
|