blob: f0daf79ecc93c6ae8ce1ab1391f6af77b6c480d4 (
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
48
49
50
51
52
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gvm-libs
pkgver=11.0.0
pkgrel=0
pkgdesc="Greenbone Vulnerability Management Libraries"
url="http://www.openvas.org/"
arch="all"
license="GPL-2.0"
makedepends="cmake bison glib-dev doxygen xmltoman graphviz perl-sql-translator
libpcap-dev libssh-dev hiredis-dev gnutls-dev util-linux-dev
libgcrypt-dev libksba-dev openldap-dev gpgme-dev net-snmp-libs e2fsprogs-dev
clang-dev freeradius-client-dev"
replaces="openvas-libraries"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/$pkgname/archive/v$pkgver.tar.gz
malloc-trim.patch
disable-array-test-exec-not-found.patch"
builddir="$srcdir"/$pkgname-$pkgver
build() {
export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_STATIC=0 \
-DBUILD_SHARED=1 \
-DLIBDIR=/usr/lib \
-DSYSCONFDIR=/etc \
-DLOCALSTATEDIR=/var .
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
rmdir "$pkgdir"/var/run
}
doc() {
default_doc
cd "$builddir"
make doc
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
mv doc/generated/* "$subpkgdir"/usr/share/doc/$pkgname
}
sha512sums="ff981b4ca37b425a8d1f491e90bd1cef4701033886f9fd47dad34540b36fa275d4af8b176e63a07405cc1f29137851b96a6ce80c46ed92f809b089fb0cd928af gvm-libs-11.0.0.tar.gz
ae93ac7ec929325926d785bb58ed9c09f8bdaf518adf09db54bb9a8a4b5e4474c0ab61fc987c91114f2013cbe39868115006b528865fbd027e5b88eca58f1954 malloc-trim.patch
40069d00a160b08d7f42f46721f39af0531e8473c8ec446f3a3b83927e4a77c4a5c5de8a1f0e709b02e7052e2bd5c6ca7f68e3aa0897c1dec6c8936361e427cc disable-array-test-exec-not-found.patch"
|