# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=greenbone-security-assistant _pkgname=gsad pkgver=8.0.0 pkgrel=1 pkgdesc="Greenbone Security Assistant (gsa) - OpenVAS web frontend" url="http://www.openvas.org/" arch="all" license="GPL-2.0" depends="wget" makedepends="cmake doxygen xmltoman graphviz gvm-libs-dev libxslt-dev libmicrohttpd-dev py2-polib libgcrypt-dev nodejs-current npm yarn clang-dev" checkdepends="cppcheck" subpackages="$pkgname-doc $pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gsa/archive/v${pkgver}.tar.gz $_pkgname.initd $_pkgname.confd $_pkgname.logrotate cmakelist.patch sys-siglist.patch musl-stack-size.patch" builddir="$srcdir/gsa-$pkgver" build() { cd "$builddir" cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONFDIR=/etc \ -DSBINDIR=/usr/sbin \ -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="b3bc464548d6ecef8d515e69f9824d064b90c3da677f262fb040b2750b2c15cd14dfe2c7db3f830ce9d9d8bfb7d1591cc78c1c860d7b8a3417af03c78f99813f greenbone-security-assistant-8.0.0.tar.gz 0734d3b7dc77b8de56dec63e677aefad14dcb718b5f3081f98738397c267d4fb36bbb167085213bc1d02d9261e4913f43f974f65226c459f9dfed0d970cf9b85 gsad.initd aea96cef16ca7a63570c2d94a1fc7ef27d4163c28e1d729fd11821295f88a96864add0146d407e7b6de296dd6ca6f2c97d72097dd4ffe786b575f128abdbb1bf gsad.confd 0d459084f95e00dfb06912b9d89af011fac117a32687ffd3da3887c24e80c074b681c0d87532a4a7511e42c540f8d8b2ceaa04208fff531b94047a08decddd0f gsad.logrotate 6752bb6834811fc7c1259d2c8a0ae5f25a01de881008f6f6635b1f7a43672b5c1862de5b3591f81d7a2f22258614b71bb6ab588a3930648d9d74ef8a75d28c92 cmakelist.patch 1fd6585bc5c5131d19d5d89ddc56b683d5ab1b28793059f5b147ad05eb6330b69d590caa2f12afce6da20b1676d8cdd26d90e51d165e94b308643ec7d2525015 sys-siglist.patch 5083162dd8f324e102731f691f575adb791861d13d857e37bf0e2aa39b875facae8e7b1ad37a0d60860495603df90ef785cab13685c4405d14e06aca1d8bfe5e musl-stack-size.patch"