summaryrefslogtreecommitdiff
path: root/net-analyzer/gvm
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/gvm')
-rw-r--r--net-analyzer/gvm/Manifest5
-rw-r--r--net-analyzer/gvm/files/gvm.init25
-rw-r--r--net-analyzer/gvm/files/gvm.target5
-rw-r--r--net-analyzer/gvm/gvm-22.4.ebuild40
-rw-r--r--net-analyzer/gvm/metadata.xml4
5 files changed, 78 insertions, 1 deletions
diff --git a/net-analyzer/gvm/Manifest b/net-analyzer/gvm/Manifest
index 822daf15281c..7a41c5004020 100644
--- a/net-analyzer/gvm/Manifest
+++ b/net-analyzer/gvm/Manifest
@@ -1,2 +1,5 @@
+AUX gvm.init 550 BLAKE2B 20b5bfc7425abd0fc6a4e7c0b71641c4fe227f3ba43ee1416732b2e52f61944ab57a48d630787a1ad1a773a9cd4d7d569d709610c57de9f7d0c9b1537d8a0508 SHA512 2b63026a0cbc8d4be7c46fffca830d0e6cbe069fdef516448325c761adb44529bf70e9071c32a1ab3352d87b40830d3f9e4e7c629c27a6f4615b3ab6c4403b0e
+AUX gvm.target 338 BLAKE2B 215e2bf35ad1be674a77093db9b4a010f6145f295af172959db6b88b6d11616af1fa8b81744a5dcfc54b8a1bdcb9e5bad7c8b7ea969a0ce07cc4881ff98d05f5 SHA512 3999a33fb28bc30619fa8b39290c9f4545568bf5d15b518455d2e896c07d1002cad51ba6391627b26894dd653999ad571a7fb354a87e2ac707bbb1753e35e1a1
EBUILD gvm-21.4.ebuild 899 BLAKE2B d1088b804e9c6ef988e60e6e8fed8346f172ac364b59e7ff03ca5db8de22986db5f6c6e476d4d664c9cbd73cb32359a779002bb9eddd05c6a97d465cc666b4fb SHA512 045aa2ff19fdc6178d934df1f06606c1ad862c83569e4d12592671ac7d31ade18c27f7adf97f660f402ed50c150207b4e806bed1564500ba8c3158479e8f3d69
-MISC metadata.xml 968 BLAKE2B d35340dc406f958ba10d99658262fa9915515d11cd323c29753680fc9d8e9d07c4ffc3ac91801d0b0f158ee013f7231ddcf3f9704f40fa7371e83d45d0c0959a SHA512 bfa8bd4312db0d168ff9cd2847e25d32dacaf571ebc5cda1b45d12e10feb3fdedc0597491a94acca535ab8debf63b4feeaae842930b3bc704cf589b1cfec711e
+EBUILD gvm-22.4.ebuild 1126 BLAKE2B 6b86293d6eff7935670f45ce4bbc42d53e48f7c9a004fdfe5972e3ab604139251f100e64f1f14b3d04e5fc649c2adb67c0e16b087bcc1183a984728e368f8882 SHA512 436bd77be522cedfc43092a532c8be5358d0fc9ca50e3beb72820f49e13425fd51590727f0b6a2f52713d26b88fcbc6e02803ed7d261e5ac8cb4b192f6232a9e
+MISC metadata.xml 1095 BLAKE2B 2c01e221dbde7b0a8d83c0c0b70af67eaebe273199d5411f2c5b3da246193ed26d9c45fa5f901be6f22c557cf866a18238a16ec16b2d9d39971d1f88ad1bdb52 SHA512 521b8ff80e4d0d13cc7c008009ed283a422126c1cd560f10063f09c301b6821d81dd59463cf90cbc3d245260150e12ec9682de513a8dcae238fb3ef5cd094b51
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>