syslog-ng: Add an option to make awk optional.

Breaking change: Awk will now be turned off by default.
The change is introduced to avoid licensing issues: Syslog-ng is GPLv2,
gawk is GPLv3.

Signed-off-by: Alexander Yurkov <alexander.v.yurkov@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Alexander Yurkov
2026-05-29 12:09:46 +00:00
committed by Khem Raj
parent a6eb4a48f6
commit ef244600c2
@@ -67,6 +67,7 @@ PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c,"
PACKAGECONFIG[geoip] = "--enable-geoip,--disable-geoip,geoip,"
PACKAGECONFIG[native] = "--enable-native,--disable-native,,"
PACKAGECONFIG[examples] = "--enable-example-modules,--disable-example-modules,,"
PACKAGECONFIG[scl-syslogconf-awk] = "--enable-scl-syslogconf-awk,--disable-scl-syslogconf-awk,,gawk"
do_install:append() {
install -d ${D}${sysconfdir}/${BPN}
@@ -108,7 +109,7 @@ do_install:append() {
}
FILES:${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools ${systemd_unitdir}/system/multi-user.target.wants/*"
RDEPENDS:${PN} += "gawk ${@bb.utils.contains('PACKAGECONFIG','json','${PN}-jconf','',d)}"
RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG','json','${PN}-jconf','',d)}"
FILES:${PN}-jconf += " \
${datadir}/${BPN}/include/scl/cim \