2022-07-12 11:15:51 +00:00
|
|
|
# Contributor: Stefan Reimer <stefan@zero-downtime.net>
|
|
|
|
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
|
|
|
|
pkgname=fluent-bit
|
2023-04-26 17:22:52 +00:00
|
|
|
pkgver=2.1.1
|
2022-07-12 11:15:51 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Fast and Lightweight Log processor and forwarder"
|
|
|
|
url="https://fluentbit.io/"
|
|
|
|
# riscv64: does not support bundled luajit
|
|
|
|
arch="all !ppc64le !s390x !riscv64"
|
|
|
|
license="Apache-2.0"
|
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
cmake
|
|
|
|
flex
|
2023-04-26 17:22:52 +00:00
|
|
|
linux-headers
|
|
|
|
musl-fts-dev
|
|
|
|
openssl-dev
|
2022-07-12 11:15:51 +00:00
|
|
|
gtest-dev
|
2022-08-16 12:41:09 +00:00
|
|
|
yaml-dev
|
2022-10-06 18:03:30 +00:00
|
|
|
zlib-dev
|
2022-07-12 11:15:51 +00:00
|
|
|
"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-dev
|
|
|
|
$pkgname-openrc
|
|
|
|
"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/fluent/fluent-bit/archive/v$pkgver.tar.gz
|
|
|
|
fluent-bit.confd
|
|
|
|
fluent-bit.initd
|
|
|
|
chunkio-static-lib-fts.patch
|
|
|
|
"
|
|
|
|
# enable check when this solved - https://github.com/fluent/fluent-bit/issues/2464#issuecomment-673280055
|
|
|
|
# Disable all things AWS to make tests pass
|
|
|
|
options="!check"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
2022-10-06 18:03:30 +00:00
|
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=$CHOST-gcc"
|
2022-07-12 11:15:51 +00:00
|
|
|
fi
|
|
|
|
# default CORE_STACK_SIZE=((3 * PTHREAD_STACK_MIN) / 2)=3072 is invalid
|
|
|
|
# set default to 24576
|
|
|
|
# Disable stream processor due to issue see: https://github.com/fluent/fluent-bit/issues/2464
|
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2022-10-06 18:03:30 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
2022-07-12 11:15:51 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
|
|
-DFLB_CORO_STACK_SIZE=24576 \
|
|
|
|
-DFLB_RELEASE=Yes \
|
2022-10-06 18:03:30 +00:00
|
|
|
-DFLB_DEBUG=Off \
|
|
|
|
-DFLB_SHARED_LIB=Off \
|
2022-07-12 11:15:51 +00:00
|
|
|
-DFLB_JEMALLOC=Yes \
|
2022-10-06 18:03:30 +00:00
|
|
|
-DFLB_LUAJIT=Yes \
|
|
|
|
-DFLB_IN_SYSTEMD=Off \
|
2022-07-12 11:15:51 +00:00
|
|
|
-DFLB_PROXY_GO=No \
|
|
|
|
-DFLB_HTTP_SERVER=Yes \
|
|
|
|
$CMAKE_CROSSOPTS .
|
|
|
|
make -C build
|
2022-10-06 18:03:30 +00:00
|
|
|
#-DCMAKE_FIND_LIBRARY_SUFFIXES=".a" \
|
|
|
|
#-DCMAKE_EXE_LINKER_FLAGS="-static" \
|
|
|
|
#-DFLB_STREAM_PROCESSOR=No \
|
|
|
|
#-DFLB_FILTER_LUA=Off \
|
2022-07-12 11:15:51 +00:00
|
|
|
#-DFLB_TESTS_INTERNAL=Yes \
|
|
|
|
#-DFLB_AWS=No \
|
|
|
|
#-DFLB_SIGNV4=No \
|
|
|
|
#-DFLB_OUT_S3=No \
|
|
|
|
#-DFLB_OUT_CLOUDWATCH_LOGS=No \
|
|
|
|
#-DFLB_OUT_KINESIS_FIREHOSE=No \
|
|
|
|
#-DFLB_OUT_KINESIS_STREAMS=No \
|
|
|
|
#-DFLB_OUT_BIGQUERY=No \
|
|
|
|
#-DFLB_FILTER_AWS=No \
|
2022-10-06 18:03:30 +00:00
|
|
|
#-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
2022-07-12 11:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=1 make -C build test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make -C build DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm755 "$srcdir"/$pkgname.initd \
|
|
|
|
"$pkgdir"/etc/init.d/$pkgname
|
|
|
|
install -Dm644 "$srcdir"/$pkgname.confd \
|
|
|
|
"$pkgdir"/etc/conf.d/$pkgname
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/etc/* "$pkgdir"/etc
|
|
|
|
}
|
|
|
|
|
2023-04-26 17:22:52 +00:00
|
|
|
sha512sums="
|
|
|
|
8c682e41411cae42580636a8d55b3f6c09b729f8e25f7d4e4b306ff286e0aea91da9ebc1a57dee153a90117884cc2a9d4342cae0e860a2f5f74a8a8c4f3b1e81 fluent-bit-2.1.1.tar.gz
|
2022-07-12 11:15:51 +00:00
|
|
|
f6431397c80a036980b5377b51e38aec25dfceeb8dbe4cd54dce1f6e77d669d9f8daf983fcc96d25332385888f1809ced5e8ab0e8ccfcd93d19494036e3dc949 fluent-bit.confd
|
|
|
|
8ba6c8e84dee90176f9b4375fb2c6444fa5d32fa601d9bcf3ea7960fec87f1ef664f175caf08bd0b052843e971efdbf08e2a5cd180ad9a8f23ff2c5cb233814f fluent-bit.initd
|
|
|
|
6bd7d8b4da93a17f29b6ea1e0286ea226d0e376024284741110936779b3229bd8d6cd03ffbdc5d3b4842294e7f32a888de0dd16b0851b65d91b062ca58530ea0 chunkio-static-lib-fts.patch
|
2023-04-26 17:22:52 +00:00
|
|
|
"
|