Date: Thu, 22 Aug 2024 23:27:28 GMT From: Mateusz Piotrowski <0mp@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: fc0a0b37b12c - main - sysutils/fluent-bit: Add option LUA_FILTER Message-ID: <202408222327.47MNRS84024644@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc0a0b37b12c8abd83ba0f7ca2153d1419fbb86d commit fc0a0b37b12c8abd83ba0f7ca2153d1419fbb86d Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-07-25 12:52:29 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-08-22 23:27:12 +0000 sysutils/fluent-bit: Add option LUA_FILTER From https://docs.fluentbit.io/manual/pipeline/filters/lua: > The Lua filter allows you to modify the incoming records (even split > one record into multiple records) using custom Lua scripts. The option depends on luajit-devel, because at least version 2.1.0 is required: https://github.com/fluent/fluent-bit/pull/7286/files. Keep the option disabled for now. We may consider enabling it by default in the future to match what upstream does: https://docs.fluentbit.io/manual/installation/sources/build-and-install. Also, add a small do-test target for the new option. PR: 252296 Approved by: portmgr (maintainer timeout) Sponsored by: trivago N.V. Sponsored by: Klara, Inc. --- sysutils/fluent-bit/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sysutils/fluent-bit/Makefile b/sysutils/fluent-bit/Makefile index 0d7cfb932a72..66b9d143b872 100644 --- a/sysutils/fluent-bit/Makefile +++ b/sysutils/fluent-bit/Makefile @@ -20,12 +20,18 @@ GH_ACCOUNT= fluent USE_RC_SUBR= ${PORTNAME} CMAKE_ARGS= -DFLB_DEBUG=Off \ - -DFLB_LUAJIT=Off \ -DFLB_TRACE=Off LDFLAGS+= -lexecinfo -OPTIONS_DEFINE= PGSQL SSL +OPTIONS_DEFINE= LUA_FILTER PGSQL SSL OPTIONS_DEFAULT= 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 @@ -46,4 +52,7 @@ 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408222327.47MNRS84024644>