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.8.15
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 USES= cpe cmake bison zlib gmake shebangfix
23 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 SHEBANG_ADD_SH= lib/luajit-2.1.0-1e66d0f/configure
36 RC_SUBR= fluent-bit:primary
38 CMAKE_ARGS= -DFLB_DEBUG=Off
47 ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf \
48 ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf.sample
49 ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf \
50 ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf.sample
51 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit
52 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so
55 ${CP} ${MK_TEMPLATES}/config.sub ${WRKSRC}/lib/onigmo/config.sub
56 ${CP} ${MK_TEMPLATES}/config.guess ${WRKSRC}/lib/onigmo/config.guess
58 [FILE:352:descriptions/desc.primary]
59 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
60 family operating systems. It has been made with a strong focus on
61 performance to allow the collection of events from different sources
64 This package contains the 1.8.x maintenance version of Fluent-Bit.
66 Fluent Bit is part of the Fluentd project ecosystem.
69 [FILE:199:descriptions/desc.library]
70 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
71 family operating systems. This subpackage contains the library and headers
72 for the 1.8.x maintenance version of Fluent Bit.
76 b98328c7e7c2428389fa2b284abe8d2c901c3365701ce05e51abcf550d9fd39a 14956052 fluent-fluent-bit-1.8.15.tar.gz
79 [FILE:157:manifests/plist.primary]
80 @sample etc/fluent-bit/fluent-bit.conf.sample
81 @sample etc/fluent-bit/parsers.conf.sample
88 [FILE:2080:manifests/plist.library]
111 flb_engine_dispatch.h
121 flb_http_client_debug.h
128 flb_intermediate_metric.h
141 flb_metrics_exporter.h
158 flb_record_accessor.h
162 flb_s3_local_buffer.h
194 include/fluent-bit/tls/flb_tls.h
195 include/monkey/mk_core.h
196 include/monkey/mk_core/
222 lib/fluent-bit/libfluent-bit.so
225 [FILE:602:patches/patch-include_fluent-bit_flb__coro.h]
226 NetBSD doesn't define THREAD_STACK_MIN, so pick an arbitrary 16 pages.
228 --- include/fluent-bit/flb_coro.h.orig 2022-03-22 22:42:32 UTC
229 +++ include/fluent-bit/flb_coro.h
230 @@ -65,7 +65,12 @@ struct flb_coro {
231 #ifdef FLB_CORO_STACK_SIZE
232 #define FLB_CORO_STACK_SIZE FLB_CORO_STACK_SIZE
234 +# if defined(__NetBSD__) && !defined(PTHREAD_STACK_MIN)
235 +#include <machine/vmparam.h>
236 +#define FLB_CORO_STACK_SIZE (16 * PAGE_SIZE)
238 #define FLB_CORO_STACK_SIZE ((3 * PTHREAD_STACK_MIN) / 2)
242 #define FLB_CORO_DATA(coro) (((char *) coro) + sizeof(struct flb_coro))
245 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
246 --- include/fluent-bit/flb_endian.h.orig 2022-03-22 22:42:32 UTC
247 +++ include/fluent-bit/flb_endian.h
250 #if defined(__GLIBC__)
252 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
253 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
254 #include <sys/endian.h>
255 #elif defined(__APPLE__)
256 #include <libkern/OSByteOrder.h>
259 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
260 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-03-22 22:42:32 UTC
261 +++ lib/chunkio/deps/crc32/crc32.c
263 # define __BIG_ENDIAN 1
264 # define __LITTLE_ENDIAN 2
265 # define __BYTE_ORDER __LITTLE_ENDIAN
266 -#elif defined(__FreeBSD__)
267 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
268 # include <sys/endian.h>
269 #elif defined(__sun) || defined(sun)
270 # include <sys/byteorder.h>
273 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
274 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-03-22 22:42:32 UTC
275 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
276 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
277 #define LJ_TARGET_HAS_GETENTROPY 1
279 #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
280 -#define LJ_TARGET_HAS_GETENTROPY 1
281 +#define LJ_TARGET_HAS_GETENTROPY 0
284 #if LJ_TARGET_HAS_GETENTROPY
287 [FILE:840:patches/patch-lib_monkey_CMakeLists.txt]
288 --- lib/monkey/CMakeLists.txt.orig 2022-03-22 22:42:32 UTC
289 +++ lib/monkey/CMakeLists.txt
290 @@ -43,7 +43,7 @@ option(MK_LINUX_KQUEUE "Use Linux kque
291 option(MK_TRACE "Enable Trace mode" No)
292 option(MK_UCLIB "Enable uClib libc support" No)
293 option(MK_MUSL "Enable Musl libc support" No)
294 -option(MK_BACKTRACE "Enable Backtrace feature" Yes)
295 +option(MK_BACKTRACE "Enable Backtrace feature" No)
296 option(MK_LINUX_TRACE "Enable Lttng support" No)
297 option(MK_PTHREAD_TLS "Use old Pthread TLS mode" No)
298 option(MK_MBEDTLS_SHARED "Use mbedtls shared lib" No)
299 @@ -161,8 +161,6 @@ endif()
300 check_include_file("execinfo.h" HAVE_BACKTRACE)
301 if (NOT HAVE_BACKTRACE)
304 - MK_DEFINITION(MK_HAVE_BACKTRACE)
307 # Check for LTTng-UST
310 [FILE:635:patches/patch-lib_monkey_include_monkey_mk__thread__libco.h]
311 NetBSD doesn't define THREAD_STACK_MIN, so pick an arbitrary 16 pages.
313 --- lib/monkey/include/monkey/mk_thread_libco.h.orig 2022-03-22 22:42:32 UTC
314 +++ lib/monkey/include/monkey/mk_thread_libco.h
315 @@ -51,7 +51,12 @@ struct mk_thread {
316 void (*cb_destroy) (void *);
319 +#if defined(__NetBSD__) && !defined(PTHREAD_STACK_MIN)
320 +#include <machine/vmparam.h>
321 +#define MK_THREAD_STACK_SIZE (16 * PAGE_SIZE)
323 #define MK_THREAD_STACK_SIZE ((3 * PTHREAD_STACK_MIN) / 2)
325 #define MK_THREAD_DATA(th) (((char *) th) + sizeof(struct mk_thread))
327 extern MK_EXPORT MK_TLS_DEFINE(struct mk_thread, mk_thread);
330 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
331 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig 2022-03-22 22:42:32 UTC
332 +++ lib/monkey/mk_core/deps/libevent/buffer.c
334 #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
335 #define USE_SENDFILE 1
336 #define SENDFILE_IS_FREEBSD 1
337 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
338 +#define USE_SENDFILE 1
339 +#define SENDFILE_IS_FREEBSD 1
340 #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
341 #define USE_SENDFILE 1
342 #define SENDFILE_IS_MACOSX 1
345 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
346 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig 2022-03-22 22:42:32 UTC
347 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
349 /* Some platforms apparently define the udata field of struct kevent as
350 * intptr_t, whereas others define it as void*. There doesn't seem to be an
351 * easy way to tell them apart via autoconf, so we need to use OS macros. */
352 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
353 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
354 #define PTR_TO_UDATA(x) ((intptr_t)(x))
355 #define INT_TO_UDATA(x) ((intptr_t)(x))
359 [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
360 --- lib/monkey/mk_server/CMakeLists.txt.orig 2022-03-22 22:42:32 UTC
361 +++ lib/monkey/mk_server/CMakeLists.txt
362 @@ -47,10 +47,6 @@ if(MK_HAVE_LINUX_KQUEUE)
363 target_link_libraries(monkey-core-static kqueue)
367 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
368 - target_link_libraries(monkey-core-static execinfo)
371 if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
372 target_link_libraries(monkey-core-static socket nsl)
375 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
376 --- lib/monkey/plugins/liana/liana.c.orig 2022-03-22 22:42:32 UTC
377 +++ lib/monkey/plugins/liana/liana.c
378 @@ -112,7 +112,7 @@ int mk_liana_send_file(int socket_fd, in
382 -#elif defined (__FreeBSD__)
383 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
384 off_t offset = *file_offset;
385 off_t len = (off_t) file_count;
389 [FILE:937:patches/patch-lib_onigmo_configure]
390 --- lib/onigmo/configure.orig 2022-03-22 22:42:32 UTC
391 +++ lib/onigmo/configure
392 @@ -5241,7 +5241,7 @@ darwin* | rhapsody*)
393 lt_cv_deplibs_check_method=pass_all
396 -freebsd* | dragonfly*)
397 +freebsd* | dragonfly* | midnight*)
398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
401 @@ -9756,7 +9756,7 @@ fi
404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
405 - freebsd* | dragonfly*)
406 + freebsd* | dragonfly* | midnight*)
407 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
408 hardcode_libdir_flag_spec='-R$libdir'
410 @@ -10801,7 +10801,7 @@ dgux*)
411 shlibpath_var=LD_LIBRARY_PATH
414 -freebsd* | dragonfly*)
415 +freebsd* | dragonfly* | midnight*)
416 # DragonFly does not have aout. When/if they implement a new
417 # versioning mechanism, adjust this.
418 if test -x /usr/bin/objformat; then
421 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
422 --- lib/snappy-fef67ac/compat.h.orig 2022-03-22 22:42:32 UTC
423 +++ lib/snappy-fef67ac/compat.h
427 # include <sys/endian.h>
428 +#elif defined __DragonFly__
429 +# include <sys/endian.h>
430 #elif defined(__APPLE_CC_) || defined(__MACH__) /* MacOS/X support */
431 # include <machine/endian.h>
435 [FILE:700:files/fluent-bit.in]
438 # PROVIDE: fluent-bit
443 # Add the following lines to /etc/rc.conf to enable fluent-bit:
445 # fluent_bit_enable (bool): Set to YES to enable fluent-bit
447 # fluent_bit_config (str): config files to use
448 # Default: %%ETCDIR%%/fluent-bit.conf
449 # fluent_bit_flags (str): Extra flags passed to fluent-bit
450 # fluent_bit_user (str): Default run as user nobody
458 : ${fluent_bit_enable:="NO"}
459 : ${fluent_bit_user:="nobody"}
461 command=%%PREFIX%%/bin/fluent-bit
462 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"