mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
community/ospd-ovaldi: _Now_ uses only python3
This commit is contained in:
parent
e16e498746
commit
024178035c
@ -2,38 +2,28 @@
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=ospd-ovaldi
|
||||
pkgver=1.0.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
_pkgid=2003
|
||||
pkgdesc="OSP server implementation to allow OpenVAS to remotely control ovaldi scanners"
|
||||
url="http://openvas.org/"
|
||||
arch="noarch"
|
||||
license="GPLV2+"
|
||||
depends="python ospd"
|
||||
depends_dev=""
|
||||
makedepends="$depends_dev py-setuptools py-paramiko"
|
||||
depends="python3 ospd"
|
||||
makedepends="python3-dev py3-paramiko"
|
||||
install=""
|
||||
subpackages=""
|
||||
source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz"
|
||||
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
prepare() {
|
||||
local i
|
||||
cd "$_builddir"
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
builddir="$srcdir"/$pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
python setup.py build || return 1
|
||||
cd "$builddir"
|
||||
python3 setup.py build || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user