aboutsummaryrefslogtreecommitdiffstats
path: root/community/openvas-manager/APKBUILD
blob: 146cda7b85ff1550f08244f0281f1e49213040d4 (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
63
64
65
66
67
68
69
70
71
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openvas-manager
_pkgname=openvasmd
pkgver=6.0.8
_pkgid=2295
pkgrel=3
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"
depends_dev=""
makedepends="$depends_dev cmake openvas-libraries-dev sqlite-dev 
	libxslt-dev doxygen xmltoman perl-sql-translator"
install=""
subpackages="$pkgname-doc"
source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-${pkgver}.tar.gz
	$_pkgname.initd
	$_pkgname.confd
	$_pkgname.logrotate
	001-sys-siglist.patch
	002-fortify-source.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"
	cmake -DCMAKE_BUILD_TYPE=Release \
		-DSBINDIR=/usr/bin \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSYSCONFDIR=/etc \
		-DLOCALSTATEDIR=/var .
	make || return 1
}

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"

}

md5sums="8a282a5ddaac91f5a8190c4a7ba72e51  openvas-manager-6.0.8.tar.gz
1daea41f920aac1d675bf4bb8af05063  openvasmd.initd
8534212d73d54166afd624bbe3964cc7  openvasmd.confd
f57ae79654fb9a6249ce883ebb393d3d  openvasmd.logrotate
0113d65199172756cb797b4bb30d4007  001-sys-siglist.patch
bec2936ebf70209835b963ddbebf3b31  002-fortify-source.patch"
sha256sums="498f72a047841d55102ed50a16b0a096f66a5c951010cfaa3241689d693c11d7  openvas-manager-6.0.8.tar.gz
3611840794e1c08082417f776cb124171707cde1699c0c3ea737e178fe40ede7  openvasmd.initd
6ffaacaca5c58b54b3aa34a262172994dc6c6e286d036cd9aeecf3dda215fdb9  openvasmd.confd
8dce4905097d7e622a87d661903193480806968c55f085bd4ad167ea3864f84d  openvasmd.logrotate
8c13641fc26660fe2f600fc9a4e7d5901e0892b6195ad401c92edec75e9f402d  001-sys-siglist.patch
78919051580bb1077f6061d9285f9343d155ee3c955e2a440ef067f58efe1a4b  002-fortify-source.patch"
sha512sums="f01ea7f83796236de0ee4c9499564bef257ad19df56c9a2784bf306e98d5294f717d2a9e88ecf613f1f530ce570c21eee94532e87b6173a0339f6f8c5c8bd04b  openvas-manager-6.0.8.tar.gz
932ba8dd818faf5158472da4d1305c6f6c84834334721aa358e2e9f1d7419cdd6e366f4e9ea9b19412e00010f919dc9155346ed0566eca533e973abe80f3ee67  openvasmd.initd
5946db68bb5f7b3bf7cbae208a0fea6c9e023631d9fcd610539d2cf7c6290c8f7c2f55e0b4c7011c2263584b9eb42c7eae07db338917e8cc49acb63eb3950e1f  openvasmd.confd
a86f156ca822b7b9844dc1cb1cb65c0d2bc146fa4dde64fec851b13b3eaa54fd984946b9336a2ffd0efbaf1c2053ab417067519fb18b807c5c1ce66cf1ee4a9b  openvasmd.logrotate
bb68fb95e48cf6b0602023d566b05fb675b55a703b0ecf616d0ff42fd7fc023396d2ef8ea089e074739e980a086d9911894050c23c03c842e5c7393be6d85639  001-sys-siglist.patch
a3ab3773f339efa98abdba77aaf383f6c1d76c7f15557ac6f8bc80199158066d6ac3a7981e1af4ac4e397b66acb48c1cba125848b30e935829a75a5a7e8322dc  002-fortify-source.patch"