Ravenports generated: 11 May 2022 03:33
[ravenports.git] / bucket_12 / fluent-bit
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               fluent-bit
4 VERSION=                1.9.2
5 REVISION=               1
6 KEYWORDS=               sysutils
7 VARIANTS=               standard
8 SDESC[standard]=        Fast and Lightweight Log processor and forwarder
9 HOMEPAGE=               https://fluentbit.io/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GITHUB/fluent:fluent-bit:v1.9.2
14 DISTFILE[1]=            generated:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         library
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 USES=                   cpe cmake bison zlib gmake shebangfix
24                         cclibs:primary,library clang
25
26 LICENSE=                APACHE20:library
27 LICENSE_TERMS=          library:{{WRKDIR}}/TERMS
28 LICENSE_FILE=           APACHE20:{{WRKSRC}}/LICENSE
29 LICENSE_AWK=            TERMS:"_GNU_SOURCE"
30 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/fluent-bit.c
31 LICENSE_SCHEME=         solo
32
33 CPE_PRODUCT=            fluent_bit
34 CPE_VENDOR=             treasuredata
35 FPC_EQUIVALENT=         sysutils/fluent-bit
36 SHEBANG_ADD_SH=         lib/luajit-2.1.0-1e66d0f/configure
37
38 RC_SUBR=                fluent-bit:primary
39
40 CMAKE_ARGS=             -DFLB_DEBUG=Off
41                         -DFLB_TRACE=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 8289ffb9c00b20eb346ac39f396e572ac8e3e493a2b61db64ed0c0c2e797c9da     17806812 fluent-fluent-bit-1.9.2.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:2080: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_callback.h
93  flb_compat.h
94  flb_config.h
95  flb_config_map.h
96  flb_coro.h
97  flb_custom.h
98  flb_custom_plugin.h
99  flb_dlfcn_win32.h
100  flb_dump.h
101  flb_endian.h
102  flb_engine.h
103  flb_engine_dispatch.h
104  flb_env.h
105  flb_error.h
106  flb_filter.h
107  flb_filter_plugin.h
108  flb_fstore.h
109  flb_gzip.h
110  flb_hash.h
111  flb_help.h
112  flb_http_client.h
113  flb_http_client_debug.h
114  flb_http_server.h
115  flb_info.h
116  flb_input.h
117  flb_input_chunk.h
118  flb_input_metric.h
119  flb_input_plugin.h
120  flb_intermediate_metric.h
121  flb_io.h
122  flb_jsmn.h
123  flb_kernel.h
124  flb_kv.h
125  flb_langinfo.h
126  flb_lib.h
127  flb_log.h
128  flb_luajit.h
129  flb_macros.h
130  flb_mem.h
131  flb_meta.h
132  flb_metrics.h
133  flb_metrics_exporter.h
134  flb_mp.h
135  flb_net_dns.h
136  flb_network.h
137  flb_oauth2.h
138  flb_output.h
139  flb_output_plugin.h
140  flb_output_thread.h
141  flb_pack.h
142  flb_parser.h
143  flb_parser_decoder.h
144  flb_pipe.h
145  flb_plugin.h
146  flb_plugin_proxy.h
147  flb_pthread.h
148  flb_ra_key.h
149  flb_random.h
150  flb_record_accessor.h
151  flb_regex.h
152  flb_router.h
153  flb_routes_mask.h
154  flb_s3_local_buffer.h
155  flb_scheduler.h
156  flb_sds.h
157  flb_sha512.h
158  flb_signv4.h
159  flb_slist.h
160  flb_snappy.h
161  flb_socket.h
162  flb_sosreport.h
163  flb_sqldb.h
164  flb_stacktrace.h
165  flb_storage.h
166  flb_str.h
167  flb_strptime.h
168  flb_task.h
169  flb_task_map.h
170  flb_thread_pool.h
171  flb_thread_storage.h
172  flb_time.h
173  flb_time_utils.h
174  flb_tls.h
175  flb_unescape.h
176  flb_upstream.h
177  flb_upstream_conn.h
178  flb_upstream_ha.h
179  flb_upstream_node.h
180  flb_upstream_queue.h
181  flb_uri.h
182  flb_utf8.h
183  flb_utils.h
184  flb_version.h
185  flb_worker.h
186 include/fluent-bit/tls/flb_tls.h
187 include/monkey/mk_core.h
188 include/monkey/mk_core/
189  mk_core_info.h
190  mk_dep_unistd.h
191  mk_dirent.h
192  mk_event.h
193  mk_event_epoll.h
194  mk_event_kqueue.h
195  mk_event_libevent.h
196  mk_event_select.h
197  mk_file.h
198  mk_getopt.h
199  mk_iov.h
200  mk_limits.h
201  mk_list.h
202  mk_macros.h
203  mk_memory.h
204  mk_pipe.h
205  mk_pthread.h
206  mk_rconf.h
207  mk_sleep.h
208  mk_string.h
209  mk_thread.h
210  mk_thread_channel.h
211  mk_uio.h
212  mk_unistd.h
213  mk_utils.h
214 lib/fluent-bit/libfluent-bit.so
215
216
217 [FILE:430:patches/patch-include_fluent-bit_flb__endian.h]
218 --- include/fluent-bit/flb_endian.h.orig        2022-03-01 03:43:38 UTC
219 +++ include/fluent-bit/flb_endian.h
220 @@ -40,7 +40,7 @@
221   */
222  #if defined(__GLIBC__)
223  #include <endian.h>
224 -#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
225 +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
226  #include <sys/endian.h>
227  #elif defined(__APPLE__)
228  #include <libkern/OSByteOrder.h>
229
230
231 [FILE:388:patches/patch-lib_chunkio_deps_crc32_crc32.c]
232 --- lib/chunkio/deps/crc32/crc32.c.orig 2022-03-01 03:43:38 UTC
233 +++ lib/chunkio/deps/crc32/crc32.c
234 @@ -34,7 +34,7 @@
235  #  define __BIG_ENDIAN 1
236  #  define __LITTLE_ENDIAN 2
237  #  define __BYTE_ORDER __LITTLE_ENDIAN
238 -#elif defined(__FreeBSD__)
239 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
240  #  include <sys/endian.h>
241  #elif defined(__sun) || defined(sun)
242  # include <sys/byteorder.h>
243
244
245 [FILE:378:patches/patch-lib_luajit__src__lj_prng.c]
246 --- lib/luajit-2.1.0-1e66d0f/src/lj_prng.c.orig 2022-03-01 03:43:38 UTC
247 +++ lib/luajit-2.1.0-1e66d0f/src/lj_prng.c
248 @@ -116,7 +116,7 @@ static PRGR libfunc_rgr;
249  #define LJ_TARGET_HAS_GETENTROPY       1
250  #endif
251  #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN
252 -#define LJ_TARGET_HAS_GETENTROPY       1
253 +#define LJ_TARGET_HAS_GETENTROPY       0
254  #endif
255  
256  #if LJ_TARGET_HAS_GETENTROPY
257
258
259 [FILE:491:patches/patch-lib_monkey_mk__core_deps_libevent_buffer.c]
260 --- lib/monkey/mk_core/deps/libevent/buffer.c.orig      2022-03-01 03:43:38 UTC
261 +++ lib/monkey/mk_core/deps/libevent/buffer.c
262 @@ -108,6 +108,9 @@
263  #elif defined(EVENT__HAVE_SENDFILE) && defined(__FreeBSD__)
264  #define USE_SENDFILE           1
265  #define SENDFILE_IS_FREEBSD    1
266 +#elif defined(EVENT__HAVE_SENDFILE) && defined(__DragonFly__)
267 +#define USE_SENDFILE           1
268 +#define SENDFILE_IS_FREEBSD    1
269  #elif defined(EVENT__HAVE_SENDFILE) && defined(__APPLE__)
270  #define USE_SENDFILE           1
271  #define SENDFILE_IS_MACOSX     1
272
273
274 [FILE:804:patches/patch-lib_monkey_mk__core_deps_libevent_kqueue.c]
275 --- lib/monkey/mk_core/deps/libevent/kqueue.c.orig      2022-03-01 03:43:38 UTC
276 +++ lib/monkey/mk_core/deps/libevent/kqueue.c
277 @@ -50,7 +50,7 @@
278  /* Some platforms apparently define the udata field of struct kevent as
279   * intptr_t, whereas others define it as void*.  There doesn't seem to be an
280   * easy way to tell them apart via autoconf, so we need to use OS macros. */
281 -#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__)
282 +#if defined(EVENT__HAVE_INTTYPES_H) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__darwin__) && !defined(__APPLE__) && !defined(__CloudABI__) && !defined(__DragonFly__)
283  #define PTR_TO_UDATA(x)        ((intptr_t)(x))
284  #define INT_TO_UDATA(x) ((intptr_t)(x))
285  #else
286
287
288 [FILE:366:patches/patch-lib_monkey_plugins_liana_liana.c]
289 --- lib/monkey/plugins/liana/liana.c.orig       2022-03-01 03:43:38 UTC
290 +++ lib/monkey/plugins/liana/liana.c
291 @@ -112,7 +112,7 @@ int mk_liana_send_file(int socket_fd, in
292          return len;
293      }
294      return ret;
295 -#elif defined (__FreeBSD__)
296 +#elif defined (__FreeBSD__) || defined(__DragonFly__)
297      off_t offset = *file_offset;
298      off_t len = (off_t) file_count;
299  
300
301
302 [FILE:319:patches/patch-lib_snappy-fef67ac_compat.h]
303 --- lib/snappy-fef67ac/compat.h.orig    2022-03-01 03:43:38 UTC
304 +++ lib/snappy-fef67ac/compat.h
305 @@ -4,6 +4,8 @@
306  
307  #ifdef __FreeBSD__
308  #  include <sys/endian.h>
309 +#elif defined __DragonFly__
310 +#  include <sys/endian.h>
311  #elif defined(__APPLE_CC_) || defined(__MACH__)  /* MacOS/X support */
312  #  include <machine/endian.h>
313  
314
315
316 [FILE:700:files/fluent-bit.in]
317 #!/bin/sh
318
319 # PROVIDE: fluent-bit
320 # REQUIRE: DAEMON
321 # BEFORE: LOGIN
322 # KEYWORD: shutdown
323
324 # Add the following lines to /etc/rc.conf to enable fluent-bit:
325 #
326 # fluent_bit_enable (bool):     Set to YES to enable fluent-bit
327 #                               Default: NO
328 # fluent_bit_config (str):      config files to use
329 #                               Default: %%ETCDIR%%/fluent-bit.conf
330 # fluent_bit_flags (str):       Extra flags passed to fluent-bit
331 # fluent_bit_user (str):        Default run as user nobody
332
333 . /etc/rc.subr
334
335 name="fluent_bit"
336 rcvar=${name}_enable
337 load_rc_config $name
338
339 : ${fluent_bit_enable:="NO"}
340 : ${fluent_bit_user:="nobody"}
341
342 command=%%PREFIX%%/bin/fluent-bit
343 command_args="--quiet --daemon --config %%ETCDIR%%/fluent-bit.conf"
344
345 run_rc_command "$1"
346