aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvmd/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-10-21 16:30:27 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-10-21 20:01:23 +0000
commit9e8139a9333ca4fa0b3d42e4854cb4c526a185e6 (patch)
tree44b9c43d49ca2af1f08d5870cc9beb4638f88906 /community/gvmd/APKBUILD
parent361a773271accab3fb59cc5e13cf6c81f1cdcda4 (diff)
downloadaports-9e8139a9333ca4fa0b3d42e4854cb4c526a185e6.tar.bz2
aports-9e8139a9333ca4fa0b3d42e4854cb4c526a185e6.tar.xz
community/gvmd: fix to make gvmd work again
Diffstat (limited to 'community/gvmd/APKBUILD')
-rw-r--r--community/gvmd/APKBUILD70
1 files changed, 55 insertions, 15 deletions
diff --git a/community/gvmd/APKBUILD b/community/gvmd/APKBUILD
index 6b94bac328..522954dd0b 100644
--- a/community/gvmd/APKBUILD
+++ b/community/gvmd/APKBUILD
@@ -2,43 +2,60 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gvmd
pkgver=9.0.0
-pkgrel=0
+pkgrel=1
pkgdesc="Greenbone Vulnerability Manager"
url="http://www.openvas.org/"
arch="all"
license="GPL-2.0"
-depends="rsync sqlite libxslt sed gnutls-utils"
-makedepends="cmake gvm-libs-dev sqlite-dev clang-dev
- libxslt-dev doxygen xmltoman perl-sql-translator glib-dev
- gpgme-dev libgcrypt-dev graphviz libical-dev postgresql-dev"
+pkgusers="gvm"
+pkggroups="gvm"
+depends="rsync postgresql postgresql-contrib libxslt sed gnutls-utils gvm-libs"
+makedepends="cmake gvm-libs-dev clang-dev glib-dev
+ gpgme-dev libgcrypt-dev graphviz libical-dev
+ postgresql-dev gnutls-dev
+ doxygen libxslt xmltoman perl-sql-translator"
checkdepends="cppcheck"
subpackages="$pkgname-doc $pkgname-openrc"
-replaces="gvm"
source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gvmd/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
$pkgname.logrotate
- greenbone-nvt-sync.conf
+
greenbone-certdata-sync.conf
greenbone-scapdata-sync.conf
+ greenbone-nvt-sync.conf
+
added-missing-includes.patch
- sys-siglist.patch"
-builddir="$srcdir"/$pkgname-$pkgver
+ bin-openvas-change.patch
+ fix-alpine-sql-syntax.patch
+ sys-siglist.patch
+ fix-gvm-port-update-name-and-backend.patch
+ lockfile.patch"
+
+prepare() {
+ default_prepare
+ mkdir build
+}
build() {
+ cd "$builddir"/build
cmake -DCMAKE_BUILD_TYPE=Release \
-DSBINDIR=/usr/bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc \
- -DLOCALSTATEDIR=/var .
+ -DLOCALSTATEDIR=/var \
+ -DGVM_RUN_DIR=/var/run/gvmd \
+ ..
make
}
check() {
+ cd "$builddir"/build
make check
}
package() {
+ cd "$builddir"/build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
@@ -46,14 +63,37 @@ package() {
for f in nvt certdata scapdata; do
install -Dm755 "$srcdir"/greenbone-$f-sync.conf "$pkgdir"/etc/gvm/greenbone-$f-sync.conf
done
+ mkdir -p "$pkgdir"/var/log/gvm
+ mkdir -p "$pkgdir"/var/lib/gvm
+ mkdir -p "$pkgdir"/var/lib/openvas
+ mkdir -p "$pkgdir"/var/run/gvmd
+ chown -R $pkgusers:$pkggroups "$pkgdir"/var/log/gvm/
+ chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/gvm/
+ chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/openvas
+ chown -R $pkgusers:$pkggroups "$pkgdir"/var/run/gvmd
+
+}
+
+doc() {
+ default_doc
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
+ cat >"$subpkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
+ ** Add texlive to generate PDF reports with
+ ** apk add texlive
+EOF
}
+
sha512sums="ffb6a61eefd3cf6514fea4030275d24f0f5c23514498a4d828c5f5ffc5344bf20452cbc7a09cd750adc237c036f30f002036c94292822d50cd9cba4b5db07458 gvmd-9.0.0.tar.gz
-41e45352ef98f7183171c3889fcefe192e530be6b2eecd4e4dde4c0f333f3741481c744592285917da313262e6fb2665a75f813b38bca7a9330765bc5da8b5f3 gvmd.initd
-5946db68bb5f7b3bf7cbae208a0fea6c9e023631d9fcd610539d2cf7c6290c8f7c2f55e0b4c7011c2263584b9eb42c7eae07db338917e8cc49acb63eb3950e1f gvmd.confd
-0988482eb3223309eeafd1abc3f3dd94c08d2b273de00a546f598af5e8c90023410218d15e5cc289eeae611e4bc16e2536782b24c645854e8ffa51d19efb5550 gvmd.logrotate
-964779adc39cbed191bccf02ccc408a263860002d2dbddee755cf0d015336814b0b3c83f88a02cc0c5959657be5c49eb94380cd6ba15844e4b6088e49cd7a3f0 greenbone-nvt-sync.conf
+71c329f425c92159882dec37317e80d3e5c93abba04ea92b735d2a1d6a156ab5c379fdca5fa9b2816ae1e0f961dbac55b17452d6d1ad41f1dfb317976679cb32 gvmd.initd
+63ca41e839e40292e4e6eb93947866ae2626f375353dfc142a9618f5bfb87e843f924e5a2ab3f24b5c30ac1c7c8791a5b323cbe2e88fb3c4cfc9713647f8eec2 gvmd.confd
+e1eeef173bfab7c750efcc7faa42cf7a1cfb9e6b137716063f273bc709c1346f11262dadbdb0c49822d885dc00177d8ccb91c0491ddc33cfee0a3827f11908f6 gvmd.logrotate
17df9386fc1dccf2fbe3b8d1fd499171f6681b61afe7b4c11ff9debc008798b31d1d02d59463031482d94e10833f0e71bde27cbbe422f23738c77b7c6ada79d2 greenbone-certdata-sync.conf
37dbbd3f92f8baee8e89c274d820e03cba5ed5469a826f118897035c2f7719a915a71a6069eb6bf7f9a72e798b7837af9a6f25709215683d9d264292b5ccad66 greenbone-scapdata-sync.conf
+964779adc39cbed191bccf02ccc408a263860002d2dbddee755cf0d015336814b0b3c83f88a02cc0c5959657be5c49eb94380cd6ba15844e4b6088e49cd7a3f0 greenbone-nvt-sync.conf
b5411a618e62e5a64fae3441d7f8a4db1fb7675200d8ce5f8208b09c6459b33920f3a65519c8d17781929917eeb4966e60701e64612c6cfcb77101130f779992 added-missing-includes.patch
-682ae0efb02c565ed28d67c3adc5d181fb0ac43d670573f0d9587cb6ff9d4dd89eaf1f43f0fab3928e447bee735958afec0f31c70f5ceffac3c68633469ff71a sys-siglist.patch"
+8d711e7411c92aaa1fb7d2cb3bce1aae80e8843703fca15dcac202619907589e43ef0575e26470e075d6517bca150b777b1fa1afd32f900ca3e36537bacb17e4 bin-openvas-change.patch
+5b7645912e107f67e1cc64cdb817404bc5212c41328201cfcc048a3ee73cf3c135b5128f1da6e84946ddc9361751b3da92518e493d940c2bbbda0c8ada8f3d5f fix-alpine-sql-syntax.patch
+682ae0efb02c565ed28d67c3adc5d181fb0ac43d670573f0d9587cb6ff9d4dd89eaf1f43f0fab3928e447bee735958afec0f31c70f5ceffac3c68633469ff71a sys-siglist.patch
+981c4cb32e5ef46be97b0c2d3cb24ab8b49226212104eb56c49216d976a5ae3cda3518e7629c0417dd22c94cf2fe19c34b6a5d4efd291c06747db84e7be76596 fix-gvm-port-update-name-and-backend.patch
+ef23f5bb64371f4e11eae0830a0c7a6a6463b792b2907cbc0527b1cf5a273927f676a254634ee3228315b44b6ca56716d3dce122dd43937fed79f2a443ae2d3d lockfile.patch"