Files
ports/sysutils/fluent-bit/Makefile
T
Palle Girgensohn 83d8d3bd7a sysutils/fluent-bit: Upgrade to 3.2.4
Hard code the coro stack size to something that is expected.
Documentation states that 24576 is default [1] but FreeBSD has a
PTHREAD_MIN_SIZE of only 4 * 512, so the coro stack size is just too
small for some use cases [2].

[1] https://docs.fluentbit.io/manual/administration/configuring-fluent-bit
PR:	283299 (reported by Antti Rasinen) |2]

Release notes:	https://github.com/fluent/fluent-bit/releases/tag/v3.2.4
2025-01-06 23:56:37 +01:00

58 lines
1.4 KiB
Makefile

PORTNAME= fluent-bit
DISTVERSIONPREFIX= v
DISTVERSION= 3.2.4
CATEGORIES= sysutils
MAINTAINER= girgen@FreeBSD.org
COMMENT= Fast and lightweight data forwarder
WWW= https://fluentbit.io/
LICENSE= APACHE20
BROKEN_mips= fails to build: conflicting types for 'restrict'
BROKEN_mips64= fails to build: conflicting types for 'restrict'
LIB_DEPENDS= libyaml.so:textproc/libyaml
USES= bison cmake:noninja compiler:c11 gmake localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= fluent
USE_RC_SUBR= ${PORTNAME}
CMAKE_ARGS= -DFLB_DEBUG=Off \
-DFLB_TRACE=Off
LDFLAGS+= -lexecinfo
OPTIONS_DEFINE= LUA_FILTER PGSQL SSL
OPTIONS_DEFAULT= LUA_FILTER PGSQL SSL
LUA_FILTER_DESC= Support for modifying incoming records using Lua scripts
LUA_FILTER_USES= luajit:luajit-devel pkgconfig
LUA_FILTER_CMAKE_ON= -DFLB_FILTER_LUA=On \
-DFLB_LUAJIT=On \
-DFLB_PREFER_SYSTEM_LIB_LUAJIT=On
LUA_FILTER_CMAKE_OFF= -DFLB_LUAJIT=Off
PGSQL_USES= pgsql
PGSQL_CMAKE_ON= -DFLB_OUT_PGSQL=On
PGSQL_CMAKE_OFF= -DFLB_OUT_PGSQL=Off
SSL_USES= ssl
SSL_CMAKE_ON= -DFLB_TLS=On
SSL_CMAKE_OFF= -DFLB_TLS=Off
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Wno-error=int-conversion
.endif
post-install:
${MV} ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
${MV} ${STAGEDIR}${ETCDIR}/parsers.conf ${STAGEDIR}${ETCDIR}/parsers.conf.sample
do-test-LUA_FILTER-on:
${STAGEDIR}${PREFIX}/bin/fluent-bit --help 2>/dev/null | grep -w -q lua
.include <bsd.port.mk>