From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7EF84138359 for ; Tue, 14 Jul 2020 12:57:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9EBD3E0885; Tue, 14 Jul 2020 12:57:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73751E087C for ; Tue, 14 Jul 2020 12:57:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9320134F074 for ; Tue, 14 Jul 2020 12:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17FFF2DC for ; Tue, 14 Jul 2020 12:57:41 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1594731426.8c37d066f8c8f36ea3e762faf789034cb628f892.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ospd-openvas/, net-analyzer/ospd-openvas/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/ospd-openvas/Manifest net-analyzer/ospd-openvas/files/ospd-openvas.initd net-analyzer/ospd-openvas/ospd-openvas-1.0.1.ebuild X-VCS-Directories: net-analyzer/ospd-openvas/ net-analyzer/ospd-openvas/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 8c37d066f8c8f36ea3e762faf789034cb628f892 X-VCS-Branch: master Date: Tue, 14 Jul 2020 12:57:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d26fc5e2-8f3c-46d4-be91-3943ea5ab36e X-Archives-Hash: e8de6b5fd1bb96ab4b3e50a4281e8e02 commit: 8c37d066f8c8f36ea3e762faf789034cb628f892 Author: Jonas Licht fem tu-ilmenau de> AuthorDate: Mon Jun 29 15:31:59 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Jul 14 12:57:06 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c37d066 net-analyzer/ospd-openvas: Version bump to 1.0.1 Closes: https://bugs.gentoo.org/725896 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jonas Licht fem.tu-ilmenau.de> Signed-off-by: Joonas Niilola gentoo.org> net-analyzer/ospd-openvas/Manifest | 1 + net-analyzer/ospd-openvas/files/ospd-openvas.initd | 4 ++ .../ospd-openvas/ospd-openvas-1.0.1.ebuild | 46 ++++++++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/net-analyzer/ospd-openvas/Manifest b/net-analyzer/ospd-openvas/Manifest index 00e7b1d401c..adf747b4375 100644 --- a/net-analyzer/ospd-openvas/Manifest +++ b/net-analyzer/ospd-openvas/Manifest @@ -1 +1,2 @@ DIST ospd-openvas-1.0.0.tar.gz 49725 BLAKE2B 230df2f572f345b9ed398e2af120a2fecee87f9f8d8d3c072ca314960f34f7329fe22b002ba0971ba6dc14cd3ca4543120653f89b3085a0f8a932fbeb6ef2682 SHA512 2b2e4f38843265a018a58b7fbd2fde0449d4f6cf3c5c1b7bec02d8390ab257020304f5be1bf2a77f7d28a04f4d1da611fc9b3066bef370dd686dfb8684fce534 +DIST ospd-openvas-1.0.1.tar.gz 50455 BLAKE2B 06a4cdcc2f51351215fffa5517cb2cae620b9b7ffded738d3c63bda11fa8572fe93e0b5fc1c8c9a1bd27cbea65641b0586c329d1d05a022e1fba79c8782d091c SHA512 bdcdb1a8bc08fc27f1a85846ad944b3764a67c153cd75ffa607f69e0c07f223aa0e0965ee081e2398d4d47fc6faf1fd6fad90e6bc724952a0679de783dd2cc87 diff --git a/net-analyzer/ospd-openvas/files/ospd-openvas.initd b/net-analyzer/ospd-openvas/files/ospd-openvas.initd index ced28d892dc..f8887d8b343 100644 --- a/net-analyzer/ospd-openvas/files/ospd-openvas.initd +++ b/net-analyzer/ospd-openvas/files/ospd-openvas.initd @@ -15,3 +15,7 @@ depend() { after bootmisc need localmount redis } + +start_pre() { + checkpath -d /var/run/ospd +} diff --git a/net-analyzer/ospd-openvas/ospd-openvas-1.0.1.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-1.0.1.ebuild new file mode 100644 index 00000000000..398e7aa14df --- /dev/null +++ b/net-analyzer/ospd-openvas/ospd-openvas-1.0.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +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" +SRC_URI="https://github.com/greenbone/ospd-openvas/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + acct-user/gvm + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/redis-py[${PYTHON_USEDEP}] + net-analyzer/ospd[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} + >=net-analyzer/openvas-scanner-7.0.0" +BDEPEND="" + +distutils_enable_tests unittest + +python_install() { + distutils-r1_python_install + + insinto /etc/openvas + doins "${FILESDIR}"/redis.conf.example + doins "${FILESDIR}"/ospd.conf + + fowners -R gvm:gvm /etc/openvas + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + + systemd_dounit "${FILESDIR}/${PN}.service" +}