Ravenports generated: 12 Nov 2022 05:19
[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 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}${PREFIX}/etc/fluent-bit/fluent-bit.conf \
49                 ${STAGEDIR}${PREFIX}/etc/fluent-bit/fluent-bit.conf.sample
50         ${MV} ${STAGEDIR}${PREFIX}/etc/fluent-bit/parsers.conf \
51                 ${STAGEDIR}${PREFIX}/etc/fluent-bit/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:352: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 This package contains the 1.8.x maintenance version of Fluent-Bit.
62
63 Fluent Bit is part of the Fluentd project ecosystem.
64
65
66 [FILE:199:descriptions/desc.library]
67 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
68 family operating systems. This subpackage contains the library and headers
69 for the 1.8.x maintenance version of Fluent Bit.
70
71
72 [FILE:110:distinfo]
73 b98328c7e7c2428389fa2b284abe8d2c901c3365701ce05e51abcf550d9fd39a     14956052 fluent-fluent-bit-1.8.15.tar.gz
74
75
76 [FILE:157:manifests/plist.primary]
77 @sample etc/fluent-bit/fluent-bit.conf.sample
78 @sample etc/fluent-bit/parsers.conf.sample
79 bin/fluent-bit
80 etc/fluent-bit/
81  fluent-bit-win32.conf
82  plugins.conf
83
84
85 [FILE:2080:manifests/plist.library]
86 include/
87  fluent-bit.h
88  libco.h
89  settings.h
90 include/fluent-bit/
91  flb_api.h
92  flb_avro.h
93  flb_aws_credentials.h
94  flb_aws_util.h
95  flb_base64.h
96  flb_bits.h
97  flb_callback.h
98  flb_compat.h
99  flb_config.h
100  flb_config_map.h
101  flb_coro.h
102  flb_custom.h
103  flb_custom_plugin.h
104  flb_dlfcn_win32.h
105  flb_dump.h
106  flb_endian.h
107  flb_engine.h
108  flb_engine_dispatch.h
109  flb_env.h
110  flb_error.h
111  flb_filter.h
112  flb_filter_plugin.h
113  flb_fstore.h
114  flb_gzip.h
115  flb_hash.h
116  flb_help.h
117  flb_http_client.h
118  flb_http_client_debug.h
119  flb_http_server.h
120  flb_info.h
121  flb_input.h
122  flb_input_chunk.h
123  flb_input_metric.h
124  flb_input_plugin.h
125  flb_intermediate_metric.h
126  flb_io.h
127  flb_jsmn.h
128  flb_kernel.h
129  flb_kv.h
130  flb_langinfo.h
131  flb_lib.h
132  flb_log.h
133  flb_luajit.h
134  flb_macros.h
135  flb_mem.h
136  flb_meta.h
137  flb_metrics.h
138  flb_metrics_exporter.h
139  flb_mp.h
140  flb_net_dns.h
141  flb_network.h
142  flb_oauth2.h
143  flb_output.h
144  flb_output_plugin.h
145  flb_output_thread.h
146  flb_pack.h
147  flb_parser.h
148  flb_parser_decoder.h
149  flb_pipe.h
150  flb_plugin.h
151  flb_plugin_proxy.h
152  flb_pthread.h
153  flb_ra_key.h
154  flb_random.h
155  flb_record_accessor.h
156  flb_regex.h
157  flb_router.h
158  flb_routes_mask.h
159  flb_s3_local_buffer.h
160  flb_scheduler.h
161  flb_sds.h
162  flb_sha512.h
163  flb_signv4.h
164  flb_slist.h
165  flb_snappy.h
166  flb_socket.h
167  flb_sosreport.h
168  flb_sqldb.h
169  flb_stacktrace.h
170  flb_storage.h
171  flb_str.h
172  flb_strptime.h
173  flb_task.h
174  flb_task_map.h
175  flb_thread_pool.h
176  flb_thread_storage.h
177  flb_time.h
178  flb_time_utils.h
179  flb_tls.h
180  flb_unescape.h
181  flb_upstream.h
182  flb_upstream_conn.h
183  flb_upstream_ha.h
184  flb_upstream_node.h
185  flb_upstream_queue.h
186  flb_uri.h
187  flb_utf8.h
188  flb_utils.h
189  flb_version.h
190  flb_worker.h
191 include/fluent-bit/tls/flb_tls.h
192 include/monkey/mk_core.h
193 include/monkey/mk_core/
194  mk_core_info.h
195  mk_dep_unistd.h
196  mk_dirent.h
197  mk_event.h
198  mk_event_epoll.h
199  mk_event_kqueue.h
200  mk_event_libevent.h
201  mk_event_select.h
202  mk_file.h
203  mk_getopt.h
204  mk_iov.h
205  mk_limits.h
206  mk_list.h
207  mk_macros.h
208  mk_memory.h
209  mk_pipe.h
210  mk_pthread.h
211  mk_rconf.h
212  mk_sleep.h
213  mk_string.h
214  mk_thread.h
215  mk_thread_channel.h
216  mk_uio.h
217  mk_unistd.h
218  mk_utils.h
219 lib/fluent-bit/libfluent-bit.so
220
221
222 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
223 --- include/fluent-bit/flb_endian.h.orig        2022-03-22 22:42:32 UTC
224 +++ include/fluent-bit/flb_endian.h
225 @@ -40,7 +40,7 @@
226   */
227  #if defined(__GLIBC__)
228  #include <endian.h>
229 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
230 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
231  #include <sys/endian.h>
232  #elif defined(__APPLE__)
233  #include <libkern/OSByteOrder.h>
234
235
236 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
237 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-03-22 22:42:32 UTC
238 +++ lib/chunkio/deps/crc32/crc32.c
239 @@ -34,7 +34,7 @@
240  #  define __BIG_ENDIAN 1
241  #  define __LITTLE_ENDIAN 2
242  #  define __BYTE_ORDER __LITTLE_ENDIAN
243 -#elif defined(__FreeBSD__)
244 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
245  #  include <sys/endian.h>
246  #elif defined(__sun) || defined(sun)
247  # include <sys/byteorder.h>
248
249
250 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
251 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-03-22 22:42:32 UTC
252 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
253 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
254  #define LJ_TARGET_HAS_GETENTROPY       1
255  #endif
256  #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
257 -#define LJ_TARGET_HAS_GETENTROPY       1
258 +#define LJ_TARGET_HAS_GETENTROPY       0
259  #endif
260  
261  #if LJ_TARGET_HAS_GETENTROPY
262
263
264 [FILE:840:patches/patch-lib_monkey_CMakeLists.txt]
265 --- lib/monkey/CMakeLists.txt.orig      2022-03-22 22:42:32 UTC
266 +++ lib/monkey/CMakeLists.txt
267 @@ -43,7 +43,7 @@ option(MK_LINUX_KQUEUE   "Use Linux kque
268  option(MK_TRACE          "Enable Trace mode"            No)
269  option(MK_UCLIB          "Enable uClib libc support"    No)
270  option(MK_MUSL           "Enable Musl libc support"     No)
271 -option(MK_BACKTRACE      "Enable Backtrace feature"    Yes)
272 +option(MK_BACKTRACE      "Enable Backtrace feature"     No)
273  option(MK_LINUX_TRACE    "Enable Lttng support"         No)
274  option(MK_PTHREAD_TLS    "Use old Pthread TLS mode"     No)
275  option(MK_MBEDTLS_SHARED "Use mbedtls shared lib"       No)
276 @@ -161,8 +161,6 @@ endif()
277  check_include_file("execinfo.h" HAVE_BACKTRACE)
278  if (NOT HAVE_BACKTRACE)
279    set(MK_BACKTRACE No)
280 -else()
281 -  MK_DEFINITION(MK_HAVE_BACKTRACE)
282  endif()
283  
284  # Check for LTTng-UST
285
286
287 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
288 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig      2022-03-22 22:42:32 UTC
289 +++ lib/monkey/mk_core/deps/libevent/buffer.c
290 @@ -108,6 +108,9 @@
291  #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
292  #define USE_SENDFILE           1
293  #define SENDFILE_IS_FREEBSD    1
294 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
295 +#define USE_SENDFILE           1
296 +#define SENDFILE_IS_FREEBSD    1
297  #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
298  #define USE_SENDFILE           1
299  #define SENDFILE_IS_MACOSX     1
300
301
302 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
303 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig      2022-03-22 22:42:32 UTC
304 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
305 @@ -50,7 +50,7 @@
306  /* Some platforms apparently define the udata field of struct kevent as
307   * intptr_t, whereas others define it as void*.  There doesn't seem to be an
308   * easy way to tell them apart via autoconf, so we need to use OS macros. */
309 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
310 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
311  #define PTR_TO_UDATA(x)        ((intptr_t)(x))
312  #define INT_TO_UDATA(x) ((intptr_t)(x))
313  #else
314
315
316 [FILE:440:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
317 --- lib/monkey/mk_server/CMakeLists.txt.orig    2022-03-22 22:42:32 UTC
318 +++ lib/monkey/mk_server/CMakeLists.txt
319 @@ -47,10 +47,6 @@ if(MK_HAVE_LINUX_KQUEUE)
320    target_link_libraries(monkey-core-static kqueue)
321  endif()
322  
323 -# FreeBSD backtrace
324 -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
325 -  target_link_libraries(monkey-core-static execinfo)
326 -endif()
327  
328  if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
329    target_link_libraries(monkey-core-static socket nsl)
330
331
332 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
333 --- lib/monkey/plugins/liana/liana.c.orig       2022-03-22 22:42:32 UTC
334 +++ lib/monkey/plugins/liana/liana.c
335 @@ -112,7 +112,7 @@ int mk_liana_send_file(int socket_fd, in
336          return len;
337      }
338      return ret;
339 -#elif defined (__FreeBSD__)
340 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
341      off_t offset = *file_offset;
342      off_t len = (off_t) file_count;
343  
344
345
346 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
347 --- lib/snappy-fef67ac/compat.h.orig    2022-03-22 22:42:32 UTC
348 +++ lib/snappy-fef67ac/compat.h
349 @@ -4,6 +4,8 @@
350  
351  #ifdef __FreeBSD__
352  #  include <sys/endian.h>
353 +#elif defined __DragonFly__
354 +#  include <sys/endian.h>
355  #elif defined(__APPLE_CC_) || defined(__MACH__)  /* MacOS/X support */
356  #  include <machine/endian.h>
357  
358
359
360 [FILE:700:files/fluent-bit.in]
361 #!/bin/sh
362
363 # PROVIDE: fluent-bit
364 # REQUIRE: DAEMON
365 # BEFORE: LOGIN
366 # KEYWORD: shutdown
367
368 # Add the following lines to /etc/rc.conf to enable fluent-bit:
369 #
370 # fluent_bit_enable (bool):     Set to YES to enable fluent-bit
371 #                               Default: NO
372 # fluent_bit_config (str):      config files to use
373 #                               Default: %%ETCDIR%%/fluent-bit.conf
374 # fluent_bit_flags (str):       Extra flags passed to fluent-bit
375 # fluent_bit_user (str):        Default run as user nobody
376
377 . /etc/rc.subr
378
379 name="fluent_bit"
380 rcvar=${name}_enable
381 load_rc_config $name
382
383 : ${fluent_bit_enable:="NO"}
384 : ${fluent_bit_user:="nobody"}
385
386 command=%%PREFIX%%/bin/fluent-bit
387 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"
388
389 run_rc_command "$1"
390