From 59edca00e8aff3097a4b21f1cb2f932269dc5c39 Mon Sep 17 00:00:00 2001 From: Giuseppe Foti Date: Wed, 15 Nov 2023 07:23:22 +0100 Subject: net-analyzer/ospd-openvas: add 22.6.2, drop 22.6.0-r1 Signed-off-by: Giuseppe Foti Closes: https://github.com/gentoo/gentoo/pull/33831 Signed-off-by: Florian Schmaus --- net-analyzer/ospd-openvas/Manifest | 2 +- .../ospd-openvas/ospd-openvas-22.6.0-r1.ebuild | 83 --------------------- .../ospd-openvas/ospd-openvas-22.6.2.ebuild | 86 ++++++++++++++++++++++ 3 files changed, 87 insertions(+), 84 deletions(-) delete mode 100644 net-analyzer/ospd-openvas/ospd-openvas-22.6.0-r1.ebuild create mode 100644 net-analyzer/ospd-openvas/ospd-openvas-22.6.2.ebuild (limited to 'net-analyzer/ospd-openvas') diff --git a/net-analyzer/ospd-openvas/Manifest b/net-analyzer/ospd-openvas/Manifest index 5658746f717d..bdac8e5c24e7 100644 --- a/net-analyzer/ospd-openvas/Manifest +++ b/net-analyzer/ospd-openvas/Manifest @@ -1 +1 @@ -DIST ospd-openvas-22.6.0.tar.gz 248449 BLAKE2B 83f4fc370e23249f62e358c9314341c17b39d618407c7f176b36981675707c749aacf07a1daf9e57ebd8a4673cb17b22bf2e63f7e1c3f55e2df57deab4986109 SHA512 f98e59d5898ae75bf6fbadfbcf57bb1c810143bba88bc4ffb5bc30d3780638577f73ffb265e80beaa9f3e67c6b7032264ca2c0375698c886a2f3ad101ac4310a +DIST ospd-openvas-22.6.2.tar.gz 246360 BLAKE2B 22c95cafdc6c223465805f30b522d357c28b9da3df74743cdee3cc608215d730da9101c37d2498e9680f506ed1301e12d9af3c8bab1c2a1847c034c7d6c10ca8 SHA512 a405779b9ea89b1300122c39553f8f9bf079b8610dc61ec6244affa9c9273725234a4a556df05e3013045681678646226cf12af66f051def8b042b84bb639ffe diff --git a/net-analyzer/ospd-openvas/ospd-openvas-22.6.0-r1.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-22.6.0-r1.ebuild deleted file mode 100644 index 5266d19a5344..000000000000 --- a/net-analyzer/ospd-openvas/ospd-openvas-22.6.0-r1.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) -DISTUTILS_USE_PEP517=poetry -inherit distutils-r1 systemd - -DESCRIPTION="This is an OSP server implementation to allow GVM to remotely control OpenVAS" -HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/ospd-openvas" -SRC_URI="https://github.com/greenbone/ospd-openvas/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="AGPL-3+ GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc +notus" - -DEPEND=" - acct-user/gvm - >=dev-python/defusedxml-0.6[${PYTHON_USEDEP}] - >=dev-python/deprecated-1.2.10[${PYTHON_USEDEP}] - >=dev-python/lxml-4.5.2[${PYTHON_USEDEP}] - >=dev-python/packaging-20.4[${PYTHON_USEDEP}] - >=dev-python/psutil-5.5.1[${PYTHON_USEDEP}] - >=dev-python/redis-4.5.0[${PYTHON_USEDEP}] - >=dev-python/python-gnupg-0.5.0[${PYTHON_USEDEP}] - >=dev-python/paho-mqtt-1.5.1[${PYTHON_USEDEP}] - >=dev-python/python-gnupg-0.4.8[${PYTHON_USEDEP}] - net-libs/paho-mqtt-c - app-misc/mosquitto -" -RDEPEND=" - ${DEPEND} - app-admin/sudo - >=net-analyzer/openvas-scanner-${PV} - notus? ( >=net-analyzer/notus-scanner-22.4 ) -" - -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 - - insinto /etc/gvm - doins config/${PN}.conf - if ! use prefix; then - fowners -R gvm:gvm /etc/gvm - fi - - newinitd "${FILESDIR}/${PN}-22.initd" "${PN}" - newconfd "${FILESDIR}/${PN}-22.confd" "${PN}" - - systemd_dounit config/${PN}.service - - if use notus; then - systemd_install_serviced "${FILESDIR}/ospd-openvas.service_notus.conf" \ - ${PN}.service - else - systemd_install_serviced "${FILESDIR}/ospd-openvas.service.conf" \ - ${PN}.service - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/ospd-openvas.logrotate" ospd-openvas - - # OSPD OpenVAS attempts to call openvas via sudo as network security - # scanning often requires priviliged operations. - insinto /etc/sudoers.d - newins - openvas <<-EOF - gvm ALL = NOPASSWD: /usr/bin/openvas -EOF - fperms 0750 /etc/sudoers.d - fperms 0440 /etc/sudoers.d/openvas -} diff --git a/net-analyzer/ospd-openvas/ospd-openvas-22.6.2.ebuild b/net-analyzer/ospd-openvas/ospd-openvas-22.6.2.ebuild new file mode 100644 index 000000000000..80d1b420e22e --- /dev/null +++ b/net-analyzer/ospd-openvas/ospd-openvas-22.6.2.ebuild @@ -0,0 +1,86 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=poetry +inherit distutils-r1 systemd + +DESCRIPTION="This is an OSP server implementation to allow GVM to remotely control OpenVAS" +HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/ospd-openvas" +SRC_URI="https://github.com/greenbone/ospd-openvas/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3+ GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +notus" + +DEPEND=" + acct-user/gvm + >=dev-python/defusedxml-0.6[${PYTHON_USEDEP}] + =dev-python/deprecated-1.2.10[${PYTHON_USEDEP}] + >=dev-python/lxml-4.5.2[${PYTHON_USEDEP}] + >=dev-python/packaging-20.4[${PYTHON_USEDEP}] + =dev-python/psutil-5.5.1[${PYTHON_USEDEP}] + >=dev-python/redis-4.5.0[${PYTHON_USEDEP}] + >=dev-python/python-gnupg-0.4.8[${PYTHON_USEDEP}] + =dev-python/paho-mqtt-1.5.1[${PYTHON_USEDEP}] + >=dev-python/python-gnupg-0.4.8[${PYTHON_USEDEP}] + net-libs/paho-mqtt-c + app-misc/mosquitto +" +RDEPEND=" + ${DEPEND} + app-admin/sudo + >=net-analyzer/openvas-scanner-22.4 + notus? ( >=net-analyzer/notus-scanner-22.4 ) +" + +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 + + insinto /etc/gvm + doins config/${PN}.conf + if ! use prefix; then + fowners -R gvm:gvm /etc/gvm + fi + + newinitd "${FILESDIR}/${PN}-22.initd" "${PN}" + newconfd "${FILESDIR}/${PN}-22.confd" "${PN}" + + systemd_dounit config/${PN}.service + + if use notus; then + systemd_install_serviced "${FILESDIR}/ospd-openvas.service_notus.conf" \ + ${PN}.service + else + systemd_install_serviced "${FILESDIR}/ospd-openvas.service.conf" \ + ${PN}.service + fi + + insinto /etc/logrotate.d + newins "${FILESDIR}/ospd-openvas.logrotate" ospd-openvas + + # OSPD OpenVAS attempts to call openvas via sudo as network security + # scanning often requires priviliged operations. + insinto /etc/sudoers.d + newins - openvas <<-EOF + gvm ALL = NOPASSWD: /usr/bin/openvas +EOF + fperms 0750 /etc/sudoers.d + fperms 0440 /etc/sudoers.d/openvas +} -- cgit v1.2.3-65-gdbad