diff options
author | Giuseppe Foti <foti.giuseppe@gmail.com> | 2023-05-20 19:34:00 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-07-03 10:15:24 +0200 |
commit | 42c2b0b4346d4056de3abce986c73a52cf11a965 (patch) | |
tree | ca6940ff1133a35b96ed1dc2a6a5f91c01ad09c6 /net-analyzer | |
parent | net-analyzer/ospd-openvas: add 22.5.1 (diff) | |
download | gentoo-42c2b0b4346d4056de3abce986c73a52cf11a965.tar.gz gentoo-42c2b0b4346d4056de3abce986c73a52cf11a965.tar.bz2 gentoo-42c2b0b4346d4056de3abce986c73a52cf11a965.zip |
net-analyzer/gvm: add 22.4
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/gvm/files/gvm.init | 25 | ||||
-rw-r--r-- | net-analyzer/gvm/files/gvm.target | 5 | ||||
-rw-r--r-- | net-analyzer/gvm/gvm-22.4.ebuild | 40 | ||||
-rw-r--r-- | net-analyzer/gvm/metadata.xml | 4 |
4 files changed, 74 insertions, 0 deletions
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 @@ -2,6 +2,10 @@ <!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> </maintainer> |