Ravenports generated: 14 Jan 2024 04:52
[ravenports.git] / bucket_00 / fluent-bit18
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluent-bit18
4 VERSION=                1.8.15
5 KEYWORDS=               sysutils
6 VARIANTS=               standard
7 SDESC[standard]=        Fast and Lightweight Log processor and forwarder
8 HOMEPAGE=               https://fluentbit.io/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/fluent:fluent-bit:v1.8.15
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         library
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 USES=                   cpe cmake bison zlib gmake shebangfix
23                         cclibs:primary,library
24
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
30 LICENSE_SCHEME=         solo
31
32 CPE_PRODUCT=            fluent_bit
33 CPE_VENDOR=             treasuredata
34 SHEBANG_ADD_SH=         lib/luajit-2.1.0-1e66d0f/configure
35
36 RC_SUBR=                fluent-bit:primary
37
38 CMAKE_ARGS=             -DFLB_DEBUG=Off
39                         -DFLB_TRACE=Off
40                         -DFLB_BACKTRACE=Off
41                         -DFLB_TLS=On
42                         -DFLB_EXAMPLES=On
43                         -DFLB_OUT_PGSQL=Off
44                         -DFLB_HTTP_SERVER=On
45
46 post-install:
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
53
54 post-extract:
55         ${CP} ${MK_TEMPLATES}/config.sub ${WRKSRC}/lib/onigmo/config.sub
56         ${CP} ${MK_TEMPLATES}/config.guess ${WRKSRC}/lib/onigmo/config.guess
57
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
62 without complexity.
63
64 This package contains the 1.8.x maintenance version of Fluent-Bit.
65
66 Fluent Bit is part of the Fluentd project ecosystem.
67
68
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.
73
74
75 [FILE:110:distinfo]
76 b98328c7e7c2428389fa2b284abe8d2c901c3365701ce05e51abcf550d9fd39a     14956052 fluent-fluent-bit-1.8.15.tar.gz
77
78
79 [FILE:157:manifests/plist.primary]
80 @sample etc/fluent-bit/fluent-bit.conf.sample
81 @sample etc/fluent-bit/parsers.conf.sample
82 bin/fluent-bit
83 etc/fluent-bit/
84  fluent-bit-win32.conf
85  plugins.conf
86
87
88 [FILE:2080:manifests/plist.library]
89 include/
90  fluent-bit.h
91  libco.h
92  settings.h
93 include/fluent-bit/
94  flb_api.h
95  flb_avro.h
96  flb_aws_credentials.h
97  flb_aws_util.h
98  flb_base64.h
99  flb_bits.h
100  flb_callback.h
101  flb_compat.h
102  flb_config.h
103  flb_config_map.h
104  flb_coro.h
105  flb_custom.h
106  flb_custom_plugin.h
107  flb_dlfcn_win32.h
108  flb_dump.h
109  flb_endian.h
110  flb_engine.h
111  flb_engine_dispatch.h
112  flb_env.h
113  flb_error.h
114  flb_filter.h
115  flb_filter_plugin.h
116  flb_fstore.h
117  flb_gzip.h
118  flb_hash.h
119  flb_help.h
120  flb_http_client.h
121  flb_http_client_debug.h
122  flb_http_server.h
123  flb_info.h
124  flb_input.h
125  flb_input_chunk.h
126  flb_input_metric.h
127  flb_input_plugin.h
128  flb_intermediate_metric.h
129  flb_io.h
130  flb_jsmn.h
131  flb_kernel.h
132  flb_kv.h
133  flb_langinfo.h
134  flb_lib.h
135  flb_log.h
136  flb_luajit.h
137  flb_macros.h
138  flb_mem.h
139  flb_meta.h
140  flb_metrics.h
141  flb_metrics_exporter.h
142  flb_mp.h
143  flb_net_dns.h
144  flb_network.h
145  flb_oauth2.h
146  flb_output.h
147  flb_output_plugin.h
148  flb_output_thread.h
149  flb_pack.h
150  flb_parser.h
151  flb_parser_decoder.h
152  flb_pipe.h
153  flb_plugin.h
154  flb_plugin_proxy.h
155  flb_pthread.h
156  flb_ra_key.h
157  flb_random.h
158  flb_record_accessor.h
159  flb_regex.h
160  flb_router.h
161  flb_routes_mask.h
162  flb_s3_local_buffer.h
163  flb_scheduler.h
164  flb_sds.h
165  flb_sha512.h
166  flb_signv4.h
167  flb_slist.h
168  flb_snappy.h
169  flb_socket.h
170  flb_sosreport.h
171  flb_sqldb.h
172  flb_stacktrace.h
173  flb_storage.h
174  flb_str.h
175  flb_strptime.h
176  flb_task.h
177  flb_task_map.h
178  flb_thread_pool.h
179  flb_thread_storage.h
180  flb_time.h
181  flb_time_utils.h
182  flb_tls.h
183  flb_unescape.h
184  flb_upstream.h
185  flb_upstream_conn.h
186  flb_upstream_ha.h
187  flb_upstream_node.h
188  flb_upstream_queue.h
189  flb_uri.h
190  flb_utf8.h
191  flb_utils.h
192  flb_version.h
193  flb_worker.h
194 include/fluent-bit/tls/flb_tls.h
195 include/monkey/mk_core.h
196 include/monkey/mk_core/
197  mk_core_info.h
198  mk_dep_unistd.h
199  mk_dirent.h
200  mk_event.h
201  mk_event_epoll.h
202  mk_event_kqueue.h
203  mk_event_libevent.h
204  mk_event_select.h
205  mk_file.h
206  mk_getopt.h
207  mk_iov.h
208  mk_limits.h
209  mk_list.h
210  mk_macros.h
211  mk_memory.h
212  mk_pipe.h
213  mk_pthread.h
214  mk_rconf.h
215  mk_sleep.h
216  mk_string.h
217  mk_thread.h
218  mk_thread_channel.h
219  mk_uio.h
220  mk_unistd.h
221  mk_utils.h
222 lib/fluent-bit/libfluent-bit.so
223
224
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.
227
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
233  #else
234 +# if defined(__NetBSD__) && !defined(PTHREAD_STACK_MIN)
235 +#include <machine/vmparam.h>
236 +#define FLB_CORO_STACK_SIZE      (16 * PAGE_SIZE)
237 +# else
238  #define FLB_CORO_STACK_SIZE      ((3 * PTHREAD_STACK_MIN) / 2)
239 +# endif
240  #endif
241  
242  #define FLB_CORO_DATA(coro)      (((char *) coro) + sizeof(struct flb_coro))
243
244
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
248 @@ -40,7 +40,7 @@
249   */
250  #if defined(__GLIBC__)
251  #include <endian.h>
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>
257
258
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
262 @@ -34,7 +34,7 @@
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>
271
272
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
278  #endif
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
282  #endif
283  
284  #if LJ_TARGET_HAS_GETENTROPY
285
286
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)
302    set(MK_BACKTRACE No)
303 -else()
304 -  MK_DEFINITION(MK_HAVE_BACKTRACE)
305  endif()
306  
307  # Check for LTTng-UST
308
309
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.
312
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 *);
317  };
318  
319 +#if defined(__NetBSD__) && !defined(PTHREAD_STACK_MIN)
320 +#include <machine/vmparam.h>
321 +#define MK_THREAD_STACK_SIZE      (16 * PAGE_SIZE)
322 +#else
323  #define MK_THREAD_STACK_SIZE      ((3 * PTHREAD_STACK_MIN) / 2)
324 +#endif
325  #define MK_THREAD_DATA(th)        (((char *) th) + sizeof(struct mk_thread))
326  
327  extern MK_EXPORT MK_TLS_DEFINE(struct mk_thread, mk_thread);
328
329
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
333 @@ -108,6 +108,9 @@
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
343
344
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
348 @@ -50,7 +50,7 @@
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))
356  #else
357
358
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)
364  endif()
365  
366 -# FreeBSD backtrace
367 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
368 -  target_link_libraries(monkey-core-static execinfo)
369 -endif()
370  
371  if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
372    target_link_libraries(monkey-core-static socket nsl)
373
374
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
379          return len;
380      }
381      return ret;
382 -#elif defined (__FreeBSD__)
383 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
384      off_t offset = *file_offset;
385      off_t len = (off_t) file_count;
386  
387
388
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
394    ;;
395  
396 -freebsd* | dragonfly*)
397 +freebsd* | dragonfly* | midnight*)
398    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
399      case $host_cpu in
400      i*86 )
401 @@ -9756,7 +9756,7 @@ fi
402        ;;
403  
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'
409        hardcode_direct=yes
410 @@ -10801,7 +10801,7 @@ dgux*)
411    shlibpath_var=LD_LIBRARY_PATH
412    ;;
413  
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
419
420
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
424 @@ -4,6 +4,8 @@
425  
426  #ifdef __FreeBSD__
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>
432  
433
434
435 [FILE:700:files/fluent-bit.in]
436 #!/bin/sh
437
438 # PROVIDE: fluent-bit
439 # REQUIRE: DAEMON
440 # BEFORE: LOGIN
441 # KEYWORD: shutdown
442
443 # Add the following lines to /etc/rc.conf to enable fluent-bit:
444 #
445 # fluent_bit_enable (bool):     Set to YES to enable fluent-bit
446 #                               Default: NO
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
451
452 . /etc/rc.subr
453
454 name="fluent_bit"
455 rcvar=${name}_enable
456 load_rc_config $name
457
458 : ${fluent_bit_enable:="NO"}
459 : ${fluent_bit_user:="nobody"}
460
461 command=%%PREFIX%%/bin/fluent-bit
462 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"
463
464 run_rc_command "$1"
465