# vim: et ts=4 sw=4: # Maintainer: Joost Molenaar # Contributor: Tim Meusel # Contributor: Brian Maloney pkgname=fluent-bit pkgver=3.0.2 pkgrel=1 epoch= pkgdesc='Collect data/logs from different sources, unify and send them to multiple destinations.' arch=(x86_64 aarch64 armv7h) url='https://fluentbit.io/' license=('Apache') groups=() depends=('glibc' 'gcc-libs' 'openssl' 'libyaml' 'systemd-libs') # PostgreSQL_TYPE_INCLUDE_DIR is provided by postgresql, this is currently a bug makedepends=('cmake' 'postgresql-libs' 'postgresql' 'python' 'valgrind') checkdepends=('gtest' 'doxygen' 'graphviz') optdepends=() provides=() conflicts=() replaces=() backup=('etc/fluent-bit/fluent-bit.conf' 'etc/fluent-bit/parsers.conf') options=() install= changelog= source=("$pkgname-$pkgver.tar.gz::https://releases.fluentbit.io/${pkgver%.*}/source-$pkgver.tar.gz") noextract=() validpgpkeys=() build() { cd "$srcdir/build" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DSYSTEMD_UNITDIR=/usr/lib/systemd/system \ -DFLB_TESTS_INTERNAL=Yes \ -DFLB_IN_MQTT=Yes \ -DFLB_TLS=Yes \ -DFLB_ALL=Yes \ -DFLB_OUT_NATS=Yes \ -DFLB_HTTP_SERVER=Yes \ -DMBEDTLS_FATAL_WARNINGS=Off \ -DLUAJIT_BUILD_EXE=Off \ .. make } check() { cd "$srcdir/build" make test || true } package() { cd "$srcdir/build" # install binaries and libraries make DESTDIR="$pkgdir/" install # install license file and documentation cd "$srcdir" install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm 644 *.md -t "$pkgdir/usr/share/doc/$pkgname/" } # r!. %; curl -s https://releases.fluentbit.io/${pkgver\%.*}/source-$pkgver.tar.gz.{md5,sha256} | awk '{print $1}' md5sums=('6c8ed6033a0405bf41a0d28af4c57d90') sha256sums=('1ebe15d48db1e6a06545e6ffc788d0eb82d74923f8ca6a6e53b327c8e3011b6f')