forked from pool/python-ospd-openvas
Accepting request 825841 from home:mnhauke:OpenVAS
Intial package for python-ospd-openvas OBS-URL: https://build.opensuse.org/request/show/825841 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ospd-openvas?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
ospd-openvas-20.8.0.tar.gz
Normal file
3
ospd-openvas-20.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a5fea29b2261435b918da414c377dfb9f0d23aee5f0fb482709d1e52587a36d7
|
||||||
|
size 81897
|
17
ospd-openvas-20.8.0.tar.gz.sig
Normal file
17
ospd-openvas-20.8.0.tar.gz.sig
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v1
|
||||||
|
|
||||||
|
iQIcBAABAgAGBQJfMpawAAoJEJgj+qYO0eWA5ZUQAIv5LPjsfXc7Atay7QKEovLy
|
||||||
|
DXsrWa+t4DjD4jc8TlmsP+vt4Jmh3o04wM7+/Ytecd1JSTEz8KkWTNrs1n1HSaZK
|
||||||
|
R6itAl5HF68qANa02W/I3env5/RzVbgwBp2+d8638ndHbGkAK4+FuNVTCe9SR0ek
|
||||||
|
XJhv8DtB6wp8u8EkZJgXjupp6AMeBj7pzzq4Di+taha1q6q4fkb5NtfOmWx8YycR
|
||||||
|
TLGC997kTbWA0CeepWEzIGKAT3Q6qtQe/DGtinREGOSIoC1K6pfiP4SQSRxePTpZ
|
||||||
|
9jKq0WZ5T4CPWIyteEPSBW6WX2POfDkxdEw6nP7hM8IyhxItpk5/9VlkCf06trC5
|
||||||
|
If1UGeAFoS496p7MxcSNgjVtAZXQc6Mag34J7QemY25WCCj6hMD2Rl4yUogmtsJ3
|
||||||
|
PZkQdemFpEoZQu2CJFSX5exf4xoqQdPtU5wPm9ipkQWqaqw0fCNvbanEnLOIVtP1
|
||||||
|
vXeeKbePFmFuvs15uo31m61lOrK8zWZ7QGtmi8YQL8BKPkZoGskMKJx5g0mk5GXr
|
||||||
|
/8CdXzPJO4LdmresnUTKz6JwTfMDsFhaPBiTR+1cUHLBPLinadlI7xD6C571ajuB
|
||||||
|
KvnzzqlWl1kXpdrL4+tjD294Tp5Sdw47KYcdP9WupKVgZE3Ebqv4HGqUjqDlkIG4
|
||||||
|
fhQQcPxZIYsRQHEgZSKJ
|
||||||
|
=VwqK
|
||||||
|
-----END PGP SIGNATURE-----
|
29
ospd-openvas.keyring
Normal file
29
ospd-openvas.keyring
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBFmwBV8BEAC12vjOMsOZnK3zaBI+7hImmpkmiuwQ33ys/1Yhk99wcZw3Lxap
|
||||||
|
uesRgdZTFr93E0oiN7PzKgPJcFT9Wz7O2h1OpgPWJnL6vp3usMxGLS0gSUj/pgUI
|
||||||
|
qvlKtnaV1+2qMtsunnEW3QGN/m1HmQtaPBFWBAJIP7NNqBmrQNuRyLslVWSpRgMY
|
||||||
|
dvIXivKLVDV4D7Z+QGU+140mYaIRfKagzfGzcke/3IC9ppUATA0R1r0l4rmyD6bF
|
||||||
|
v9JnS41hSL4HZCH9LJaaPN9k7fRpSmUHyn05+2iW6UIz1aona6Y3nRvQ2XZxsg7u
|
||||||
|
6mEjEou9TD3ayVt/uewEQ2mHxr07YHYq/jZFHXTRz5R8fPwUu1NpSL+zI6CFf6cx
|
||||||
|
Et4bcRLeW7CD4/7UcUXGp+SECvj4/IeVkZABjxpC9ikLX2FkgJD1G6/gt3eEjmEF
|
||||||
|
2g8l9tYDIJqclm1gpQk6TMRuw43Rqf1Vhd9USGBXK2lTo6ZU3LYUQzz2ycYmF8Ut
|
||||||
|
x693sUpNCCWgEV3k21O8lDeUbrtrBdEcOYbbG73mV4UjLKxM0dJ8V8j0CDRprzD8
|
||||||
|
kFeelLFq/j6iglHMVXhQQX5nTc0ieNlxOj2O7HFu1yR/B1CIBT8H0ab2aJjEsZPh
|
||||||
|
hq67V5EJ4c1l3hOJIEyNdkG90uEHGKFABlQ9TaVjCDlGI5LKmNYb+bq39QARAQAB
|
||||||
|
tCZHcmVlbmJvbmUgQ29tbXVuaXR5IEZlZWQgaW50ZWdyaXR5IGtleYkCTgQTAQgA
|
||||||
|
OBYhBIrkvkKbYKWbMRwuc5gj+qYO0eWABQJZsAVfAhsDBQsJCAcCBhUICQoLAgQW
|
||||||
|
AgMBAh4BAheAAAoJEJgj+qYO0eWAQ50P/jE0Cr0BnPiOqFpipC63pR4MDhTDlQhn
|
||||||
|
hsvkzS66zcVT48VSyGzRD2ISotJPIFp20dL/I6NkLZHOxqaVLQ9D8RjgdNOg7XL5
|
||||||
|
51YmKCKDSu8BRYNFj0gwQqufQokIZmsRKdG3AxpzN9eZ4EuuhnLZTKv/De1SplnY
|
||||||
|
3OGagDTZIYQAbN/arg2SqTKbXBLVbZcn2jz/szo6PeMW9eSCWY9YtIyfln1trb9W
|
||||||
|
uyc2fHZ1RpcvBGH+Pw8ePG1GUA+MKNdrrHcRBbtsCgRynQNwPdp7aTXwItJ586KV
|
||||||
|
S3uAPk+n5e8aP4PnDztDhRJDnuA2UWY24dXbUqfMVayN+kbB92TMDFBpq6x6ULUl
|
||||||
|
UnjffKk+XoLzr/LjqHEkaPOZ2OK9SjXjd8RPARazHk4hYveSzxCM+OCQBQNvlyVr
|
||||||
|
JLGOtYCVah4rDsiCiDp/mrNwT5NqVaK8yABk/QlE2EakssXxfliAkse6/up1ymLm
|
||||||
|
nuG0KyrrSztoS5YGzyn+ZX9tCZ2L8QDFhjpmkb+1JfDBdAlwdXyBNl0XqKfEp6IU
|
||||||
|
2T+z+0nas6NTqwLJ/QVH5Hn9nKTmfjaFQSsPhvUeN2jatNmgle8UFihBUrw7f0DX
|
||||||
|
xMbJc0howgAT0zg+T3FHINZfmjChlAHbd3B/1crJAeIHnEyVtrcV/dNrc4qXEKNs
|
||||||
|
hrwIQ1cRTJcY
|
||||||
|
=+bJs
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
57
python-ospd-openvas.changes
Normal file
57
python-ospd-openvas.changes
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 11 16:45:43 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- Update to version 20.8.0
|
||||||
|
Added
|
||||||
|
* Add solution method to solution of vt object.
|
||||||
|
* Add typing to daemon.py, nvticache.py and db.py.
|
||||||
|
* Add support for alive test settings.
|
||||||
|
* Add missing scan preferences expand_vhosts and
|
||||||
|
test_empty_vhost.
|
||||||
|
* Set reverse lookup options.
|
||||||
|
* Check if the amount of vts in redis is coherent.
|
||||||
|
* Add support for test_alive_hosts_only feature of openvas.
|
||||||
|
* Use lock file during feed update to avoid corrupted cache.
|
||||||
|
* Add details parameter to get_vt_iterator().
|
||||||
|
* Add pontos as dev dependency for managing the version
|
||||||
|
information in ospd-openvas.
|
||||||
|
* Pass store directory to OSPDaemon init.
|
||||||
|
* Add URI field to results for file path or webservice URL.
|
||||||
|
* Add element to OSPD_PARAMS entries to indicate visibility
|
||||||
|
for client.
|
||||||
|
Changed
|
||||||
|
* Less strict checks for the nvti cache version
|
||||||
|
* Set self.vts to None if there is a pending feed.
|
||||||
|
* Use the new method clear() from Vts class.
|
||||||
|
* Start server before initialize the vts.
|
||||||
|
* Get vts metadata from redis and reduce stored data in cache.
|
||||||
|
* Update license to AGPL-3.0+
|
||||||
|
* Replaced pipenv with poetry for dependency management.
|
||||||
|
poetry install works a bit different then pipenv install.
|
||||||
|
It installs dev packages by default and also ospd in
|
||||||
|
editable mode. This means after running poetry install ospd will
|
||||||
|
directly be importable in the virtual python environment.
|
||||||
|
* Don't send host details and log messages to the client when
|
||||||
|
Boreas is enabled.
|
||||||
|
* Progress bar calculation do not takes in account dead hosts
|
||||||
|
* Host progress is stored as integer.
|
||||||
|
* Use flock for the feed lock file.
|
||||||
|
* Improvements for fetching results from redis.
|
||||||
|
* Add RW permission to the group on the feed lock file.
|
||||||
|
Fixed
|
||||||
|
* Check vt_aux for None before trying to access it.
|
||||||
|
* Fix snmp credentials.
|
||||||
|
* Escape script name before adding the result in an xml entity.
|
||||||
|
* Fix handling of denied hosts.
|
||||||
|
* Fix handling of special chars in credentials.
|
||||||
|
* Fix type and default value of optimize_test preference.
|
||||||
|
Removed
|
||||||
|
* Remove use_mac_addr, vhost_ip and vhost scan preferences.
|
||||||
|
* Handling of finished host for resume task.
|
||||||
|
* Don't release vts explicitly.
|
||||||
|
* Drop handling of network_scan.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 11 16:45:32 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- Initial package, version 1.0.1
|
29
python-ospd-openvas.keyring
Normal file
29
python-ospd-openvas.keyring
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBFmwBV8BEAC12vjOMsOZnK3zaBI+7hImmpkmiuwQ33ys/1Yhk99wcZw3Lxap
|
||||||
|
uesRgdZTFr93E0oiN7PzKgPJcFT9Wz7O2h1OpgPWJnL6vp3usMxGLS0gSUj/pgUI
|
||||||
|
qvlKtnaV1+2qMtsunnEW3QGN/m1HmQtaPBFWBAJIP7NNqBmrQNuRyLslVWSpRgMY
|
||||||
|
dvIXivKLVDV4D7Z+QGU+140mYaIRfKagzfGzcke/3IC9ppUATA0R1r0l4rmyD6bF
|
||||||
|
v9JnS41hSL4HZCH9LJaaPN9k7fRpSmUHyn05+2iW6UIz1aona6Y3nRvQ2XZxsg7u
|
||||||
|
6mEjEou9TD3ayVt/uewEQ2mHxr07YHYq/jZFHXTRz5R8fPwUu1NpSL+zI6CFf6cx
|
||||||
|
Et4bcRLeW7CD4/7UcUXGp+SECvj4/IeVkZABjxpC9ikLX2FkgJD1G6/gt3eEjmEF
|
||||||
|
2g8l9tYDIJqclm1gpQk6TMRuw43Rqf1Vhd9USGBXK2lTo6ZU3LYUQzz2ycYmF8Ut
|
||||||
|
x693sUpNCCWgEV3k21O8lDeUbrtrBdEcOYbbG73mV4UjLKxM0dJ8V8j0CDRprzD8
|
||||||
|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nEyVtrcV/dNrc4qXEKNs
|
||||||
|
hrwIQ1cRTJcY
|
||||||
|
=+bJs
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
79
python-ospd-openvas.spec
Normal file
79
python-ospd-openvas.spec
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-ospd-openvas
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
|
Name: python-ospd-openvas
|
||||||
|
Version: 20.8.0
|
||||||
|
Release: 0
|
||||||
|
License: AGPL-3.0-or-later
|
||||||
|
Summary: An OSP server implementation
|
||||||
|
Url: https://github.com/greenbone/ospd-openvas
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: https://github.com/greenbone/ospd-openvas/archive/v%{version}.tar.gz#/ospd-openvas-%{version}.tar.gz
|
||||||
|
Source98: https://github.com/greenbone/ospd-openvas/releases/download/v%{version}/ospd-openvas-%{version}.tar.gz.sig
|
||||||
|
Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/ospd-openvas.keyring
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module ospd >= 2.0.0}
|
||||||
|
BuildRequires: %{python_module packaging}
|
||||||
|
BuildRequires: %{python_module psutil}
|
||||||
|
BuildRequires: %{python_module redis >= 3.0.1}
|
||||||
|
BuildRequires: %{python_module Deprecated}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires: python-ospd >= 2.0.0
|
||||||
|
Requires: python-packaging
|
||||||
|
Requires: python-psutil
|
||||||
|
Requires: python-redis >= 3.0.1
|
||||||
|
BuildArch: noarch
|
||||||
|
Provides: ospd-openvas
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
An OSP server implementation to allow GVM to remotely control OpenVAS.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n ospd-openvas-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/ospd-openvas
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative ospd-openvas
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative ospd-openvas
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license COPYING
|
||||||
|
%doc CHANGELOG.md README.md
|
||||||
|
%python_alternative %{_bindir}/ospd-openvas
|
||||||
|
%{python_sitelib}/ospd_openvas*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
Reference in New Issue
Block a user