[buildout]
extends =
  ../bison/buildout.cfg
  ../cmake/buildout.cfg
  ../flex/buildout.cfg
  ../libyaml/buildout.cfg
  ../openssl/buildout.cfg
  ../patch/buildout.cfg
  ../zlib/buildout.cfg

[fluent-bit]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/fluent/fluent-bit/archive/refs/tags/v2.1.10.tar.gz
md5sum = 1608fdb463f19d3add5e9f17e2eb1f7d
configure-command =
  ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DFLB_LIBYAML_DIR=${libyaml:location}
  -DOPENSSL_ROOT_DIR=${openssl:location}
  -DZLIB_LIBRARY=${zlib:location}/lib/libz.so
environment =
  PATH=${bison:location}/bin:${flex:location}/bin:%(PATH)s
  LDFLAGS=-Wl,-rpath=${libyaml:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${zlib:location}/lib
patch-options = -p1
patches =
  ${:_profile_base_location_}/0001-slapos-don-t-try-to-install-system-startup-script.patch#7bf6e1b53c371db918dcc3778c6b28ed
patch-binary = ${patch:location}/bin/patch
