Skip to content

Commit

Permalink
deb-packaging: add axosyslog-mod-bpf
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <laszlo.varady@anno.io>
  • Loading branch information
MrAnno committed Jun 20, 2024
1 parent 2d71c36 commit c804063
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dbld/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ function _map_feature_flags_to_deb_build_profiles()
;;
esac
done

echo -n "sng-${OS_DISTRIBUTION} "
echo
}

Expand Down
1 change: 1 addition & 0 deletions packaging/debian/axosyslog-mod-bpf.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/syslog-ng/*/libebpf.so
30 changes: 29 additions & 1 deletion packaging/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ Build-Depends: debhelper (>= 10~),
libprotoc-dev <!sng-nogrpc>,
libabsl-dev <!sng-nogrpc>,
libprotobuf-dev <!sng-nogrpc>,
libgrpc++-dev <!sng-nogrpc>
libgrpc++-dev <!sng-nogrpc>,
clang <!sng-nobpf>,
libbpf-dev <!sng-nobpf>,
linux-tools-common <!sng-nobpf sng-ubuntu>,
bpftool <!sng-nobpf sng-debian>
Build-Conflicts: autoconf2.13
Standards-Version: 4.4.1
Homepage: https://axoflow.com/docs/axosyslog-core/
Expand Down Expand Up @@ -881,6 +885,30 @@ Description: Enhanced system logging daemon (GRPC plugins)
* Google BigQuery
* Grafana Loki

Package: axosyslog-mod-bpf
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}, axosyslog-core (>= ${source:Version}), axosyslog-core (<< ${source:Version}.1~)
Conflicts: syslog-ng-mod-grpc
Description: Enhanced system logging daemon (eBPF plugins)
AxoSyslog is an enhanced log daemon, supporting a wide range of input
and output methods: syslog, unstructured text, message queues,
databases (SQL and NoSQL alike) and more.
.
Key features:
.
* receive and send RFC3164 and RFC5424 style syslog messages
* work with any kind of unstructured data
* receive and send JSON formatted messages
* classify and structure logs with builtin parsers (csv-parser(),
db-parser(), etc.)
* normalize, crunch and process logs as they flow through the system
* hand on messages for further processing using message queues (like
AMQP), files or databases (like PostgreSQL or MongoDB).
.
This package provides the ebpf() plugin which leverages the kernel's eBPF
infrastructure to improve performance and scalability of AxoSyslog.

Package: axosyslog-mod-cloud-auth
Architecture: any
Multi-Arch: foreign
Expand Down
8 changes: 8 additions & 0 deletions packaging/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ ifneq ($(filter sng-nogrpc,$(DEB_BUILD_PROFILES)),)
DH_OPTIONS += -Naxosyslog-mod-grpc
endif

ifneq ($(filter sng-nobpf,$(DEB_BUILD_PROFILES)),)
DH_OPTIONS += -Naxosyslog-mod-bpf
BPF_CONFIGURE_OPTS = --disable-ebpf
else
BPF_CONFIGURE_OPTS = --enable-ebpf
endif

# If DH_QUIET is set, then we want silent mode.
# If DH_VERBOSE is set, we do not want silent mode.
# If neither is set, we want the default: verbose mode.
Expand Down Expand Up @@ -127,6 +134,7 @@ override_dh_auto_configure:
--enable-java=auto \
--enable-mqtt=auto \
--enable-grpc=auto \
$(BPF_CONFIGURE_OPTS) \
--enable-cloud-auth=auto \
\
--with-mongoc=system \
Expand Down

0 comments on commit c804063

Please sign in to comment.