Ravenports generated: 19 Jun 2022 02:24
[ravenports.git] / bucket_12 / fluent-bit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluent-bit
4 VERSION=                1.9.4
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.4
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 82581ca093f87fad9ed5045ed69973ed45cb4a3aea67f74868543e722a19dd61     19223914 fluent-fluent-bit-1.9.4.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:2240: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_dep_unistd.h
201  mk_dirent.h
202  mk_event.h
203  mk_event_epoll.h
204  mk_event_kqueue.h
205  mk_event_libevent.h
206  mk_event_select.h
207  mk_file.h
208  mk_getopt.h
209  mk_iov.h
210  mk_limits.h
211  mk_list.h
212  mk_macros.h
213  mk_memory.h
214  mk_pipe.h
215  mk_pthread.h
216  mk_rconf.h
217  mk_sleep.h
218  mk_string.h
219  mk_thread.h
220  mk_thread_channel.h
221  mk_uio.h
222  mk_unistd.h
223  mk_utils.h
224 lib/fluent-bit/libfluent-bit.so
225
226
227 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
228 --- include/fluent-bit/flb_endian.h.orig        2022-06-06 02:38:55 UTC
229 +++ include/fluent-bit/flb_endian.h
230 @@ -39,7 +39,7 @@
231   */
232  #if defined(__GLIBC__)
233  #include <endian.h>
234 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
235 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
236  #include <sys/endian.h>
237  #elif defined(__APPLE__)
238  #include <libkern/OSByteOrder.h>
239
240
241 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
242 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-06-06 02:38:55 UTC
243 +++ lib/chunkio/deps/crc32/crc32.c
244 @@ -34,7 +34,7 @@
245  #  define __BIG_ENDIAN 1
246  #  define __LITTLE_ENDIAN 2
247  #  define __BYTE_ORDER __LITTLE_ENDIAN
248 -#elif defined(__FreeBSD__)
249 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
250  #  include <sys/endian.h>
251  #elif defined(__sun) || defined(sun)
252  # include <sys/byteorder.h>
253
254
255 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
256 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-06-06 02:38:55 UTC
257 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
258 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
259  #define LJ_TARGET_HAS_GETENTROPY       1
260  #endif
261  #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
262 -#define LJ_TARGET_HAS_GETENTROPY       1
263 +#define LJ_TARGET_HAS_GETENTROPY       0
264  #endif
265  
266  #if LJ_TARGET_HAS_GETENTROPY
267
268
269 [FILE:840:patches/patch-lib_monkey_CMakeLists.txt]
270 --- lib/monkey/CMakeLists.txt.orig      2022-06-06 02:38:55 UTC
271 +++ lib/monkey/CMakeLists.txt
272 @@ -43,7 +43,7 @@ option(MK_LINUX_KQUEUE   "Use Linux kque
273  option(MK_TRACE          "Enable Trace mode"            No)
274  option(MK_UCLIB          "Enable uClib libc support"    No)
275  option(MK_MUSL           "Enable Musl libc support"     No)
276 -option(MK_BACKTRACE      "Enable Backtrace feature"    Yes)
277 +option(MK_BACKTRACE      "Enable Backtrace feature"     No)
278  option(MK_LINUX_TRACE    "Enable Lttng support"         No)
279  option(MK_PTHREAD_TLS    "Use old Pthread TLS mode"     No)
280  option(MK_MBEDTLS_SHARED "Use mbedtls shared lib"       No)
281 @@ -161,8 +161,6 @@ endif()
282  check_include_file("execinfo.h" HAVE_BACKTRACE)
283  if (NOT HAVE_BACKTRACE)
284    set(MK_BACKTRACE No)
285 -else()
286 -  MK_DEFINITION(MK_HAVE_BACKTRACE)
287  endif()
288  
289  # Check for LTTng-UST
290
291
292 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
293 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig      2022-06-06 02:38:55 UTC
294 +++ lib/monkey/mk_core/deps/libevent/buffer.c
295 @@ -108,6 +108,9 @@
296  #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
297  #define USE_SENDFILE           1
298  #define SENDFILE_IS_FREEBSD    1
299 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
300 +#define USE_SENDFILE           1
301 +#define SENDFILE_IS_FREEBSD    1
302  #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
303  #define USE_SENDFILE           1
304  #define SENDFILE_IS_MACOSX     1
305
306
307 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
308 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig      2022-06-06 02:38:55 UTC
309 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
310 @@ -50,7 +50,7 @@
311  /* Some platforms apparently define the udata field of struct kevent as
312   * intptr_t, whereas others define it as void*.  There doesn't seem to be an
313   * easy way to tell them apart via autoconf, so we need to use OS macros. */
314 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
315 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
316  #define PTR_TO_UDATA(x)        ((intptr_t)(x))
317  #define INT_TO_UDATA(x) ((intptr_t)(x))
318  #else
319
320
321 [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
322 --- lib/monkey/mk_server/CMakeLists.txt.orig    2022-06-06 02:38:55 UTC
323 +++ lib/monkey/mk_server/CMakeLists.txt
324 @@ -47,10 +47,6 @@ if(MK_HAVE_LINUX_KQUEUE)
325    target_link_libraries(monkey-core-static kqueue)
326  endif()
327  
328 -# FreeBSD backtrace
329 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
330 -  target_link_libraries(monkey-core-static execinfo)
331 -endif()
332  
333  if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
334    target_link_libraries(monkey-core-static socket nsl)
335
336
337 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
338 --- lib/monkey/plugins/liana/liana.c.orig       2022-06-06 02:38:55 UTC
339 +++ lib/monkey/plugins/liana/liana.c
340 @@ -109,7 +109,7 @@ int mk_liana_send_file(int socket_fd, in
341          return len;
342      }
343      return ret;
344 -#elif defined (__FreeBSD__)
345 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
346      off_t offset = *file_offset;
347      off_t len = (off_t) file_count;
348  
349
350
351 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
352 --- lib/snappy-fef67ac/compat.h.orig    2022-06-06 02:38:55 UTC
353 +++ lib/snappy-fef67ac/compat.h
354 @@ -4,6 +4,8 @@
355  
356  #ifdef __FreeBSD__
357  #  include <sys/endian.h>
358 +#elif defined __DragonFly__
359 +#  include <sys/endian.h>
360  #elif defined(__APPLE_CC_) || defined(__MACH__)  /* MacOS/X support */
361  #  include <machine/endian.h>
362  
363
364
365 [FILE:700:files/fluent-bit.in]
366 #!/bin/sh
367
368 # PROVIDE: fluent-bit
369 # REQUIRE: DAEMON
370 # BEFORE: LOGIN
371 # KEYWORD: shutdown
372
373 # Add the following lines to /etc/rc.conf to enable fluent-bit:
374 #
375 # fluent_bit_enable (bool):     Set to YES to enable fluent-bit
376 #                               Default: NO
377 # fluent_bit_config (str):      config files to use
378 #                               Default: %%ETCDIR%%/fluent-bit.conf
379 # fluent_bit_flags (str):       Extra flags passed to fluent-bit
380 # fluent_bit_user (str):        Default run as user nobody
381
382 . /etc/rc.subr
383
384 name="fluent_bit"
385 rcvar=${name}_enable
386 load_rc_config $name
387
388 : ${fluent_bit_enable:="NO"}
389 : ${fluent_bit_user:="nobody"}
390
391 command=%%PREFIX%%/bin/fluent-bit
392 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"
393
394 run_rc_command "$1"
395