commit: 32df79e74beff72d36dae363e53f2d16808c356a Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> AuthorDate: Sun Apr 16 22:35:38 2023 +0000 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> CommitDate: Sun Apr 16 22:35:38 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32df79e7
net-misc/ntpsec: Fix logrotate config Closes: https://bugs.gentoo.org/873514 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch | 26 ++++++++++++++++++++++ .../{ntpsec-9999.ebuild => ntpsec-1.2.2-r1.ebuild} | 1 + net-misc/ntpsec/ntpsec-9999.ebuild | 1 + 3 files changed, 28 insertions(+) diff --git a/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch b/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch new file mode 100644 index 000000000000..60152bc846c4 --- /dev/null +++ b/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch @@ -0,0 +1,26 @@ +From 4ba53b95a6a45f08f5d3436a4a3ba4f9a97146e2 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <[email protected]> +Date: Mon, 17 Apr 2023 00:24:32 +0200 +Subject: [PATCH] Give ntpd a chance at re-opening the logfile as ntp:ntp after + rotation + +https://bugs.gentoo.org/873514 +--- + etc/logrotate-config.ntpd | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/etc/logrotate-config.ntpd b/etc/logrotate-config.ntpd +index b64998e..9144e57 100644 +--- a/etc/logrotate-config.ntpd ++++ b/etc/logrotate-config.ntpd +@@ -5,6 +5,7 @@ + + /var/log/ntpd.log { + monthly ++ create 640 ntp root + missingok + postrotate + /usr/bin/killall -HUP ntpd +-- +2.40.0 + diff --git a/net-misc/ntpsec/ntpsec-9999.ebuild b/net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild similarity index 98% copy from net-misc/ntpsec/ntpsec-9999.ebuild copy to net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild index 2fec1857639a..cee0430804e4 100644 --- a/net-misc/ntpsec/ntpsec-9999.ebuild +++ b/net-misc/ntpsec/ntpsec-1.2.2-r1.ebuild @@ -54,6 +54,7 @@ BDEPEND=">=app-text/asciidoc-8.6.8 PATCHES=( "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch" + "${FILESDIR}/${PN}-1.2.2-logrotate.patch" ) WAF_BINARY="${S}/waf" diff --git a/net-misc/ntpsec/ntpsec-9999.ebuild b/net-misc/ntpsec/ntpsec-9999.ebuild index 2fec1857639a..cee0430804e4 100644 --- a/net-misc/ntpsec/ntpsec-9999.ebuild +++ b/net-misc/ntpsec/ntpsec-9999.ebuild @@ -54,6 +54,7 @@ BDEPEND=">=app-text/asciidoc-8.6.8 PATCHES=( "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch" + "${FILESDIR}/${PN}-1.2.2-logrotate.patch" ) WAF_BINARY="${S}/waf"
