aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvm/APKBUILD
blob: 871e9e3f30d8a82299207b991b088799555522f5 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gvm
pkgver=7.0.3
pkgrel=1
pkgdesc="A layer between the OpenVAS Scanner and various client applications"
url="http://www.openvas.org/"
arch="all"
license="GPL"
depends="rsync sqlite libxslt sed gnutls-utils"
makedepends="cmake openvas-libraries-dev sqlite-dev
	libxslt-dev doxygen xmltoman perl-sql-translator
	gpgme-dev libgcrypt-dev graphviz"
checkdepends="cppcheck"
subpackages="$pkgname-doc"
replaces="openvas-manager"
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gvmd/releases/download/v$pkgver/openvas-manager-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	$pkgname.logrotate
	000-sys-siglist.patch"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	cmake -DCMAKE_BUILD_TYPE=Release \
		-DSBINDIR=/usr/bin \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSYSCONFDIR=/etc \
		-DLOCALSTATEDIR=/var .
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
	install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
	install -Dm755 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
}

sha512sums="c382b8791a66cc73c1f0da190a11a4addd22afee93abfe96718aba6c5e4488c3ccf33e17cb0aaf8dc376efe2b0264fef4195d5292d97387d2a24d515e3a4d325  gvm-7.0.3.tar.gz
932ba8dd818faf5158472da4d1305c6f6c84834334721aa358e2e9f1d7419cdd6e366f4e9ea9b19412e00010f919dc9155346ed0566eca533e973abe80f3ee67  gvm.initd
5946db68bb5f7b3bf7cbae208a0fea6c9e023631d9fcd610539d2cf7c6290c8f7c2f55e0b4c7011c2263584b9eb42c7eae07db338917e8cc49acb63eb3950e1f  gvm.confd
a86f156ca822b7b9844dc1cb1cb65c0d2bc146fa4dde64fec851b13b3eaa54fd984946b9336a2ffd0efbaf1c2053ab417067519fb18b807c5c1ce66cf1ee4a9b  gvm.logrotate
c5a799b230f2702d2abcaaa8ab7279567c939dfa300a7eec71dd5b2274740fe96d6efde9034f720c8f16fc1e1770be42257b94b25c36968bef3d0694d0241598  000-sys-siglist.patch"