netdata: disable systemd units plugin when systemd is not enabled

netdata's cmake build unconditionally requires systemd for the
'Systemd units' plugin unless explicitly disabled. Tie
ENABLE_PLUGIN_SYSTEMD_UNITS to the same DISTRO_FEATURES systemd check
already used for the journal option, so sysvinit builds configure
cleanly.

AI-Generated: Uses Claude Code

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-09-29 15:35:17 -07:00
1 parent a1038beb9e
commit 52dd81583b
1 file changed
+1
@@ -102,6 +102,7 @@ EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF \
-DENABLE_LIBBACKTRACE=OFF \
-DProtobuf_PROTOC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/protoc \
-DBUILD_FOR_PACKAGING=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \
-DENABLE_PLUGIN_SYSTEMD_UNITS=${@bb.utils.contains('DISTRO_FEATURES','systemd','ON','OFF',d)} \
-DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=OFF -DCMAKE_INSTALL_PREFIX='${base_prefix}'"
do_compile:append() {