syslog-ng: upgrade 4.7.0 -> 4.8.1

Release notes:
   https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.8.1
   https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.8.0

Update the syslog-ng.conf.[systemd|sysvinit] files to align with
upstream's 4.8 version. This involved changing from stats_freq(0)
to stats(freq(0)) to avoid:
   > WARNING: Your configuration file uses an obsoleted keyword, ...
as was done in:
   2d3a8c783 packaging: Update the sample Debian config to not throw warning
The comments and the greater authentication/encryption defaults kept.
Note that the latter are comment lines.
Also kept a line from the 'Sources' section:
   file("/proc/kmsg" program_override("kernel"));
but it's not clear if that's needed. It was in the original meta-oe version of
the file from 2018, version 3.15 but not the upstream syslog-ng-3.15.1.

With systemd enabled using poky-altcfg, there's a warning:
   /etc/tmpfiles.d/syslog-ng.conf:1:
      Line references path below legacy directory /var/run/,
      updating /var/run/syslog-ng → /run/syslog-ng;
      please update the tmpfiles.d/ drop-in file accordingly.
but that was present in the previous version and I won't take time
to fix it right now since systemd + syslog-ng isn't a common combination.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Randy MacLeod
2025-03-27 16:49:30 -04:00
committed by Khem Raj
parent 5756aa17e8
commit fee1274169
3 changed files with 11 additions and 10 deletions
@@ -1,5 +1,6 @@
@version: 3.36
#
@version: 4.8
@include "scl.conf"
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation. Originally written by anonymous (I can't find his name)
# Revised, and rewrited by me (SZALAY Attila <sasa@debian.org>)
@@ -10,9 +11,9 @@
# Joe Slater <joe.slater@windriver.com>
# First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no);
owner("root"); group("adm"); perm(0640); stats_freq(0);
bad_hostname("^gconfd$");
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
dns_cache(no); owner("root"); group("adm"); perm(0640);
stats(freq(0)); bad_hostname("^gconfd$");
};
########################
@@ -1,4 +1,4 @@
@version: 3.36
@version: 4.8
#
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation. Originally written by anonymous (I can't find his name)
@@ -10,9 +10,9 @@
# Joe Slater <joe.slater@windriver.com>
# First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no);
owner("root"); group("adm"); perm(0640); stats_freq(0);
bad_hostname("^gconfd$");
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
dns_cache(no); owner("root"); group("adm"); perm(0640);
stats(freq(0)); bad_hostname("^gconfd$");
};
########################
@@ -26,7 +26,7 @@ SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.ta
"
SRC_URI:append:powerpc64le = " file://0001-plugin.c-workaround-powerpc64le-segfaults-error.patch"
SRC_URI[sha256sum] = "b601265362c633a25f26c497a7e57592739d5a583b7963b722ff58f01b853506"
SRC_URI[sha256sum] = "e8b8b98c60a5b68b25e3462c4104c35d05b975e6778d38d8a81b8ff7c0e64c5b"
UPSTREAM_CHECK_URI = "https://github.com/balabit/syslog-ng/releases"