From 0a122a0f71c4bd314bd97f712d1aba6d360d47bb Mon Sep 17 00:00:00 2001 From: Giuseppe Foti Date: Sat, 7 Sep 2024 23:36:36 +0200 Subject: [PATCH] net-analyzer/notus-scanner: Adds a check on log's dir owner and the logfile to logrotate Closes: https://bugs.gentoo.org/937564 Signed-off-by: Giuseppe Foti Signed-off-by: Florian Schmaus --- .../notus-scanner/files/notus-scanner.logrotate | 13 +++++++++++++ ...6.3-r1.ebuild => notus-scanner-22.6.3-r3.ebuild} | 12 +++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 net-analyzer/notus-scanner/files/notus-scanner.logrotate rename net-analyzer/notus-scanner/{notus-scanner-22.6.3-r1.ebuild => notus-scanner-22.6.3-r3.ebuild} (87%) diff --git a/net-analyzer/notus-scanner/files/notus-scanner.logrotate b/net-analyzer/notus-scanner/files/notus-scanner.logrotate new file mode 100644 index 0000000000000..195611c2959ee --- /dev/null +++ b/net-analyzer/notus-scanner/files/notus-scanner.logrotate @@ -0,0 +1,13 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# Daemon ignore HUP so we use 'copytruncate' instead of 'create' +# with safe file size to prevent losing log entries. + +/var/log/gvm/notus-scanner.log { + compress + missingok + notifempty + sharedscripts + copytruncate + maxsize 10M +} diff --git a/net-analyzer/notus-scanner/notus-scanner-22.6.3-r1.ebuild b/net-analyzer/notus-scanner/notus-scanner-22.6.3-r3.ebuild similarity index 87% rename from net-analyzer/notus-scanner/notus-scanner-22.6.3-r1.ebuild rename to net-analyzer/notus-scanner/notus-scanner-22.6.3-r3.ebuild index 9ac39d6372b92..3e9f943556966 100644 --- a/net-analyzer/notus-scanner/notus-scanner-22.6.3-r1.ebuild +++ b/net-analyzer/notus-scanner/notus-scanner-22.6.3-r3.ebuild @@ -20,7 +20,7 @@ DEPEND=" net-libs/paho-mqtt-c >=dev-python/psutil-5.9[${PYTHON_USEDEP}] >=dev-python/python-gnupg-0.5.1[${PYTHON_USEDEP}] - =dev-python/paho-mqtt-1.5.1[${PYTHON_USEDEP}] $(python_gen_cond_dep '