Ravenports generated: 22 May 2022 19:48
[ravenports.git] / bucket_12 / fluent-bit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluent-bit
4 VERSION=                1.9.3
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.9.3
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 FPC_EQUIVALENT=         sysutils/fluent-bit
35 SHEBANG_ADD_SH=         lib/luajit-2.1.0-1e66d0f/configure
36
37 RC_SUBR=                fluent-bit:primary
38
39 CMAKE_ARGS=             -DFLB_DEBUG=Off
40                         -DFLB_TRACE=Off
41                         -DFLB_BACKTRACE=Off
42                         -DFLB_TLS=On
43                         -DFLB_EXAMPLES=On
44                         -DFLB_OUT_PGSQL=Off
45                         -DFLB_HTTP_SERVER=On
46
47 post-install:
48         ${MV} ${STAGEDIR}${ETCDIR}/fluent-bit.conf \
49                 ${STAGEDIR}${ETCDIR}/fluent-bit.conf.sample
50         ${MV} ${STAGEDIR}${ETCDIR}/parsers.conf \
51                 ${STAGEDIR}${ETCDIR}/parsers.conf.sample
52         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit
53         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so
54
55 [FILE:284: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
59 without complexity.
60
61 Fluent Bit is part of the Fluentd project ecosystem.
62
63
64 [FILE:151:descriptions/desc.library]
65 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
66 family operating systems. This subpackage contains the library and headers.
67
68
69 [FILE:109:distinfo]
70 26ed6279aced8f122664184d6a999eb3c2372a19aeb1a7ddad9704d23b44b6be     19204235 fluent-fluent-bit-1.9.3.tar.gz
71
72
73 [FILE:132:manifests/plist.primary]
74 @sample etc/fluent-bit/fluent-bit.conf.sample
75 @sample etc/fluent-bit/parsers.conf.sample
76 bin/fluent-bit
77 etc/fluent-bit/plugins.conf
78
79
80 [FILE:2256:manifests/plist.library]
81 include/
82  fluent-bit.h
83  libco.h
84  settings.h
85 include/fluent-bit/
86  flb_api.h
87  flb_avro.h
88  flb_aws_credentials.h
89  flb_aws_util.h
90  flb_base64.h
91  flb_bits.h
92  flb_bucket_queue.h
93  flb_callback.h
94  flb_compat.h
95  flb_config.h
96  flb_config_format.h
97  flb_config_map.h
98  flb_coro.h
99  flb_csv.h
100  flb_custom.h
101  flb_custom_plugin.h
102  flb_dlfcn_win32.h
103  flb_dump.h
104  flb_endian.h
105  flb_engine.h
106  flb_engine_dispatch.h
107  flb_engine_macros.h
108  flb_env.h
109  flb_error.h
110  flb_event.h
111  flb_event_loop.h
112  flb_file.h
113  flb_filter.h
114  flb_filter_plugin.h
115  flb_fstore.h
116  flb_gzip.h
117  flb_hash.h
118  flb_help.h
119  flb_http_client.h
120  flb_http_client_debug.h
121  flb_http_server.h
122  flb_info.h
123  flb_input.h
124  flb_input_chunk.h
125  flb_input_metric.h
126  flb_input_plugin.h
127  flb_input_thread.h
128  flb_intermediate_metric.h
129  flb_io.h
130  flb_jsmn.h
131  flb_kafka.h
132  flb_kernel.h
133  flb_kv.h
134  flb_langinfo.h
135  flb_lib.h
136  flb_log.h
137  flb_lua.h
138  flb_luajit.h
139  flb_macros.h
140  flb_mem.h
141  flb_meta.h
142  flb_metrics.h
143  flb_metrics_exporter.h
144  flb_mp.h
145  flb_net_dns.h
146  flb_network.h
147  flb_oauth2.h
148  flb_output.h
149  flb_output_plugin.h
150  flb_output_thread.h
151  flb_pack.h
152  flb_parser.h
153  flb_parser_decoder.h
154  flb_pipe.h
155  flb_plugin.h
156  flb_plugin_proxy.h
157  flb_pthread.h
158  flb_ra_key.h
159  flb_random.h
160  flb_record_accessor.h
161  flb_regex.h
162  flb_router.h
163  flb_routes_mask.h
164  flb_s3_local_buffer.h
165  flb_scheduler.h
166  flb_sds.h
167  flb_sha512.h
168  flb_signv4.h
169  flb_slist.h
170  flb_snappy.h
171  flb_socket.h
172  flb_sosreport.h
173  flb_sqldb.h
174  flb_stacktrace.h
175  flb_storage.h
176  flb_str.h
177  flb_strptime.h
178  flb_task.h
179  flb_task_map.h
180  flb_thread_pool.h
181  flb_thread_storage.h
182  flb_time.h
183  flb_time_utils.h
184  flb_tls.h
185  flb_typecast.h
186  flb_unescape.h
187  flb_upstream.h
188  flb_upstream_conn.h
189  flb_upstream_ha.h
190  flb_upstream_node.h
191  flb_upstream_queue.h
192  flb_uri.h
193  flb_utf8.h
194  flb_utils.h
195  flb_version.h
196  flb_worker.h
197 include/fluent-bit/tls/flb_tls.h
198 include/monkey/mk_core.h
199 include/monkey/mk_core/
200  mk_core_info.h
201  mk_dep_unistd.h
202  mk_dirent.h
203  mk_event.h
204  mk_event_epoll.h
205  mk_event_kqueue.h
206  mk_event_libevent.h
207  mk_event_select.h
208  mk_file.h
209  mk_getopt.h
210  mk_iov.h
211  mk_limits.h
212  mk_list.h
213  mk_macros.h
214  mk_memory.h
215  mk_pipe.h
216  mk_pthread.h
217  mk_rconf.h
218  mk_sleep.h
219  mk_string.h
220  mk_thread.h
221  mk_thread_channel.h
222  mk_uio.h
223  mk_unistd.h
224  mk_utils.h
225 lib/fluent-bit/libfluent-bit.so
226
227
228 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
229 --- include/fluent-bit/flb_endian.h.orig        2022-04-26 04:07:54 UTC
230 +++ include/fluent-bit/flb_endian.h
231 @@ -39,7 +39,7 @@
232   */
233  #if defined(__GLIBC__)
234  #include <endian.h>
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>
240
241
242 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
243 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-04-26 04:07:54 UTC
244 +++ lib/chunkio/deps/crc32/crc32.c
245 @@ -34,7 +34,7 @@
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>
254
255
256 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
257 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-04-26 04:07:54 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
261  #endif
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
265  #endif
266  
267  #if LJ_TARGET_HAS_GETENTROPY
268
269
270 [FILE:840:patches/patch-lib_monkey_CMakeLists.txt]
271 --- lib/monkey/CMakeLists.txt.orig      2022-04-26 04:07:54 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)
285    set(MK_BACKTRACE No)
286 -else()
287 -  MK_DEFINITION(MK_HAVE_BACKTRACE)
288  endif()
289  
290  # Check for LTTng-UST
291
292
293 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
294 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig      2022-04-26 04:07:54 UTC
295 +++ lib/monkey/mk_core/deps/libevent/buffer.c
296 @@ -108,6 +108,9 @@
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
306
307
308 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
309 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig      2022-04-26 04:07:54 UTC
310 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
311 @@ -50,7 +50,7 @@
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))
319  #else
320
321
322 [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
323 --- lib/monkey/mk_server/CMakeLists.txt.orig    2022-04-26 04:07:54 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)
327  endif()
328  
329 -# FreeBSD backtrace
330 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
331 -  target_link_libraries(monkey-core-static execinfo)
332 -endif()
333  
334  if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
335    target_link_libraries(monkey-core-static socket nsl)
336
337
338 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
339 --- lib/monkey/plugins/liana/liana.c.orig       2022-04-26 04:07:54 UTC
340 +++ lib/monkey/plugins/liana/liana.c
341 @@ -109,7 +109,7 @@ int mk_liana_send_file(int socket_fd, in
342          return len;
343      }
344      return ret;
345 -#elif defined (__FreeBSD__)
346 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
347      off_t offset = *file_offset;
348      off_t len = (off_t) file_count;
349  
350
351
352 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
353 --- lib/snappy-fef67ac/compat.h.orig    2022-04-26 04:07:54 UTC
354 +++ lib/snappy-fef67ac/compat.h
355 @@ -4,6 +4,8 @@
356  
357  #ifdef __FreeBSD__
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>
363  
364
365
366 [FILE:700:files/fluent-bit.in]
367 #!/bin/sh
368
369 # PROVIDE: fluent-bit
370 # REQUIRE: DAEMON
371 # BEFORE: LOGIN
372 # KEYWORD: shutdown
373
374 # Add the following lines to /etc/rc.conf to enable fluent-bit:
375 #
376 # fluent_bit_enable (bool):     Set to YES to enable fluent-bit
377 #                               Default: NO
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
382
383 . /etc/rc.subr
384
385 name="fluent_bit"
386 rcvar=${name}_enable
387 load_rc_config $name
388
389 : ${fluent_bit_enable:="NO"}
390 : ${fluent_bit_user:="nobody"}
391
392 command=%%PREFIX%%/bin/fluent-bit
393 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"
394
395 run_rc_command "$1"
396