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 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
48 ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf \
49 ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf.sample
50 ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf \
51 ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf.sample
52 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit
53 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so
55 [FILE:352:descriptions/desc.primary]
56 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
57 family operating systems. It has been made with a strong focus on
58 performance to allow the collection of events from different sources
61 This package contains the 1.8.x maintenance version of Fluent-Bit.
63 Fluent Bit is part of the Fluentd project ecosystem.
66 [FILE:199:descriptions/desc.library]
67 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
68 family operating systems. This subpackage contains the library and headers
69 for the 1.8.x maintenance version of Fluent Bit.
73 b98328c7e7c2428389fa2b284abe8d2c901c3365701ce05e51abcf550d9fd39a 14956052 fluent-fluent-bit-1.8.15.tar.gz
76 [FILE:157:manifests/plist.primary]
77 @sample etc/fluent-bit/fluent-bit.conf.sample
78 @sample etc/fluent-bit/parsers.conf.sample
85 [FILE:2080:manifests/plist.library]
108 flb_engine_dispatch.h
118 flb_http_client_debug.h
125 flb_intermediate_metric.h
138 flb_metrics_exporter.h
155 flb_record_accessor.h
159 flb_s3_local_buffer.h
191 include/fluent-bit/tls/flb_tls.h
192 include/monkey/mk_core.h
193 include/monkey/mk_core/
219 lib/fluent-bit/libfluent-bit.so
222 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
223 --- include/fluent-bit/flb_endian.h.orig 2022-03-22 22:42:32 UTC
224 +++ include/fluent-bit/flb_endian.h
227 #if defined(__GLIBC__)
229 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
230 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
231 #include <sys/endian.h>
232 #elif defined(__APPLE__)
233 #include <libkern/OSByteOrder.h>
236 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
237 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-03-22 22:42:32 UTC
238 +++ lib/chunkio/deps/crc32/crc32.c
240 # define __BIG_ENDIAN 1
241 # define __LITTLE_ENDIAN 2
242 # define __BYTE_ORDER __LITTLE_ENDIAN
243 -#elif defined(__FreeBSD__)
244 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
245 # include <sys/endian.h>
246 #elif defined(__sun) || defined(sun)
247 # include <sys/byteorder.h>
250 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
251 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-03-22 22:42:32 UTC
252 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
253 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
254 #define LJ_TARGET_HAS_GETENTROPY 1
256 #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
257 -#define LJ_TARGET_HAS_GETENTROPY 1
258 +#define LJ_TARGET_HAS_GETENTROPY 0
261 #if LJ_TARGET_HAS_GETENTROPY
264 [FILE:840:patches/patch-lib_monkey_CMakeLists.txt]
265 --- lib/monkey/CMakeLists.txt.orig 2022-03-22 22:42:32 UTC
266 +++ lib/monkey/CMakeLists.txt
267 @@ -43,7 +43,7 @@ option(MK_LINUX_KQUEUE "Use Linux kque
268 option(MK_TRACE "Enable Trace mode" No)
269 option(MK_UCLIB "Enable uClib libc support" No)
270 option(MK_MUSL "Enable Musl libc support" No)
271 -option(MK_BACKTRACE "Enable Backtrace feature" Yes)
272 +option(MK_BACKTRACE "Enable Backtrace feature" No)
273 option(MK_LINUX_TRACE "Enable Lttng support" No)
274 option(MK_PTHREAD_TLS "Use old Pthread TLS mode" No)
275 option(MK_MBEDTLS_SHARED "Use mbedtls shared lib" No)
276 @@ -161,8 +161,6 @@ endif()
277 check_include_file("execinfo.h" HAVE_BACKTRACE)
278 if (NOT HAVE_BACKTRACE)
281 - MK_DEFINITION(MK_HAVE_BACKTRACE)
284 # Check for LTTng-UST
287 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
288 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig 2022-03-22 22:42:32 UTC
289 +++ lib/monkey/mk_core/deps/libevent/buffer.c
291 #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
292 #define USE_SENDFILE 1
293 #define SENDFILE_IS_FREEBSD 1
294 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
295 +#define USE_SENDFILE 1
296 +#define SENDFILE_IS_FREEBSD 1
297 #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
298 #define USE_SENDFILE 1
299 #define SENDFILE_IS_MACOSX 1
302 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
303 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig 2022-03-22 22:42:32 UTC
304 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
306 /* Some platforms apparently define the udata field of struct kevent as
307 * intptr_t, whereas others define it as void*. There doesn't seem to be an
308 * easy way to tell them apart via autoconf, so we need to use OS macros. */
309 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
310 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
311 #define PTR_TO_UDATA(x) ((intptr_t)(x))
312 #define INT_TO_UDATA(x) ((intptr_t)(x))
316 [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
317 --- lib/monkey/mk_server/CMakeLists.txt.orig 2022-03-22 22:42:32 UTC
318 +++ lib/monkey/mk_server/CMakeLists.txt
319 @@ -47,10 +47,6 @@ if(MK_HAVE_LINUX_KQUEUE)
320 target_link_libraries(monkey-core-static kqueue)
324 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
325 - target_link_libraries(monkey-core-static execinfo)
328 if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
329 target_link_libraries(monkey-core-static socket nsl)
332 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
333 --- lib/monkey/plugins/liana/liana.c.orig 2022-03-22 22:42:32 UTC
334 +++ lib/monkey/plugins/liana/liana.c
335 @@ -112,7 +112,7 @@ int mk_liana_send_file(int socket_fd, in
339 -#elif defined (__FreeBSD__)
340 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
341 off_t offset = *file_offset;
342 off_t len = (off_t) file_count;
346 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
347 --- lib/snappy-fef67ac/compat.h.orig 2022-03-22 22:42:32 UTC
348 +++ lib/snappy-fef67ac/compat.h
352 # include <sys/endian.h>
353 +#elif defined __DragonFly__
354 +# include <sys/endian.h>
355 #elif defined(__APPLE_CC_) || defined(__MACH__) /* MacOS/X support */
356 # include <machine/endian.h>
360 [FILE:700:files/fluent-bit.in]
363 # PROVIDE: fluent-bit
368 # Add the following lines to /etc/rc.conf to enable fluent-bit:
370 # fluent_bit_enable (bool): Set to YES to enable fluent-bit
372 # fluent_bit_config (str): config files to use
373 # Default: %%ETCDIR%%/fluent-bit.conf
374 # fluent_bit_flags (str): Extra flags passed to fluent-bit
375 # fluent_bit_user (str): Default run as user nobody
383 : ${fluent_bit_enable:="NO"}
384 : ${fluent_bit_user:="nobody"}
386 command=%%PREFIX%%/bin/fluent-bit
387 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"