diff options
| author | Yogita Urade <yogita.urade@windriver.com> | 2025-05-15 14:05:28 +0530 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-05-15 07:08:34 -0700 |
| commit | 048552501ccf7b0313075e0c5a8e36a7a1244c44 (patch) | |
| tree | 566991c451a5e1600c86dbf88bf8e406cd9404ce /meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb | |
| parent | 1d6095b73fa21062fde2b347cd61b6c5104390d9 (diff) | |
| download | meta-openembedded-048552501ccf7b0313075e0c5a8e36a7a1244c44.tar.gz | |
syslog-ng: upgrade 4.8.1 -> 4.8.2
Includes fix for CVE-2024-47619
Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.8.2
Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb')
| -rw-r--r-- | meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb | 147 |
1 files changed, 147 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb new file mode 100644 index 0000000000..ebeab51961 --- /dev/null +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | SUMMARY = "Alternative system logger daemon" | ||
| 2 | DESCRIPTION = "syslog-ng, as the name shows, is a syslogd replacement, \ | ||
| 3 | but with new functionality for the new generation. The original syslogd \ | ||
| 4 | allows messages only to be sorted based on priority/facility pairs; \ | ||
| 5 | syslog-ng adds the possibility to filter based on message contents using \ | ||
| 6 | regular expressions. The new configuration scheme is intuitive and powerful. \ | ||
| 7 | Forwarding logs over TCP and remembering all forwarding hops makes it \ | ||
| 8 | ideal for firewalled environments. \ | ||
| 9 | " | ||
| 10 | HOMEPAGE = "http://www.balabit.com/network-security/syslog-ng/opensource-logging-system" | ||
| 11 | |||
| 12 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | ||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=924958cefc9f7de3e0b818832b8a1cec" | ||
| 14 | |||
| 15 | # util-linux added to get libuuid | ||
| 16 | DEPENDS = "libpcre flex glib-2.0 openssl util-linux bison-native curl json-c" | ||
| 17 | |||
| 18 | SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ | ||
| 19 | file://syslog-ng.conf.systemd \ | ||
| 20 | file://syslog-ng.conf.sysvinit \ | ||
| 21 | file://initscript \ | ||
| 22 | file://volatiles.03_syslog-ng \ | ||
| 23 | file://syslog-ng-tmp.conf \ | ||
| 24 | file://syslog-ng.service-the-syslog-ng-service.patch \ | ||
| 25 | file://0001-Fix-buildpaths-warning.patch \ | ||
| 26 | " | ||
| 27 | SRC_URI:append:powerpc64le = " file://0001-plugin.c-workaround-powerpc64le-segfaults-error.patch" | ||
| 28 | |||
| 29 | SRC_URI[sha256sum] = "7d1ebe70746009dc06bd2fa5c412a1985579a9c887292f766cc775d169d60e68" | ||
| 30 | |||
| 31 | UPSTREAM_CHECK_URI = "https://github.com/balabit/syslog-ng/releases" | ||
| 32 | |||
| 33 | CVE_STATUS[CVE-2022-38725] = "cpe-incorrect: cve-check wrongly matches cpe:2.3:a:oneidentity:syslog-ng:*:*:*:*:premium:*:*:* < 7.0.32" | ||
| 34 | |||
| 35 | inherit autotools gettext systemd pkgconfig update-rc.d multilib_header | ||
| 36 | |||
| 37 | EXTRA_OECONF = " \ | ||
| 38 | --enable-dynamic-linking \ | ||
| 39 | --disable-sub-streams \ | ||
| 40 | --disable-pacct \ | ||
| 41 | --localstatedir=${localstatedir}/lib/${BPN} \ | ||
| 42 | --sysconfdir=${sysconfdir}/${BPN} \ | ||
| 43 | --with-module-dir=${libdir}/${BPN} \ | ||
| 44 | --with-sysroot=${STAGING_DIR_HOST} \ | ||
| 45 | --without-mongoc --disable-mongodb \ | ||
| 46 | --with-librabbitmq-client=no \ | ||
| 47 | --disable-python \ | ||
| 48 | --disable-java --disable-java-modules \ | ||
| 49 | --with-pidfile-dir=${localstatedir}/run/${BPN} \ | ||
| 50 | " | ||
| 51 | |||
| 52 | PACKAGECONFIG ??= " \ | ||
| 53 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} \ | ||
| 54 | " | ||
| 55 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,," | ||
| 56 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd," | ||
| 57 | PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap," | ||
| 58 | PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi," | ||
| 59 | PACKAGECONFIG[spoof-source] = "--enable-spoof-source --with-libnet=${STAGING_BINDIR_CROSS},--disable-spoof-source,libnet," | ||
| 60 | PACKAGECONFIG[http] = "--enable-http,--disable-http,curl," | ||
| 61 | PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp," | ||
| 62 | PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c," | ||
| 63 | PACKAGECONFIG[tcp-wrapper] = "--enable-tcp-wrapper,--disable-tcp-wrapper,tcp-wrappers," | ||
| 64 | PACKAGECONFIG[geoip] = "--enable-geoip,--disable-geoip,geoip," | ||
| 65 | PACKAGECONFIG[native] = "--enable-native,--disable-native,," | ||
| 66 | |||
| 67 | do_install:append() { | ||
| 68 | install -d ${D}${sysconfdir}/${BPN} | ||
| 69 | install -d ${D}${sysconfdir}/init.d | ||
| 70 | install -m 755 ${UNPACKDIR}/initscript ${D}${sysconfdir}/init.d/syslog | ||
| 71 | |||
| 72 | install -d ${D}${sysconfdir}/default/volatiles/ | ||
| 73 | install -m 644 ${UNPACKDIR}/volatiles.03_syslog-ng ${D}${sysconfdir}/default/volatiles/03_syslog-ng | ||
| 74 | install -d ${D}${sysconfdir}/tmpfiles.d/ | ||
| 75 | install -m 644 ${UNPACKDIR}/syslog-ng-tmp.conf ${D}${sysconfdir}/tmpfiles.d/syslog-ng.conf | ||
| 76 | |||
| 77 | install -d ${D}${localstatedir}/lib/${BPN} | ||
| 78 | # Remove /var/run as it is created on startup | ||
| 79 | rm -rf ${D}${localstatedir}/run | ||
| 80 | |||
| 81 | # it causes install conflict when multilib enabled | ||
| 82 | # since python support is disabled, not deliver it | ||
| 83 | rm -f ${D}${bindir}/syslog-ng-update-virtualenv | ||
| 84 | |||
| 85 | # support for systemd | ||
| 86 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 87 | install -m 644 ${UNPACKDIR}/syslog-ng.conf.systemd ${D}${sysconfdir}/${BPN}/${BPN}.conf | ||
| 88 | |||
| 89 | install -d ${D}${systemd_unitdir}/system/ | ||
| 90 | install -m 644 ${S}/contrib/systemd/${BPN}@.service ${D}${systemd_unitdir}/system/${BPN}@.service | ||
| 91 | install -m 644 ${S}/contrib/systemd/${BPN}@default ${D}${sysconfdir}/default/${BPN}@default | ||
| 92 | |||
| 93 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/${BPN}@.service ${D}${sysconfdir}/default/${BPN}@default | ||
| 94 | sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${systemd_unitdir}/system/${BPN}@.service ${D}${sysconfdir}/default/${BPN}@default | ||
| 95 | sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/${BPN}@.service ${D}${sysconfdir}/default/${BPN}@default | ||
| 96 | |||
| 97 | install -d ${D}${systemd_unitdir}/system/multi-user.target.wants | ||
| 98 | ln -sf ../${BPN}@.service ${D}${systemd_unitdir}/system/multi-user.target.wants/${BPN}@default.service | ||
| 99 | else | ||
| 100 | install -m 644 ${UNPACKDIR}/syslog-ng.conf.sysvinit ${D}${sysconfdir}/${BPN}/${BPN}.conf | ||
| 101 | fi | ||
| 102 | |||
| 103 | oe_multilib_header syslog-ng/syslog-ng-config.h | ||
| 104 | } | ||
| 105 | |||
| 106 | FILES:${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools ${systemd_unitdir}/system/multi-user.target.wants/*" | ||
| 107 | RDEPENDS:${PN} += "gawk ${@bb.utils.contains('PACKAGECONFIG','json','${PN}-jconf','',d)}" | ||
| 108 | |||
| 109 | FILES:${PN}-jconf += " \ | ||
| 110 | ${datadir}/${BPN}/include/scl/cim \ | ||
| 111 | ${datadir}/${BPN}/include/scl/elasticsearch \ | ||
| 112 | ${datadir}/${BPN}/include/scl/ewmm \ | ||
| 113 | ${datadir}/${BPN}/include/scl/graylog2 \ | ||
| 114 | ${datadir}/${BPN}/include/scl/loggly \ | ||
| 115 | ${datadir}/${BPN}/include/scl/logmatic \ | ||
| 116 | " | ||
| 117 | |||
| 118 | # This overcomes the syslog-ng rdepends on syslog-ng-dev QA Error | ||
| 119 | PACKAGES =+ "${PN}-jconf ${PN}-libs ${PN}-libs-dev" | ||
| 120 | RPROVIDES:${PN}-dbg += "${PN}-libs-dbg" | ||
| 121 | FILES:${PN}-libs = "${libdir}/${BPN}/*.so ${libdir}/libsyslog-ng-*.so*" | ||
| 122 | FILES:${PN}-libs-dev = "${libdir}/${BPN}/lib*.la" | ||
| 123 | FILES:${PN}-staticdev += "${libdir}/${BPN}/libtest/*.a" | ||
| 124 | FILES:${PN} += "${systemd_unitdir}/system/*.service" | ||
| 125 | INSANE_SKIP:${PN}-libs = "dev-so" | ||
| 126 | RDEPENDS:${PN} += "${PN}-libs" | ||
| 127 | |||
| 128 | CONFFILES:${PN} = "${sysconfdir}/${BPN}.conf ${sysconfdir}/scl.conf" | ||
| 129 | |||
| 130 | RCONFLICTS:${PN} = "busybox-syslog sysklogd rsyslog" | ||
| 131 | RCONFLICTS:${PN}-libs = "busybox-syslog sysklogd rsyslog" | ||
| 132 | |||
| 133 | RPROVIDES:${PN} += "${PN}-systemd" | ||
| 134 | RREPLACES:${PN} += "${PN}-systemd" | ||
| 135 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
| 136 | SYSTEMD_SERVICE:${PN} = "${BPN}@.service" | ||
| 137 | |||
| 138 | INITSCRIPT_NAME = "syslog" | ||
| 139 | INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ." | ||
| 140 | |||
| 141 | # Fails only with 32bit MACHINEs | ||
| 142 | # http://errors.yoctoproject.org/Errors/Details/766956/ | ||
| 143 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:937:63: error: passing argument 4 of 'g_io_channel_write_chars' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 144 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:955:99: error: passing argument 5 of 'cmac' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 145 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:959:74: error: passing argument 4 of 'g_io_channel_write_chars' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 146 | # syslog-ng-4.6.0/modules/secure-logging/slog.c:975:107: error: passing argument 4 of 'g_io_channel_write_chars' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 147 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||
