mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
59 lines
2 KiB
Text
59 lines
2 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=ospd-openvas
|
|
pkgver=22.4.6
|
|
pkgrel=1
|
|
pkgdesc="ospd-openvas is an OSP server implementation to allow GVM to remotely control an OpenVAS Scanner"
|
|
url="https://github.com/greenbone/ospd-openvas"
|
|
arch="noarch"
|
|
license="AGPL-3.0-or-later"
|
|
pkgusers="gvm"
|
|
pkggroups="gvm"
|
|
depends="
|
|
py3-defusedxml
|
|
py3-deprecated
|
|
py3-gnupg
|
|
py3-lxml
|
|
py3-packaging
|
|
py3-paho-mqtt
|
|
py3-psutil
|
|
py3-redis
|
|
mosquitto
|
|
"
|
|
makedepends="py3-gpep517 py3-installer py3-poetry-core"
|
|
checkdepends="py3-pytest py3-gnupg"
|
|
subpackages="$pkgname-openrc"
|
|
install="$pkgname.post-install"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/ospd-openvas/archive/v$pkgver.tar.gz
|
|
$pkgname.initd
|
|
ospd.conf
|
|
fix-test-unlink.patch
|
|
"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
install -d -o $pkgusers -g $pkggroups "$pkgdir"/run/ospd
|
|
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
install -Dm644 "$srcdir"/ospd.conf "$pkgdir"/etc/openvas/ospd.conf
|
|
}
|
|
|
|
sha512sums="
|
|
9e32b1106755014ef801e1ad39aa9302370fcda4fa4dd9e7f8b6a9f5ce884389b47ab5ae9bf0081e944571bfdc4c4094793ecd0d898f0b19de301d7db171f4bf ospd-openvas-22.4.6.tar.gz
|
|
264aa78a9909011de6800cf2839d2729bde4c2a8689d7a550c573d2d489c39dc224d7dc52d59210518aa1e2a9ae6a94beac978126f573bd87f378b6fa57511cf ospd-openvas.initd
|
|
2f571f41b34599cc0fb772203f69c781f9c6b043d1451fbd0f930d8040a6888dd832578ac8afdba3015db926b51c7ada56dd435e72f9fa4fffb99d2e769d74aa ospd.conf
|
|
d266ad2cfdcf869cdbe8cfd06a0fa354e583cc2dfa4c3aaf2b478b5af3524a2a39d53ae08ac4816881bbca264262258ed08d077dc0e5a344a9ad091cbc1a656e fix-test-unlink.patch
|
|
"
|