Ravenports generated: 06 Sep 2022 17:41
[ravenports.git] / bucket_12 / fluent-bit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluent-bit
4 VERSION=                1.9.8
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.8
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 pkgconfig shebangfix ssl
23                         python:build 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_CONFIG_YAML=Off
46                         -DFLB_HTTP_SERVER=On
47
48 post-install:
49         ${MV} ${STAGEDIR}${ETCDIR}/fluent-bit.conf \
50                 ${STAGEDIR}${ETCDIR}/fluent-bit.conf.sample
51         ${MV} ${STAGEDIR}${ETCDIR}/parsers.conf \
52                 ${STAGEDIR}${ETCDIR}/parsers.conf.sample
53         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit
54         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so
55
56 [FILE:284:descriptions/desc.primary]
57 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
58 family operating systems. It has been made with a strong focus on
59 performance to allow the collection of events from different sources
60 without complexity.
61
62 Fluent Bit is part of the Fluentd project ecosystem.
63
64
65 [FILE:151:descriptions/desc.library]
66 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
67 family operating systems. This subpackage contains the library and headers.
68
69
70 [FILE:109:distinfo]
71 1ad4d6e89c676df8fec461533087ff76b7e2deccc615a03f027b9ef7f9f4057f     20466930 fluent-fluent-bit-1.9.8.tar.gz
72
73
74 [FILE:132:manifests/plist.primary]
75 @sample etc/fluent-bit/fluent-bit.conf.sample
76 @sample etc/fluent-bit/parsers.conf.sample
77 bin/fluent-bit
78 etc/fluent-bit/plugins.conf
79
80
81 [FILE:2240:manifests/plist.library]
82 include/
83  fluent-bit.h
84  libco.h
85  settings.h
86 include/fluent-bit/
87  flb_api.h
88  flb_avro.h
89  flb_aws_credentials.h
90  flb_aws_util.h
91  flb_base64.h
92  flb_bits.h
93  flb_bucket_queue.h
94  flb_callback.h
95  flb_compat.h
96  flb_config.h
97  flb_config_format.h
98  flb_config_map.h
99  flb_coro.h
100  flb_csv.h
101  flb_custom.h
102  flb_custom_plugin.h
103  flb_dlfcn_win32.h
104  flb_dump.h
105  flb_endian.h
106  flb_engine.h
107  flb_engine_dispatch.h
108  flb_engine_macros.h
109  flb_env.h
110  flb_error.h
111  flb_event.h
112  flb_event_loop.h
113  flb_file.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_input_thread.h
129  flb_intermediate_metric.h
130  flb_io.h
131  flb_jsmn.h
132  flb_kafka.h
133  flb_kernel.h
134  flb_kv.h
135  flb_langinfo.h
136  flb_lib.h
137  flb_log.h
138  flb_lua.h
139  flb_luajit.h
140  flb_macros.h
141  flb_mem.h
142  flb_meta.h
143  flb_metrics.h
144  flb_metrics_exporter.h
145  flb_mp.h
146  flb_net_dns.h
147  flb_network.h
148  flb_oauth2.h
149  flb_output.h
150  flb_output_plugin.h
151  flb_output_thread.h
152  flb_pack.h
153  flb_parser.h
154  flb_parser_decoder.h
155  flb_pipe.h
156  flb_plugin.h
157  flb_plugin_proxy.h
158  flb_pthread.h
159  flb_ra_key.h
160  flb_random.h
161  flb_record_accessor.h
162  flb_regex.h
163  flb_router.h
164  flb_routes_mask.h
165  flb_s3_local_buffer.h
166  flb_scheduler.h
167  flb_sds.h
168  flb_sha512.h
169  flb_signv4.h
170  flb_slist.h
171  flb_snappy.h
172  flb_socket.h
173  flb_sosreport.h
174  flb_sqldb.h
175  flb_stacktrace.h
176  flb_storage.h
177  flb_str.h
178  flb_strptime.h
179  flb_task.h
180  flb_task_map.h
181  flb_thread_pool.h
182  flb_thread_storage.h
183  flb_time.h
184  flb_time_utils.h
185  flb_tls.h
186  flb_typecast.h
187  flb_unescape.h
188  flb_upstream.h
189  flb_upstream_conn.h
190  flb_upstream_ha.h
191  flb_upstream_node.h
192  flb_upstream_queue.h
193  flb_uri.h
194  flb_utf8.h
195  flb_utils.h
196  flb_version.h
197  flb_worker.h
198 include/fluent-bit/tls/flb_tls.h
199 include/monkey/mk_core.h
200 include/monkey/mk_core/
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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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-09-02 14:05:40 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