commit:     4e2f7e2dd0618d6fde6905051fcd2c790dad98bf
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 16:16:29 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 22 07:57:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e2f7e2d

app-admin/sysklogd: Fix incorrect REPLACING_VERSIONS usage

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-admin/sysklogd/sysklogd-2.6.2-r1.ebuild | 8 ++++----
 app-admin/sysklogd/sysklogd-9999.ebuild     | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/app-admin/sysklogd/sysklogd-2.6.2-r1.ebuild 
b/app-admin/sysklogd/sysklogd-2.6.2-r1.ebuild
index 56b5bae68e17..b1b4185137a4 100644
--- a/app-admin/sysklogd/sysklogd-2.6.2-r1.ebuild
+++ b/app-admin/sysklogd/sysklogd-2.6.2-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic systemd toolchain-funcs
+inherit eapi9-ver flag-o-matic systemd toolchain-funcs
 
 DESCRIPTION="Standard log daemons"
 HOMEPAGE="https://troglobit.com/sysklogd.html 
https://github.com/troglobit/sysklogd";
@@ -73,13 +73,13 @@ src_install() {
 }
 
 pkg_postinst() {
-       if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test 
${REPLACING_VERSIONS} -lt 2.0 ; then
+       if ! use logrotate && ver_replacing -lt 2.0 ; then
                elog "Starting with version 2.0 syslogd has built in log 
rotation"
                elog "functionality that does no longer require a running cron 
daemon."
                elog "So we no longer install any log rotation cron files for 
sysklogd."
        fi
 
-       if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 
2.1 ; then
+       if ver_replacing -lt 2.1 ; then
                elog "Starting with version 2.1 sysklogd no longer provides 
klogd."
                elog "syslogd now also logs kernel messages."
        fi

diff --git a/app-admin/sysklogd/sysklogd-9999.ebuild 
b/app-admin/sysklogd/sysklogd-9999.ebuild
index 47b85d4229cc..9a1198818fec 100644
--- a/app-admin/sysklogd/sysklogd-9999.ebuild
+++ b/app-admin/sysklogd/sysklogd-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic systemd toolchain-funcs
+inherit eapi9-ver flag-o-matic systemd toolchain-funcs
 
 DESCRIPTION="Standard log daemons"
 HOMEPAGE="https://troglobit.com/sysklogd.html 
https://github.com/troglobit/sysklogd";
@@ -73,13 +73,13 @@ src_install() {
 }
 
 pkg_postinst() {
-       if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test 
${REPLACING_VERSIONS} -lt 2.0 ; then
+       if ! use logrotate && ver_replacing -lt 2.0 ; then
                elog "Starting with version 2.0 syslogd has built in log 
rotation"
                elog "functionality that does no longer require a running cron 
daemon."
                elog "So we no longer install any log rotation cron files for 
sysklogd."
        fi
 
-       if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 
2.1 ; then
+       if ver_replacing -lt 2.1 ; then
                elog "Starting with version 2.1 sysklogd no longer provides 
klogd."
                elog "syslogd now also logs kernel messages."
        fi

Reply via email to