commit:     8df717907ae1cea66ba4b7ff0eeee94a14cf66ab
Author:     Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com>
AuthorDate: Mon Sep 11 10:35:13 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 18:22:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8df71790

app-admin/logcheck: add 1.4.3-r1, drop 1.4.3

Closes: https://bugs.gentoo.org/913857
Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32721
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../logcheck/{logcheck-1.4.3.ebuild => logcheck-1.4.3-r1.ebuild}     | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app-admin/logcheck/logcheck-1.4.3.ebuild 
b/app-admin/logcheck/logcheck-1.4.3-r1.ebuild
similarity index 91%
rename from app-admin/logcheck/logcheck-1.4.3.ebuild
rename to app-admin/logcheck/logcheck-1.4.3-r1.ebuild
index b9657a685030..76743bb9b220 100644
--- a/app-admin/logcheck/logcheck-1.4.3.ebuild
+++ b/app-admin/logcheck/logcheck-1.4.3-r1.ebuild
@@ -49,6 +49,11 @@ src_prepare() {
 
        # QA-fix Remove install of empty dirs to be created at runtime
        sed -i "/install -d \$(DESTDIR)\/var\/lock\/logcheck/d" "${S}/Makefile" 
|| die
+
+       # Comment systemd journal check if systemd use flag is not set | Bug: 
#913857
+       if ! use systemd; then
+               sed -i -e "s/^journal/#journal/" 
"${S}/etc/logcheck.logfiles.d/journal.logfiles" || die
+       fi
 }
 
 src_install() {

Reply via email to