1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Fast and Lightweight Log processor and forwarder
8 HOMEPAGE= https://fluentbit.io/
12 SITES[main]= GITHUB/fluent:fluent-bit:v1.9.8
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 USES= cpe cmake bison zlib gmake pkgconfig shebangfix ssl
23 python:build cclibs:primary,library
25 LICENSE= APACHE20:library
26 LICENSE_TERMS= library:{{WRKDIR}}/TERMS
27 LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE
28 LICENSE_AWK= TERMS:"_GNU_SOURCE"
29 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/fluent-bit.c
32 CPE_PRODUCT= fluent_bit
33 CPE_VENDOR= treasuredata
34 FPC_EQUIVALENT= sysutils/fluent-bit
35 SHEBANG_ADD_SH= lib/luajit-2.1.0-1e66d0f/configure
37 RC_SUBR= fluent-bit:primary
39 CMAKE_ARGS= -DFLB_DEBUG=Off
49 ${MV} ${STAGEDIR}${ETCDIR}/fluent-bit.conf \
50 ${STAGEDIR}${ETCDIR}/fluent-bit.conf.sample
51 ${MV} ${STAGEDIR}${ETCDIR}/parsers.conf \
52 ${STAGEDIR}${ETCDIR}/parsers.conf.sample
53 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit
54 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so
56 [FILE:284:descriptions/desc.primary]
57 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
58 family operating systems. It has been made with a strong focus on
59 performance to allow the collection of events from different sources
62 Fluent Bit is part of the Fluentd project ecosystem.
65 [FILE:151:descriptions/desc.library]
66 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
67 family operating systems. This subpackage contains the library and headers.
71 1ad4d6e89c676df8fec461533087ff76b7e2deccc615a03f027b9ef7f9f4057f 20466930 fluent-fluent-bit-1.9.8.tar.gz
74 [FILE:132:manifests/plist.primary]
75 @sample etc/fluent-bit/fluent-bit.conf.sample
76 @sample etc/fluent-bit/parsers.conf.sample
78 etc/fluent-bit/plugins.conf
81 [FILE:2240:manifests/plist.library]
107 flb_engine_dispatch.h
121 flb_http_client_debug.h
129 flb_intermediate_metric.h
144 flb_metrics_exporter.h
161 flb_record_accessor.h
165 flb_s3_local_buffer.h
198 include/fluent-bit/tls/flb_tls.h
199 include/monkey/mk_core.h
200 include/monkey/mk_core/
225 lib/fluent-bit/libfluent-bit.so
228 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
229 --- include/fluent-bit/flb_endian.h.orig 2022-09-02 14:05:40 UTC
230 +++ include/fluent-bit/flb_endian.h
233 #if defined(__GLIBC__)
235 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
236 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
237 #include <sys/endian.h>
238 #elif defined(__APPLE__)
239 #include <libkern/OSByteOrder.h>
242 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
243 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-09-02 14:05:40 UTC
244 +++ lib/chunkio/deps/crc32/crc32.c
246 # define __BIG_ENDIAN 1
247 # define __LITTLE_ENDIAN 2
248 # define __BYTE_ORDER __LITTLE_ENDIAN
249 -#elif defined(__FreeBSD__)
250 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
251 # include <sys/endian.h>
252 #elif defined(__sun) || defined(sun)
253 # include <sys/byteorder.h>
256 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
257 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-09-02 14:05:40 UTC
258 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
259 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
260 #define LJ_TARGET_HAS_GETENTROPY 1
262 #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
263 -#define LJ_TARGET_HAS_GETENTROPY 1
264 +#define LJ_TARGET_HAS_GETENTROPY 0
267 #if LJ_TARGET_HAS_GETENTROPY
270 [FILE:840:patches/patch-lib_monkey_CMakeLists.txt]
271 --- lib/monkey/CMakeLists.txt.orig 2022-09-02 14:05:40 UTC
272 +++ lib/monkey/CMakeLists.txt
273 @@ -43,7 +43,7 @@ option(MK_LINUX_KQUEUE "Use Linux kque
274 option(MK_TRACE "Enable Trace mode" No)
275 option(MK_UCLIB "Enable uClib libc support" No)
276 option(MK_MUSL "Enable Musl libc support" No)
277 -option(MK_BACKTRACE "Enable Backtrace feature" Yes)
278 +option(MK_BACKTRACE "Enable Backtrace feature" No)
279 option(MK_LINUX_TRACE "Enable Lttng support" No)
280 option(MK_PTHREAD_TLS "Use old Pthread TLS mode" No)
281 option(MK_MBEDTLS_SHARED "Use mbedtls shared lib" No)
282 @@ -161,8 +161,6 @@ endif()
283 check_include_file("execinfo.h" HAVE_BACKTRACE)
284 if (NOT HAVE_BACKTRACE)
287 - MK_DEFINITION(MK_HAVE_BACKTRACE)
290 # Check for LTTng-UST
293 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
294 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig 2022-09-02 14:05:40 UTC
295 +++ lib/monkey/mk_core/deps/libevent/buffer.c
297 #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
298 #define USE_SENDFILE 1
299 #define SENDFILE_IS_FREEBSD 1
300 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
301 +#define USE_SENDFILE 1
302 +#define SENDFILE_IS_FREEBSD 1
303 #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
304 #define USE_SENDFILE 1
305 #define SENDFILE_IS_MACOSX 1
308 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
309 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig 2022-09-02 14:05:40 UTC
310 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
312 /* Some platforms apparently define the udata field of struct kevent as
313 * intptr_t, whereas others define it as void*. There doesn't seem to be an
314 * easy way to tell them apart via autoconf, so we need to use OS macros. */
315 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
316 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
317 #define PTR_TO_UDATA(x) ((intptr_t)(x))
318 #define INT_TO_UDATA(x) ((intptr_t)(x))
322 [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
323 --- lib/monkey/mk_server/CMakeLists.txt.orig 2022-09-02 14:05:40 UTC
324 +++ lib/monkey/mk_server/CMakeLists.txt
325 @@ -47,10 +47,6 @@ if(MK_HAVE_LINUX_KQUEUE)
326 target_link_libraries(monkey-core-static kqueue)
330 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
331 - target_link_libraries(monkey-core-static execinfo)
334 if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
335 target_link_libraries(monkey-core-static socket nsl)
338 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
339 --- lib/monkey/plugins/liana/liana.c.orig 2022-09-02 14:05:40 UTC
340 +++ lib/monkey/plugins/liana/liana.c
341 @@ -109,7 +109,7 @@ int mk_liana_send_file(int socket_fd, in
345 -#elif defined (__FreeBSD__)
346 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
347 off_t offset = *file_offset;
348 off_t len = (off_t) file_count;
352 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
353 --- lib/snappy-fef67ac/compat.h.orig 2022-09-02 14:05:40 UTC
354 +++ lib/snappy-fef67ac/compat.h
358 # include <sys/endian.h>
359 +#elif defined __DragonFly__
360 +# include <sys/endian.h>
361 #elif defined(__APPLE_CC_) || defined(__MACH__) /* MacOS/X support */
362 # include <machine/endian.h>
366 [FILE:700:files/fluent-bit.in]
369 # PROVIDE: fluent-bit
374 # Add the following lines to /etc/rc.conf to enable fluent-bit:
376 # fluent_bit_enable (bool): Set to YES to enable fluent-bit
378 # fluent_bit_config (str): config files to use
379 # Default: %%ETCDIR%%/fluent-bit.conf
380 # fluent_bit_flags (str): Extra flags passed to fluent-bit
381 # fluent_bit_user (str): Default run as user nobody
389 : ${fluent_bit_enable:="NO"}
390 : ${fluent_bit_user:="nobody"}
392 command=%%PREFIX%%/bin/fluent-bit
393 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"