[Buildroot] [PATCH] package: add new package: fluent-bit

Kevin Hilman khilman at baylibre.com
Thu Feb 7 22:30:47 UTC 2019


>From https://fluentbit.io/:

  Fluent Bit is an open source and multi-platform Log Processor and
  Forwarder which allows you to collect data/logs from different
  sources, unify and send them to multiple destinations.

Signed-off-by: Kevin Hilman <khilman at baylibre.com>
---
 package/Config.in                |  1 +
 package/fluent-bit/Config.in     | 10 ++++++++++
 package/fluent-bit/fluent-bit.mk | 23 +++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/fluent-bit/Config.in
 create mode 100644 package/fluent-bit/fluent-bit.mk

diff --git a/package/Config.in b/package/Config.in
index 29862c478c5a..ffee39127d5a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1445,6 +1445,7 @@ endmenu
 
 menu "Logging"
 	source "package/eventlog/Config.in"
+	source "package/fluent-bit/Config.in"
 	source "package/glog/Config.in"
 	source "package/liblog4c-localtime/Config.in"
 	source "package/liblogging/Config.in"
diff --git a/package/fluent-bit/Config.in b/package/fluent-bit/Config.in
new file mode 100644
index 000000000000..f04bad1d8324
--- /dev/null
+++ b/package/fluent-bit/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_FLUENT_BIT
+	bool "fluent-bit"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Fluent Bit is an open source and multi-platform Log
+	  processor and forwarder which allows you to collect
+	  data/logs from different sources, unify and send them to
+	  multiple destinations.
+
+	  http://fluentbit.io
diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk
new file mode 100644
index 000000000000..96d0a5eaad27
--- /dev/null
+++ b/package/fluent-bit/fluent-bit.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# fluent
+#
+################################################################################
+
+FLUENT_BIT_VERSION=v1.0.4
+FLUENT_BIT_SITE=https://github.com/fluent/fluent-bit.git
+FLUENT_BIT_SITE_METHOD=git
+FLUENT_BIT_INSTALL_STAGING = YES
+FLUENT_BIT_DEPENDENCIES = zlib
+
+# Disable LuaJIT and filter_lua support
+FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=OFF -DFLB_FILTER_LUA=OFF
+
+# Disable Library and examples
+FLUENT_BIT_CONF_OPTS += -DFLB_SHARED_LIB=OFF -DBUILD_SHARED_LIBS=OFF
+FLUENT_BIT_CONF_OPTS += -DFLB_EXAMPLES=OFF
+
+# Ensure that uses of autoconf behave with cross-compliation
+FLUENT_BIT_CONF_OPTS += -DGNU_HOST=$(GNU_TARGET_NAME)
+
+$(eval $(cmake-package))
-- 
2.20.1



More information about the buildroot mailing list