Hi I updated the PKGBUILD to support 1.4.5:
# Maintainer: Joost Molenaar <jjm@j0057.nl>
# Contributor: Tim Meusel <tim@bastelfreak.de>
pkgname=fluent-bit
_pkgmaj=1.4
pkgver="${_pkgmaj}.5"
pkgrel=1
pkgdesc='Collect data/logs from different sources, unify and send them to multiple destinations.'
arch=(x86_64)
url='https://fluentbit.io/'
license=('Apache')
depends=('systemd-libs')
# PostgreSQL_TYPE_INCLUDE_DIR is provided by postgresql, this is currently a bug
makedepends=('cmake' 'postgresql-libs' 'postgresql' 'python' 'valgrind' 'gcc8')
checkdepends=('gtest' 'doxygen' 'graphviz')
backup=('etc/fluent-bit/fluent-bit.conf'
'etc/fluent-bit/parsers.conf')
source=("${url}/releases/${pkgmaj}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('98a971c62913db7b7689889c9365234e9d68e220dd510d45522150806cf1e23b208208f765b3d51519753071068114f6a3fc25f499688551a3b63df37c7f516e')
build() {
cd "${pkgname}-${pkgver}/build"
export CC=/usr/bin/gcc-8
export CXX=/usr/bin/gcc-8
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DFLB_TESTS_INTERNAL=Yes \
-DFLB_IN_MQTT=Yes \
-DFLB_TLS=Yes \
-DFLB_ALL=Yes \
-DFLB_OUT_NATS=Yes \
..
make
}
check() {
cd "${pkgname}-${pkgver}/build"
make test
}
package() {
cd "${pkgname}-${pkgver}/build"
make DESTDIR="$pkgdir/" install
mkdir -p "${pkgdir}/usr/lib/systemd/system"
mv "${pkgdir}/lib/systemd/system/fluent-bit.service" "${pkgdir}/usr/lib/systemd/system"
rm -rf "${pkgdir}/lib"
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm 644 README.md README.Dockerfile.md MAINTAINERS.md CODE_OF_CONDUCT.md CONTRIBUTING.md DEVELOPER_GUIDE.md GOLANG_OUTPUT_PLUGIN.md Dockerfile Dockerfile.debug -t "${pkgdir}/usr/share/doc/${pkgname}"
}
Pinned Comments
jjm commented on 2024-07-11 07:06 (UTC)
Current versions are not building, there are branches for 3.0.7, 3.1.0 and 3.1.1 at https://gitlab.com/j0057-git/aur/fluent-bit -- feel free to dig in and propose fixes.