# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= fluent-bit18 VERSION= 1.8.15 KEYWORDS= sysutils VARIANTS= standard SDESC[standard]= Fast and Lightweight Log processor and forwarder HOMEPAGE= https://fluentbit.io/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= GITHUB/fluent:fluent-bit:v1.8.15 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[standard]= complete primary library OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none USES= cpe cmake bison zlib gmake shebangfix cclibs:primary,library LICENSE= APACHE20:library LICENSE_TERMS= library:{{WRKDIR}}/TERMS LICENSE_FILE= APACHE20:{{WRKSRC}}/LICENSE LICENSE_AWK= TERMS:"_GNU_SOURCE" LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/fluent-bit.c LICENSE_SCHEME= solo CPE_PRODUCT= fluent_bit CPE_VENDOR= treasuredata SHEBANG_ADD_SH= lib/luajit-2.1.0-1e66d0f/configure RC_SUBR= fluent-bit:primary CMAKE_ARGS= -DFLB_DEBUG=Off -DFLB_TRACE=Off -DFLB_BACKTRACE=Off -DFLB_TLS=On -DFLB_EXAMPLES=On -DFLB_OUT_PGSQL=Off -DFLB_HTTP_SERVER=On post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf \ ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf.sample ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf \ ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf.sample ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so post-extract: ${CP} ${MK_TEMPLATES}/config.sub ${WRKSRC}/lib/onigmo/config.sub ${CP} ${MK_TEMPLATES}/config.guess ${WRKSRC}/lib/onigmo/config.guess [FILE:352:descriptions/desc.primary] Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD family operating systems. It has been made with a strong focus on performance to allow the collection of events from different sources without complexity. This package contains the 1.8.x maintenance version of Fluent-Bit. Fluent Bit is part of the Fluentd project ecosystem. [FILE:199:descriptions/desc.library] Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD family operating systems. This subpackage contains the library and headers for the 1.8.x maintenance version of Fluent Bit. [FILE:110:distinfo] b98328c7e7c2428389fa2b284abe8d2c901c3365701ce05e51abcf550d9fd39a 14956052 fluent-fluent-bit-1.8.15.tar.gz [FILE:157:manifests/plist.primary] @sample etc/fluent-bit/fluent-bit.conf.sample @sample etc/fluent-bit/parsers.conf.sample bin/fluent-bit etc/fluent-bit/ fluent-bit-win32.conf plugins.conf [FILE:2080:manifests/plist.library] include/ fluent-bit.h libco.h settings.h include/fluent-bit/ flb_api.h flb_avro.h flb_aws_credentials.h flb_aws_util.h flb_base64.h flb_bits.h flb_callback.h flb_compat.h flb_config.h flb_config_map.h flb_coro.h flb_custom.h flb_custom_plugin.h flb_dlfcn_win32.h flb_dump.h flb_endian.h flb_engine.h flb_engine_dispatch.h flb_env.h flb_error.h flb_filter.h flb_filter_plugin.h flb_fstore.h flb_gzip.h flb_hash.h flb_help.h flb_http_client.h flb_http_client_debug.h flb_http_server.h flb_info.h flb_input.h flb_input_chunk.h flb_input_metric.h flb_input_plugin.h flb_intermediate_metric.h flb_io.h flb_jsmn.h flb_kernel.h flb_kv.h flb_langinfo.h flb_lib.h flb_log.h flb_luajit.h flb_macros.h flb_mem.h flb_meta.h flb_metrics.h flb_metrics_exporter.h flb_mp.h flb_net_dns.h flb_network.h flb_oauth2.h flb_output.h flb_output_plugin.h flb_output_thread.h flb_pack.h flb_parser.h flb_parser_decoder.h flb_pipe.h flb_plugin.h flb_plugin_proxy.h flb_pthread.h flb_ra_key.h flb_random.h flb_record_accessor.h flb_regex.h flb_router.h flb_routes_mask.h flb_s3_local_buffer.h flb_scheduler.h flb_sds.h flb_sha512.h flb_signv4.h flb_slist.h flb_snappy.h flb_socket.h flb_sosreport.h flb_sqldb.h flb_stacktrace.h flb_storage.h flb_str.h flb_strptime.h flb_task.h flb_task_map.h flb_thread_pool.h flb_thread_storage.h flb_time.h flb_time_utils.h flb_tls.h flb_unescape.h flb_upstream.h flb_upstream_conn.h flb_upstream_ha.h flb_upstream_node.h flb_upstream_queue.h flb_uri.h flb_utf8.h flb_utils.h flb_version.h flb_worker.h include/fluent-bit/tls/flb_tls.h include/monkey/mk_core.h include/monkey/mk_core/ mk_core_info.h mk_dep_unistd.h mk_dirent.h mk_event.h mk_event_epoll.h mk_event_kqueue.h mk_event_libevent.h mk_event_select.h mk_file.h mk_getopt.h mk_iov.h mk_limits.h mk_list.h mk_macros.h mk_memory.h mk_pipe.h mk_pthread.h mk_rconf.h mk_sleep.h mk_string.h mk_thread.h mk_thread_channel.h mk_uio.h mk_unistd.h mk_utils.h lib/fluent-bit/libfluent-bit.so [FILE:602:patches/patch-include_fluent-bit_flb__coro.h] NetBSD doesn't define THREAD_STACK_MIN, so pick an arbitrary 16 pages. --- include/fluent-bit/flb_coro.h.orig 2022-03-22 22:42:32 UTC +++ include/fluent-bit/flb_coro.h @@ -65,7 +65,12 @@ struct flb_coro { #ifdef FLB_CORO_STACK_SIZE #define FLB_CORO_STACK_SIZE FLB_CORO_STACK_SIZE #else +# if defined(__NetBSD__) && !defined(PTHREAD_STACK_MIN) +#include +#define FLB_CORO_STACK_SIZE (16 * PAGE_SIZE) +# else #define FLB_CORO_STACK_SIZE ((3 * PTHREAD_STACK_MIN) / 2) +# endif #endif #define FLB_CORO_DATA(coro) (((char *) coro) + sizeof(struct flb_coro)) [FILE:430:patches/patch-include_fluent-bit_flb__endian.h] --- include/fluent-bit/flb_endian.h.orig 2022-03-22 22:42:32 UTC +++ include/fluent-bit/flb_endian.h @@ -40,7 +40,7 @@ */ #if defined(__GLIBC__) #include -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) #include #elif defined(__APPLE__) #include [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c] --- lib/chunkio/deps/crc32/crc32.c.orig 2022-03-22 22:42:32 UTC +++ lib/chunkio/deps/crc32/crc32.c @@ -34,7 +34,7 @@ # define __BIG_ENDIAN 1 # define __LITTLE_ENDIAN 2 # define __BYTE_ORDER __LITTLE_ENDIAN -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) # include #elif defined(__sun) || defined(sun) # include [FILE:378:patches/patch-lib_luajit__src__lj_prng.c] --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-03-22 22:42:32 UTC +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c @@ -116,7 +116,7 @@ static PRGR libfunc_rgr; #define LJ_TARGET_HAS_GETENTROPY 1 #endif #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN -#define LJ_TARGET_HAS_GETENTROPY 1 +#define LJ_TARGET_HAS_GETENTROPY 0 #endif #if LJ_TARGET_HAS_GETENTROPY [FILE:840:patches/patch-lib_monkey_CMakeLists.txt] --- lib/monkey/CMakeLists.txt.orig 2022-03-22 22:42:32 UTC +++ lib/monkey/CMakeLists.txt @@ -43,7 +43,7 @@ option(MK_LINUX_KQUEUE "Use Linux kque option(MK_TRACE "Enable Trace mode" No) option(MK_UCLIB "Enable uClib libc support" No) option(MK_MUSL "Enable Musl libc support" No) -option(MK_BACKTRACE "Enable Backtrace feature" Yes) +option(MK_BACKTRACE "Enable Backtrace feature" No) option(MK_LINUX_TRACE "Enable Lttng support" No) option(MK_PTHREAD_TLS "Use old Pthread TLS mode" No) option(MK_MBEDTLS_SHARED "Use mbedtls shared lib" No) @@ -161,8 +161,6 @@ endif() check_include_file("execinfo.h" HAVE_BACKTRACE) if (NOT HAVE_BACKTRACE) set(MK_BACKTRACE No) -else() - MK_DEFINITION(MK_HAVE_BACKTRACE) endif() # Check for LTTng-UST [FILE:635:patches/patch-lib_monkey_include_monkey_mk__thread__libco.h] NetBSD doesn't define THREAD_STACK_MIN, so pick an arbitrary 16 pages. --- lib/monkey/include/monkey/mk_thread_libco.h.orig 2022-03-22 22:42:32 UTC +++ lib/monkey/include/monkey/mk_thread_libco.h @@ -51,7 +51,12 @@ struct mk_thread { void (*cb_destroy) (void *); }; +#if defined(__NetBSD__) && !defined(PTHREAD_STACK_MIN) +#include +#define MK_THREAD_STACK_SIZE (16 * PAGE_SIZE) +#else #define MK_THREAD_STACK_SIZE ((3 * PTHREAD_STACK_MIN) / 2) +#endif #define MK_THREAD_DATA(th) (((char *) th) + sizeof(struct mk_thread)) extern MK_EXPORT MK_TLS_DEFINE(struct mk_thread, mk_thread); [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c] --- lib/monkey/mk_core/deps/libevent/buffer.c.orig 2022-03-22 22:42:32 UTC +++ lib/monkey/mk_core/deps/libevent/buffer.c @@ -108,6 +108,9 @@ #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__) #define USE_SENDFILE 1 #define SENDFILE_IS_FREEBSD 1 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__) +#define USE_SENDFILE 1 +#define SENDFILE_IS_FREEBSD 1 #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__) #define USE_SENDFILE 1 #define SENDFILE_IS_MACOSX 1 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c] --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig 2022-03-22 22:42:32 UTC +++ lib/monkey/mk_core/deps/libevent/kqueue.c @@ -50,7 +50,7 @@ /* Some platforms apparently define the udata field of struct kevent as * intptr_t, whereas others define it as void*. There doesn't seem to be an * easy way to tell them apart via autoconf, so we need to use OS macros. */ -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__) #define PTR_TO_UDATA(x) ((intptr_t)(x)) #define INT_TO_UDATA(x) ((intptr_t)(x)) #else [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt] --- lib/monkey/mk_server/CMakeLists.txt.orig 2022-03-22 22:42:32 UTC +++ lib/monkey/mk_server/CMakeLists.txt @@ -47,10 +47,6 @@ if(MK_HAVE_LINUX_KQUEUE) target_link_libraries(monkey-core-static kqueue) endif() -# FreeBSD backtrace -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") - target_link_libraries(monkey-core-static execinfo) -endif() if (CMAKE_SYSTEM_NAME MATCHES "SunOS") target_link_libraries(monkey-core-static socket nsl) [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c] --- lib/monkey/plugins/liana/liana.c.orig 2022-03-22 22:42:32 UTC +++ lib/monkey/plugins/liana/liana.c @@ -112,7 +112,7 @@ int mk_liana_send_file(int socket_fd, in return len; } return ret; -#elif defined (__FreeBSD__) +#elif defined (__FreeBSD__) || defined(__DragonFly__) off_t offset = *file_offset; off_t len = (off_t) file_count; [FILE:937:patches/patch-lib_onigmo_configure] --- lib/onigmo/configure.orig 2022-03-22 22:42:32 UTC +++ lib/onigmo/configure @@ -5241,7 +5241,7 @@ darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; -freebsd* | dragonfly*) +freebsd* | dragonfly* | midnight*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) @@ -9756,7 +9756,7 @@ fi ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnight*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -10801,7 +10801,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd* | dragonfly*) +freebsd* | dragonfly* | midnight*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h] --- lib/snappy-fef67ac/compat.h.orig 2022-03-22 22:42:32 UTC +++ lib/snappy-fef67ac/compat.h @@ -4,6 +4,8 @@ #ifdef __FreeBSD__ # include +#elif defined __DragonFly__ +# include #elif defined(__APPLE_CC_) || defined(__MACH__) /* MacOS/X support */ # include [FILE:700:files/fluent-bit.in] #!/bin/sh # PROVIDE: fluent-bit # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable fluent-bit: # # fluent_bit_enable (bool): Set to YES to enable fluent-bit # Default: NO # fluent_bit_config (str): config files to use # Default: %%ETCDIR%%/fluent-bit.conf # fluent_bit_flags (str): Extra flags passed to fluent-bit # fluent_bit_user (str): Default run as user nobody . /etc/rc.subr name="fluent_bit" rcvar=${name}_enable load_rc_config $name : ${fluent_bit_enable:="NO"} : ${fluent_bit_user:="nobody"} command=%%PREFIX%%/bin/fluent-bit command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf" run_rc_command "$1"