public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ospd-openvas/
Date: Mon,  9 May 2022 13:50:10 +0000 (UTC)	[thread overview]
Message-ID: <1652104158.6ffe958d31b462766074dc3418f06dc8dea5b253.flow@gentoo> (raw)

commit:     6ffe958d31b462766074dc3418f06dc8dea5b253
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon May  9 13:47:05 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon May  9 13:49:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ffe958d

net-analyzer/ospd-openvas: LICENSE, DISTUTILS_USE_PEP517, sudoers

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 ...as-21.4.4-r3.ebuild => ospd-openvas-21.4.4-r4.ebuild} | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

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
similarity index 81%
rename from net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild
rename to net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r4.ebuild
index e6e08ba90a4d..a7791ba4ba27 100644
--- a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r3.ebuild
+++ b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r4.ebuild
@@ -4,14 +4,14 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+DISTUTILS_USE_PEP517=poetry
 inherit distutils-r1 systemd
 
 DESCRIPTION="This is an OSP server implementation to allow GVM to remotely control OpenVAS"
-HOMEPAGE="https://github.com/greenbone/ospd-openvas"
+HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/ospd-openvas"
 SRC_URI="https://github.com/greenbone/ospd-openvas/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
-LICENSE="GPL-2"
+LICENSE="AGPL-3+ GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="doc"
@@ -29,6 +29,7 @@ DEPEND="
 "
 RDEPEND="
 	${DEPEND}
+	app-admin/sudo
 	>=net-analyzer/openvas-scanner-${PV}
 "
 
@@ -55,8 +56,6 @@ python_compile() {
 python_install() {
 	distutils-r1_python_install
 
-	dodoc "${FILESDIR}"/redis.conf.example
-
 	insinto /etc/gvm
 	doins config/${PN}.conf
 	if ! use prefix; then
@@ -67,4 +66,11 @@ python_install() {
 	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
 
 	systemd_dounit config/${PN}.service
+
+	# OSPD OpenVAS attempts to call openvas via sudo as network security
+	# scanning often requires priviliged operations.
+	insinto /etc/sudoers.d
+	newins - openvas <<-EOF
+	gvm  ALL = NOPASSWD: /usr/bin/openvas
+EOF
 }


             reply	other threads:[~2022-05-09 13:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-09 13:50 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-23  3:55 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ospd-openvas/ Sam James
2024-06-07  7:36 Florian Schmaus
2024-04-03 17:38 Florian Schmaus
2024-02-28 20:50 Jakov Smolić
2023-11-21  8:01 Florian Schmaus
2023-10-14 15:05 Florian Schmaus
2023-07-20 20:30 Florian Schmaus
2022-05-09  9:36 Florian Schmaus
2022-05-08 18:32 Florian Schmaus
2022-05-02 13:43 Florian Schmaus
2022-05-02 11:16 Florian Schmaus
2020-08-21  7:15 Joonas Niilola
2020-07-14 12:57 Joonas Niilola
2020-03-26 14:01 Joonas Niilola
2020-03-25 13:46 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1652104158.6ffe958d31b462766074dc3418f06dc8dea5b253.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox