Ravenports generated: 27 Mar 2022 15:43
[ravenports.git] / bucket_12 / fluent-bit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluent-bit
4 VERSION=                1.8.13
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.13
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 execinfo shebangfix
23                         cclibs:primary,library clang
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_TLS=On
42                         -DFLB_EXAMPLES=On
43                         -DFLB_OUT_PGSQL=Off
44                         -DFLB_HTTP_SERVER=On
45
46 post-install:
47         ${MV} ${STAGEDIR}${ETCDIR}/fluent-bit.conf \
48                 ${STAGEDIR}${ETCDIR}/fluent-bit.conf.sample
49         ${MV} ${STAGEDIR}${ETCDIR}/parsers.conf \
50                 ${STAGEDIR}${ETCDIR}/parsers.conf.sample
51         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fluent-bit
52         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/fluent-bit/libfluent-bit.so
53
54 [FILE:284:descriptions/desc.primary]
55 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
56 family operating systems. It has been made with a strong focus on
57 performance to allow the collection of events from different sources
58 without complexity.
59
60 Fluent Bit is part of the Fluentd project ecosystem.
61
62
63 [FILE:151:descriptions/desc.library]
64 Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD
65 family operating systems. This subpackage contains the library and headers.
66
67
68 [FILE:110:distinfo]
69 0328f61a5dce6f9cb16faa92d96f0a862cdb5644ff0855892ecc2f2228f7ea7b     14963014 fluent-fluent-bit-1.8.13.tar.gz
70
71
72 [FILE:157:manifests/plist.primary]
73 @sample etc/fluent-bit/fluent-bit.conf.sample
74 @sample etc/fluent-bit/parsers.conf.sample
75 bin/fluent-bit
76 etc/fluent-bit/
77  fluent-bit-win32.conf
78  plugins.conf
79
80
81 [FILE:2080: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_callback.h
94  flb_compat.h
95  flb_config.h
96  flb_config_map.h
97  flb_coro.h
98  flb_custom.h
99  flb_custom_plugin.h
100  flb_dlfcn_win32.h
101  flb_dump.h
102  flb_endian.h
103  flb_engine.h
104  flb_engine_dispatch.h
105  flb_env.h
106  flb_error.h
107  flb_filter.h
108  flb_filter_plugin.h
109  flb_fstore.h
110  flb_gzip.h
111  flb_hash.h
112  flb_help.h
113  flb_http_client.h
114  flb_http_client_debug.h
115  flb_http_server.h
116  flb_info.h
117  flb_input.h
118  flb_input_chunk.h
119  flb_input_metric.h
120  flb_input_plugin.h
121  flb_intermediate_metric.h
122  flb_io.h
123  flb_jsmn.h
124  flb_kernel.h
125  flb_kv.h
126  flb_langinfo.h
127  flb_lib.h
128  flb_log.h
129  flb_luajit.h
130  flb_macros.h
131  flb_mem.h
132  flb_meta.h
133  flb_metrics.h
134  flb_metrics_exporter.h
135  flb_mp.h
136  flb_net_dns.h
137  flb_network.h
138  flb_oauth2.h
139  flb_output.h
140  flb_output_plugin.h
141  flb_output_thread.h
142  flb_pack.h
143  flb_parser.h
144  flb_parser_decoder.h
145  flb_pipe.h
146  flb_plugin.h
147  flb_plugin_proxy.h
148  flb_pthread.h
149  flb_ra_key.h
150  flb_random.h
151  flb_record_accessor.h
152  flb_regex.h
153  flb_router.h
154  flb_routes_mask.h
155  flb_s3_local_buffer.h
156  flb_scheduler.h
157  flb_sds.h
158  flb_sha512.h
159  flb_signv4.h
160  flb_slist.h
161  flb_snappy.h
162  flb_socket.h
163  flb_sosreport.h
164  flb_sqldb.h
165  flb_stacktrace.h
166  flb_storage.h
167  flb_str.h
168  flb_strptime.h
169  flb_task.h
170  flb_task_map.h
171  flb_thread_pool.h
172  flb_thread_storage.h
173  flb_time.h
174  flb_time_utils.h
175  flb_tls.h
176  flb_unescape.h
177  flb_upstream.h
178  flb_upstream_conn.h
179  flb_upstream_ha.h
180  flb_upstream_node.h
181  flb_upstream_queue.h
182  flb_uri.h
183  flb_utf8.h
184  flb_utils.h
185  flb_version.h
186  flb_worker.h
187 include/fluent-bit/tls/flb_tls.h
188 include/monkey/mk_core.h
189 include/monkey/mk_core/
190  mk_core_info.h
191  mk_dep_unistd.h
192  mk_dirent.h
193  mk_event.h
194  mk_event_epoll.h
195  mk_event_kqueue.h
196  mk_event_libevent.h
197  mk_event_select.h
198  mk_file.h
199  mk_getopt.h
200  mk_iov.h
201  mk_limits.h
202  mk_list.h
203  mk_macros.h
204  mk_memory.h
205  mk_pipe.h
206  mk_pthread.h
207  mk_rconf.h
208  mk_sleep.h
209  mk_string.h
210  mk_thread.h
211  mk_thread_channel.h
212  mk_uio.h
213  mk_unistd.h
214  mk_utils.h
215 lib/fluent-bit/libfluent-bit.so
216
217
218 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
219 --- include/fluent-bit/flb_endian.h.orig        2022-01-24 22:39:29 UTC
220 +++ include/fluent-bit/flb_endian.h
221 @@ -40,7 +40,7 @@
222   */
223  #if defined(__GLIBC__)
224  #include <endian.h>
225 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
226 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
227  #include <sys/endian.h>
228  #elif defined(__APPLE__)
229  #include <libkern/OSByteOrder.h>
230
231
232 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
233 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-01-24 22:39:29 UTC
234 +++ lib/chunkio/deps/crc32/crc32.c
235 @@ -34,7 +34,7 @@
236  #  define __BIG_ENDIAN 1
237  #  define __LITTLE_ENDIAN 2
238  #  define __BYTE_ORDER __LITTLE_ENDIAN
239 -#elif defined(__FreeBSD__)
240 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
241  #  include <sys/endian.h>
242  #elif defined(__sun) || defined(sun)
243  # include <sys/byteorder.h>
244
245
246 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
247 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-01-24 22:39:29 UTC
248 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
249 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
250  #define LJ_TARGET_HAS_GETENTROPY       1
251  #endif
252  #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
253 -#define LJ_TARGET_HAS_GETENTROPY       1
254 +#define LJ_TARGET_HAS_GETENTROPY       0
255  #endif
256  
257  #if LJ_TARGET_HAS_GETENTROPY
258
259
260 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
261 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig      2022-01-24 22:39:29 UTC
262 +++ lib/monkey/mk_core/deps/libevent/buffer.c
263 @@ -108,6 +108,9 @@
264  #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
265  #define USE_SENDFILE           1
266  #define SENDFILE_IS_FREEBSD    1
267 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
268 +#define USE_SENDFILE           1
269 +#define SENDFILE_IS_FREEBSD    1
270  #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
271  #define USE_SENDFILE           1
272  #define SENDFILE_IS_MACOSX     1
273
274
275 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
276 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig      2022-01-24 22:39:29 UTC
277 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
278 @@ -50,7 +50,7 @@
279  /* Some platforms apparently define the udata field of struct kevent as
280   * intptr_t, whereas others define it as void*.  There doesn't seem to be an
281   * easy way to tell them apart via autoconf, so we need to use OS macros. */
282 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
283 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
284  #define PTR_TO_UDATA(x)        ((intptr_t)(x))
285  #define INT_TO_UDATA(x) ((intptr_t)(x))
286  #else
287
288
289 [FILE:376:patches/patch-lib_monkey_mk__server_CMakeLists.txt]
290 --- lib/monkey/mk_server/CMakeLists.txt.orig    2022-01-24 22:39:29 UTC
291 +++ lib/monkey/mk_server/CMakeLists.txt
292 @@ -42,6 +42,8 @@ if(NOT DEFINED MK_HAVE_REGEX)
293   target_link_libraries(monkey-core-static regex)
294  endif()
295  
296 +target_link_libraries(monkey-core-static execinfo)
297 +
298  # Linux Kqueue emulation
299  if(MK_HAVE_LINUX_KQUEUE)
300    target_link_libraries(monkey-core-static kqueue)
301
302
303 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
304 --- lib/monkey/plugins/liana/liana.c.orig       2022-01-24 22:39:29 UTC
305 +++ lib/monkey/plugins/liana/liana.c
306 @@ -112,7 +112,7 @@ int mk_liana_send_file(int socket_fd, in
307          return len;
308      }
309      return ret;
310 -#elif defined (__FreeBSD__)
311 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
312      off_t offset = *file_offset;
313      off_t len = (off_t) file_count;
314  
315
316
317 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
318 --- lib/snappy-fef67ac/compat.h.orig    2022-01-24 22:39:29 UTC
319 +++ lib/snappy-fef67ac/compat.h
320 @@ -4,6 +4,8 @@
321  
322  #ifdef __FreeBSD__
323  #  include <sys/endian.h>
324 +#elif defined __DragonFly__
325 +#  include <sys/endian.h>
326  #elif defined(__APPLE_CC_) || defined(__MACH__)  /* MacOS/X support */
327  #  include <machine/endian.h>
328  
329
330
331 [FILE:700:files/fluent-bit.in]
332 #!/bin/sh
333
334 # PROVIDE: fluent-bit
335 # REQUIRE: DAEMON
336 # BEFORE: LOGIN
337 # KEYWORD: shutdown
338
339 # Add the following lines to /etc/rc.conf to enable fluent-bit:
340 #
341 # fluent_bit_enable (bool):     Set to YES to enable fluent-bit
342 #                               Default: NO
343 # fluent_bit_config (str):      config files to use
344 #                               Default: %%ETCDIR%%/fluent-bit.conf
345 # fluent_bit_flags (str):       Extra flags passed to fluent-bit
346 # fluent_bit_user (str):        Default run as user nobody
347
348 . /etc/rc.subr
349
350 name="fluent_bit"
351 rcvar=${name}_enable
352 load_rc_config $name
353
354 : ${fluent_bit_enable:="NO"}
355 : ${fluent_bit_user:="nobody"}
356
357 command=%%PREFIX%%/bin/fluent-bit
358 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"
359
360 run_rc_command "$1"
361