app-admin/syslog-ng: fix config file name mangling

The config file name mangling was hard-coded to strip a specific
file suffix. This breaks when config files have different revisions.

Closes: https://bugs.gentoo.org/961446
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43431
Closes: https://github.com/gentoo/gentoo/pull/43431
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2025-08-13 14:30:09 +02:00
committed by Sam James
parent 83022b0d38
commit 33a01322c5

View File

@@ -105,7 +105,7 @@ src_prepare() {
for f in syslog-ng.conf.gentoo.hardened.in-r1 \
syslog-ng.conf.gentoo.in-r2; do
sed -e "s/@SYSLOGNG_VERSION@/$(ver_cut 1-2)/g" "${FILESDIR}/${f}" > "${T}/${f/.in-r1/}" || die
sed -e "s/@SYSLOGNG_VERSION@/$(ver_cut 1-2)/g" "${FILESDIR}/${f}" > "${T}/${f/.in*/}" || die
done
default