aboutsummaryrefslogtreecommitdiffstats
path: root/community/openvas-libraries/APKBUILD
blob: 54c142b889e33c4f45d57c554072a5f2dc4557a4 (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
53
54
55
56
57
58
59
60
61
62
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openvas-libraries
pkgver=8.0.8
_pkgid=2351
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
	000-fortify-source.patch
	001-maxhostnamelen.patch
	002-timeval.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"
	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"
}

md5sums="2833ba49f1a54e8486d45558e2bc8a98  openvas-libraries-8.0.8.tar.gz
f6ad07a47a73494f8ef5ec2a1b13fc8b  000-fortify-source.patch
657f34a6bed98ea77984a68a0496367b  001-maxhostnamelen.patch
35e639c7c1130bcc17b04a44aae6ca1e  002-timeval.patch"
sha256sums="3566c9aa792c28121a605ef4cfe52dfeef01c1d7c79feda9c56996aa4a0ad584  openvas-libraries-8.0.8.tar.gz
ef352e9388817462ead3a0fad9e5476bde4122635aa976517df290fbe23ae2d6  000-fortify-source.patch
97e79f2db202363c3977783caa0d4309f8a3b081c36fa1fcc6eced413eb114ce  001-maxhostnamelen.patch
ad9156414ddb5ce9dabafe3432fa0a8db462758d6b7c71074a0aaa80e7657528  002-timeval.patch"
sha512sums="3575544f034229cbebf882e68bab9f3352fbf42e258184890ba7e2858cf06abdfe79a661612e59efa2f7bd6f350d744d4f12900a829fbc9ffd21ed779b1dfde5  openvas-libraries-8.0.8.tar.gz
eafe7f0c720afcafad5f47efff20ac9081360d50c1574782413e1ee73cc93d9d61ba1c5672d947a993bd03b3354685fe484af77c8a6669fc90496995e673c8e6  000-fortify-source.patch
1e27ced30f20f0010a04abd17a9a2c4d90e5d159d341018fa1f66b887ef8b24b490297a27b9dbb241dbd88e33c363c06fa0e7345707792411bda4825b770edea  001-maxhostnamelen.patch
2316c4808627da9a2daf0ea971fd9856cd77a62d6376f0d186c18fd7f90be217df2a17ccd2fccc88a583a830c593cb93b32d867ce5f0dd3ecb43cd75fa2b83ea  002-timeval.patch"