Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ospd-openvas/
Date: Mon, 09 May 2022 13:50:14
Message-Id: 1652104158.6ffe958d31b462766074dc3418f06dc8dea5b253.flow@gentoo
1 commit: 6ffe958d31b462766074dc3418f06dc8dea5b253
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 9 13:47:05 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon May 9 13:49:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ffe958d
7
8 net-analyzer/ospd-openvas: LICENSE, DISTUTILS_USE_PEP517, sudoers
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 ...as-21.4.4-r3.ebuild => ospd-openvas-21.4.4-r4.ebuild} | 16 +++++++++++-----
13 1 file changed, 11 insertions(+), 5 deletions(-)
14
15 diff --git a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r4.ebuild
16 similarity index 81%
17 rename from net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild
18 rename to net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r4.ebuild
19 index e6e08ba90a4d..a7791ba4ba27 100644
20 --- a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild
21 +++ b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r4.ebuild
22 @@ -4,14 +4,14 @@
23 EAPI=8
24
25 PYTHON_COMPAT=( python3_{8..10} )
26 -DISTUTILS_USE_SETUPTOOLS=pyproject.toml
27 +DISTUTILS_USE_PEP517=poetry
28 inherit distutils-r1 systemd
29
30 DESCRIPTION="This is an OSP server implementation to allow GVM to remotely control OpenVAS"
31 -HOMEPAGE="https://github.com/greenbone/ospd-openvas"
32 +HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/ospd-openvas"
33 SRC_URI="https://github.com/greenbone/ospd-openvas/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34
35 -LICENSE="GPL-2"
36 +LICENSE="AGPL-3+ GPL-2+"
37 SLOT="0"
38 KEYWORDS="~amd64 ~x86"
39 IUSE="doc"
40 @@ -29,6 +29,7 @@ DEPEND="
41 "
42 RDEPEND="
43 ${DEPEND}
44 + app-admin/sudo
45 >=net-analyzer/openvas-scanner-${PV}
46 "
47
48 @@ -55,8 +56,6 @@ python_compile() {
49 python_install() {
50 distutils-r1_python_install
51
52 - dodoc "${FILESDIR}"/redis.conf.example
53 -
54 insinto /etc/gvm
55 doins config/${PN}.conf
56 if ! use prefix; then
57 @@ -67,4 +66,11 @@ python_install() {
58 newconfd "${FILESDIR}/${PN}.confd" "${PN}"
59
60 systemd_dounit config/${PN}.service
61 +
62 + # OSPD OpenVAS attempts to call openvas via sudo as network security
63 + # scanning often requires priviliged operations.
64 + insinto /etc/sudoers.d
65 + newins - openvas <<-EOF
66 + gvm ALL = NOPASSWD: /usr/bin/openvas
67 +EOF
68 }