public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gvm/files/, net-analyzer/gvm/
@ 2023-07-03  8:15 Florian Schmaus
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Schmaus @ 2023-07-03  8:15 UTC (permalink / raw
  To: gentoo-commits

commit:     42c2b0b4346d4056de3abce986c73a52cf11a965
Author:     Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com>
AuthorDate: Sat May 20 17:34:00 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Jul  3 08:15:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c2b0b4

net-analyzer/gvm: add 22.4

Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com>
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-analyzer/gvm/files/gvm.init   | 25 ++++++++++++++++++++++++
 net-analyzer/gvm/files/gvm.target |  5 +++++
 net-analyzer/gvm/gvm-22.4.ebuild  | 40 +++++++++++++++++++++++++++++++++++++++
 net-analyzer/gvm/metadata.xml     |  4 ++++
 4 files changed, 74 insertions(+)

diff --git a/net-analyzer/gvm/files/gvm.init b/net-analyzer/gvm/files/gvm.init
new file mode 100644
index 000000000000..bfd184221622
--- /dev/null
+++ b/net-analyzer/gvm/files/gvm.init
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+: ${GVM_USER:=gvm}
+: ${GVM_GROUP:=$(id -ng ${GVM_USER})}
+: ${GVM_TIMEOUT:=30}
+
+name="Greenbone Vulnerability Manager"
+command="/bin/true"
+command_background="true"
+command_user="${GSAD_USER}:${GSAD_GROUP}"
+pidfile="/run/gvm/gvm.pid"
+retry="${GSAD_TIMEOUT}"
+
+depend() {
+	after bootmisc
+	need localmount net redis-openvas ospd-openvas gvmd gsad
+	want notus-scanner
+}
+
+start_pre() {
+	mkdir /run/gvm
+	chown -R gvm:gvm /run/gvm/
+}

diff --git a/net-analyzer/gvm/files/gvm.target b/net-analyzer/gvm/files/gvm.target
new file mode 100644
index 000000000000..783f8781579a
--- /dev/null
+++ b/net-analyzer/gvm/files/gvm.target
@@ -0,0 +1,5 @@
+[Unit]
+Description=Greenbone Vulnerability Manager
+Requires=multi-user.target redis-openvas.service ospd-openvas.service gvmd.service gsad.service
+Wants=notus-scanner.service
+After=syslog.target network.target networking.service multi-user.target notus-scanner.service redis-openvas.service ospd-openvas.service gvmd.service gsad.service

diff --git a/net-analyzer/gvm/gvm-22.4.ebuild b/net-analyzer/gvm/gvm-22.4.ebuild
new file mode 100644
index 000000000000..4639c27b5590
--- /dev/null
+++ b/net-analyzer/gvm/gvm-22.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature systemd
+
+DESCRIPTION="Greenbone Vulnerability Management, previously named OpenVAS"
+HOMEPAGE="https://www.greenbone.net"
+
+SLOT="0"
+LICENSE="AGPL-3+"
+KEYWORDS="~amd64 ~x86"
+IUSE="cli doc +gsa ldap ospd snmp radius"
+
+RDEPEND="
+	>=net-analyzer/gvm-libs-${PV}[doc?,ldap?,radius?]
+	>=net-analyzer/gvmd-${PV}[doc?]
+	>=net-analyzer/openvas-scanner-${PV}[doc?,snmp?]
+	>=net-analyzer/greenbone-feed-sync-23.6.0
+	cli? ( >=net-analyzer/gvm-tools-21.10.0 )
+	gsa? ( >=net-analyzer/gsad-${PV}[doc?] )
+	ospd? ( >=net-analyzer/ospd-openvas-${PV}[doc?] )
+"
+
+src_unpack() {
+	mkdir "${WORKDIR}/${P}"
+}
+
+src_install() {
+	systemd_dounit "${FILESDIR}/${PN}.target"
+	newinitd "${FILESDIR}/${PN}.init" "${PN}"
+}
+
+pkg_postinst() {
+	optfeature "web server scanning and testing tool" net-analyzer/nikto
+	optfeature "IPsec VPN scanning, fingerprinting and testing tool" net-analyzer/ike-scan
+	optfeature "port scanner" net-analyzer/nmap
+	optfeature "create results from local security checks" net-analyzer/notus-scanner
+}

diff --git a/net-analyzer/gvm/metadata.xml b/net-analyzer/gvm/metadata.xml
index 8beb6053f456..588dd28fa08c 100644
--- a/net-analyzer/gvm/metadata.xml
+++ b/net-analyzer/gvm/metadata.xml
@@ -1,6 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>foti.giuseppe@gmail.com</email>
+		<name>Giuseppe Foti</name>
+	</maintainer>
 	<maintainer type="person" proxied="yes">
 		<email>jonas.licht@gmail.com</email>
 		<name>Jonas Licht</name>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gvm/files/, net-analyzer/gvm/
@ 2023-10-09 10:54 Florian Schmaus
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Schmaus @ 2023-10-09 10:54 UTC (permalink / raw
  To: gentoo-commits

commit:     83cac9a70ca64554740b6b6a790c16252a863a9e
Author:     Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com>
AuthorDate: Sun Oct  8 07:01:36 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Oct  9 10:54:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83cac9a7

net-analyzer/gvm: fix openrc init script

Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33242
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-analyzer/gvm/files/gvm.init                          | 4 ++--
 net-analyzer/gvm/{gvm-22.4.ebuild => gvm-22.4-r1.ebuild} | 0
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/gvm/files/gvm.init b/net-analyzer/gvm/files/gvm.init
index bfd184221622..22a736c403b3 100644
--- a/net-analyzer/gvm/files/gvm.init
+++ b/net-analyzer/gvm/files/gvm.init
@@ -9,9 +9,9 @@
 name="Greenbone Vulnerability Manager"
 command="/bin/true"
 command_background="true"
-command_user="${GSAD_USER}:${GSAD_GROUP}"
+command_user="${GVM_USER}:${GVM_GROUP}"
 pidfile="/run/gvm/gvm.pid"
-retry="${GSAD_TIMEOUT}"
+retry="${GVM_TIMEOUT}"
 
 depend() {
 	after bootmisc

diff --git a/net-analyzer/gvm/gvm-22.4.ebuild b/net-analyzer/gvm/gvm-22.4-r1.ebuild
similarity index 100%
rename from net-analyzer/gvm/gvm-22.4.ebuild
rename to net-analyzer/gvm/gvm-22.4-r1.ebuild


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-09 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03  8:15 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gvm/files/, net-analyzer/gvm/ Florian Schmaus
  -- strict thread matches above, loose matches on Subject: below --
2023-10-09 10:54 Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox