blob: 1a583ddecbb6a28f30692e2351e906f6a10ab669 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gvm-libs
pkgver=10.0.1
pkgrel=1
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"
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"
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="961570e8fa8f89f0b462991bff1bf4e512ed6419cff6871c7432899847fb9edcc9f0adb7c280d12ee69fbb5c8e306c9e4366e2cbbb05fc3bae06795dcfb42206 gvm-libs-10.0.1.tar.gz
ae93ac7ec929325926d785bb58ed9c09f8bdaf518adf09db54bb9a8a4b5e4474c0ab61fc987c91114f2013cbe39868115006b528865fbd027e5b88eca58f1954 malloc-trim.patch"
|