gvm: add missing deps, wip

This commit is contained in:
blshkv 2019-10-14 13:41:06 +08:00
parent 5703abedd5
commit 396e909e47
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
9 changed files with 65 additions and 8 deletions

View file

@ -0,0 +1 @@
DIST python-gvm-1.0.0.tar.gz 95325 BLAKE2B d119f89f1223fe581b1a8c1f20abd5e8beade1dca70368a7ab5cc5a24a5eb21d2de3f23935850d0221980ec8c99bc1c41aeb33d95097c616d177f6856826d9b6 SHA512 198f9bd510767810c3891c0d53dad62d5b368324227173d78226601e77e734bf9590d474b47ac4edfeccb7f93e81d96ed639c3be3475f150c15c34afad29d50f

View file

@ -0,0 +1,22 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
inherit distutils-r1
DESCRIPTION="Library to communicate with remote servers over GMP or OSP"
HOMEPAGE="https://github.com/greenbone/python-gvm"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~mips ~x86"
LICENSE="MIT"
SLOT=0
IUSE=""
RDEPEND="${PYTHON_DEPS}
dev-python/paramiko[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/defusedxml[${PYTHON_USEDEP}]"

View file

@ -11,16 +11,11 @@ HOMEPAGE="https://www.greenbone.net/en/"
SRC_URI="https://github.com/greenbone/gvm-tools/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/paramiko[${PYTHON_USEDEP}]
dev-python/pythondialog:0[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
RDEPEND="dev-python/python-gvm[${PYTHON_USEDEP}]
!net-analyzer/openvas-cli"
DEPEND="

View file

@ -18,6 +18,7 @@ RDEPEND="
>=net-analyzer/gvm-libs-11.0.0[extras?,ldap?,radius?]
>=net-analyzer/gvmd-9.0.0[extras?,postgres?,sqlite?]
>=net-analyzer/openvas-scanner-7.0.0[cron?,extras?]
>=net-analyzer/ospd-openvas-1.0.0
!net-analyzer/openvas
cli? ( >=net-analyzer/gvm-tools-2.0.0 )
gsa? ( ~net-analyzer/greenbone-security-assistant-8.0.1[extras?] )

View file

@ -51,6 +51,8 @@ PATCHES=(
)
src_prepare() {
# sed -i -e "s|/tmp/ospd.sock|/var/run/ospd/ospd.sock|g" "$S"/src/manage_sql.c || die
cmake-utils_src_prepare
# QA-Fix | Use correct FHS/Gentoo policy paths for 8.0.1
sed -i -e "s*share/doc/gvm/html/*share/doc/gvmd-${PV}/html/*g" "$S"/doc/CMakeLists.txt || die

View file

@ -0,0 +1 @@
DIST ospd-openvas-1.0.0.tar.gz 49698 BLAKE2B 3b15c70e111eded1d2f57de23144b7b811a30717ad3a4798b4c64e969f192401c2dc3ad59d8ebbeef4976c07206043070c79e3a689084f9c82137613421e9278 SHA512 bb99afd6653229dc7607daa1ef6c838719d1ac6ccea4f8a64211f88adc02431e2c16d8d6919170ee166b9330047e59c12e111130a604c02f1c16b63b8d9a301f

View file

@ -0,0 +1,32 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
inherit distutils-r1
DESCRIPTION="OSP server implementation to allow GVM to remotely control an OpenVAS Scanner"
HOMEPAGE="https://www.greenbone.net/en/"
SRC_URI="https://github.com/greenbone/ospd-openvas/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
>=net-analyzer/ospd-2.0
>=dev-python/redis-py-3.0.1[${PYTHON_USEDEP}]
dev-python/psutil"
DEPEND="
${RDEPEND}"
#python_compile() {
# if use extras; then
# bash "${S}"/doc/generate || die
# HTML_DOCS=( "${S}"/doc/. )
# fi
# distutils-r1_python_compile
#}

View file

@ -395,3 +395,6 @@ dev-python/python-cas-haiwen
dev-python/social-auth-core
dev-python/django-webpack-loader
dev-python/django-ranged-response
#required by gvm-tools / openvas
dev-python/python-gvm

View file

@ -154,9 +154,9 @@ net-analyzer/sitadel
=net-analyzer/gvm-libs-11*
=net-analyzer/gvmd-9*
=net-analyzer/openvas-scanner-7*
net-analyzer/ospd-openvas
net-analyzer/ospd
net-analyzer/gvm-tools
#ospd-openvas-1*
~dev-perl/SQL-Translator-0.110.230
~dev-perl/Package-Variant-1.3.2