From b34dc4e847514694d45c07f52a7aa641bd0c7003 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 2 May 2022 15:34:50 +0200 Subject: net-analyzer/ospd-openvas: add 'doc' use flag and missing deps Signed-off-by: Florian Schmaus Suggested-by: Jonas Licht --- .../ospd-openvas/ospd-openvas-21.4.4-r1.ebuild | 60 ++++++++++++++++++++++ .../ospd-openvas/ospd-openvas-21.4.4.ebuild | 46 ----------------- 2 files changed, 60 insertions(+), 46 deletions(-) create mode 100644 net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r1.ebuild delete mode 100644 net-analyzer/ospd-openvas/ospd-openvas-21.4.4.ebuild diff --git a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r1.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r1.ebuild new file mode 100644 index 000000000000..7b1a313ff2e8 --- /dev/null +++ b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +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="doc" + +DEPEND=" + acct-group/gvm + acct-user/gvm + dev-python/defusedxml[${PYTHON_USEDEP}] + dev-python/deprecated[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + >=dev-python/packaging-20.4[${PYTHON_USEDEP}] + dev-python/paramiko[${PYTHON_USEDEP}] + >=dev-python/psutil-5.7.0[${PYTHON_USEDEP}] + >=dev-python/redis-py-3.5.3[${PYTHON_USEDEP}] + !net-analyzer/ospd[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} + >=net-analyzer/openvas-scanner-${PV} +" + +distutils_enable_tests unittest + +python_compile() { + if use doc; then + bash "${S}"/docs/generate || die + HTML_DOCS=( "${S}"/docs/. ) + fi + distutils-r1_python_compile +} + +python_install() { + distutils-r1_python_install + + dodoc "${FILESDIR}"/redis.conf.example + + insinto /etc/openvas + 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" +} diff --git a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-21.4.4.ebuild deleted file mode 100644 index 37b9865771b0..000000000000 --- a/net-analyzer/ospd-openvas/ospd-openvas-21.4.4.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2020-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -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" - -DEPEND=" - acct-group/gvm - acct-user/gvm - >=dev-python/packaging-20.4[${PYTHON_USEDEP}] - >=dev-python/psutil-5.7.0[${PYTHON_USEDEP}] - >=dev-python/redis-py-3.5.3[${PYTHON_USEDEP}] -" -RDEPEND=" - ${DEPEND} - >=net-analyzer/openvas-scanner-${PV} -" - -distutils_enable_tests unittest - -python_install() { - distutils-r1_python_install - - dodoc "${FILESDIR}"/redis.conf.example - - insinto /etc/openvas - 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" -} -- cgit v1.2.3-65-gdbad