File debian.rules of Package fluent-bit

#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
        -DFLB_ALL=On \
        -DFLB_PREFER_SYSTEM_LIBS=On \
        -DFLB_SHARED_LIB=Off \
        -DFLB_SECURITY=On \
        -DFLB_WASM_STACK_PROTECT=On \
        -DFLB_RELEASE=On

override_dh_auto_install:
	dh_auto_install
	# install configuration and service file
	rm debian/fluent-bit/etc/fluent-bit/*.conf
	install -m 0644 ../SOURCES/fluent-bit.yaml debian/fluent-bit/etc/fluent-bit/fluent-bit.yaml
	sed -i -e 's@/\?\(/etc/fluent-bit/fluent-bit\).conf@\1.yaml@' debian/fluent-bit/lib/systemd/system/fluent-bit.service
	# remove unnecessary "Installed (but unpackaged) file(s)"
	rm -r debian/fluent-bit/usr/include
openSUSE Build Service is sponsored by