blob: cf3ccba2830c123989b7b5140b892d47f5828435 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openvas-libraries
pkgver=9.0.1
_pkgid=2420
pkgrel=0
pkgdesc="OpenVAS libraries"
url="http://www.openvas.org/"
arch="all"
license="GPL"
depends="net-snmp"
depends_dev="libpcap-dev libssh-dev hiredis-dev
gnutls-dev util-linux-dev libgcrypt-dev libksba-dev
openldap-dev gpgme-dev net-snmp-dev e2fsprogs-dev"
makedepends="$depends_dev cmake bison glib-dev doxygen xmltoman perl-sql-translator"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz
001-maxhostnamelen.patch
002-timeval.patch"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBDIR=/usr/lib \
-DSYSCONFDIR=/etc \
-DLOCALSTATEDIR=/var .
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir/" install
rmdir "$pkgdir"/var/run
}
sha512sums="d39694a77c368fdb0b2df5310bf4c7b1bf2cba27d2d9ca16b5291640f82e65eca947e21d3cf10d890d9679f48f7321aef95a7826b5827f8a24f04f9f1a759a90 openvas-libraries-9.0.1.tar.gz
1e27ced30f20f0010a04abd17a9a2c4d90e5d159d341018fa1f66b887ef8b24b490297a27b9dbb241dbd88e33c363c06fa0e7345707792411bda4825b770edea 001-maxhostnamelen.patch
2316c4808627da9a2daf0ea971fd9856cd77a62d6376f0d186c18fd7f90be217df2a17ccd2fccc88a583a830c593cb93b32d867ce5f0dd3ecb43cd75fa2b83ea 002-timeval.patch"
|