blob: 970fbfec54813b868407b4bd29252ec6fb55cc01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openvas-cli
pkgver=1.4.4
pkgrel=0
_pkgid=2332
pkgdesc="The OpenVAS Command-Line Interface"
url="http://www.openvas.org"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev openvas-libraries-dev cmake doxygen xmltoman"
install=""
subpackages="$pkgname-doc"
source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz
001-fortify-source.patch"
_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
}
build() {
cd "$_builddir"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var .
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir/" install
}
md5sums="2a47515f388b4866a1ed072f2d9cc9d8 openvas-cli-1.4.4.tar.gz
df30d7613d69e24afa633d50ce7cae7f 001-fortify-source.patch"
sha256sums="1e882037fa4738ec7c3dddd9d72e4db7eaa64c7c91170453b4ed283fa8c92705 openvas-cli-1.4.4.tar.gz
079c24e87f85d5a1bee0d3b36adba09dca30d525fe0a9ad7b84dc46c18c9d4f8 001-fortify-source.patch"
sha512sums="9533beaa7daf38fd57c6c6e934d6d30b5ee5ec0b1f47ca3a131583260e5cbb9794bc3d3ff634f9548999fe62658a906d67875e703e5dfec59df18086cf721d07 openvas-cli-1.4.4.tar.gz
979714b5625b87ec559be6d7520152c713b5455a401e50350b5c342b3769cfa83946a31dd963300cb0b0276fdc28f27ea66854563bec1a744322b6c268202935 001-fortify-source.patch"
|