commit: dace69ea187784545286de6c07970920a4a8ca49 Author: Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com> AuthorDate: Sun Jul 30 10:00:39 2023 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Mon Jul 31 12:57:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dace69ea
net-analyzer/openvas-scanner: fix logrotate issue Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32083 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> net-analyzer/openvas-scanner/files/openvas.logrotate | 13 +++++++++++++ .../openvas-scanner/openvas-scanner-22.7.3-r1.ebuild | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/net-analyzer/openvas-scanner/files/openvas.logrotate b/net-analyzer/openvas-scanner/files/openvas.logrotate new file mode 100644 index 000000000000..7d116f6fbbc0 --- /dev/null +++ b/net-analyzer/openvas-scanner/files/openvas.logrotate @@ -0,0 +1,13 @@ +# Copyright 1999-2023 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/openvas.log { + compress + missingok + notifempty + sharedscripts + copytruncate + maxsize 10M +} diff --git a/net-analyzer/openvas-scanner/openvas-scanner-22.7.3-r1.ebuild b/net-analyzer/openvas-scanner/openvas-scanner-22.7.3-r1.ebuild index 7bff1bd30260..096f3452f3ff 100644 --- a/net-analyzer/openvas-scanner/openvas-scanner-22.7.3-r1.ebuild +++ b/net-analyzer/openvas-scanner/openvas-scanner-22.7.3-r1.ebuild @@ -5,8 +5,7 @@ EAPI=8 inherit cmake systemd tmpfiles toolchain-funcs readme.gentoo-r1 optfeature -MY_PN="openvas" -MY_DN="openvassd" +MY_DN="openvas" DESCRIPTION="Open Vulnerability Assessment Scanner" HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/openvas-scanner/"
