blob: 607559042d972b326974df6c0c538714a9dab982 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gvmd
pkgver=8.0.1
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
gpgme-dev libgcrypt-dev graphviz libical-dev "
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
sys-siglist.patch
fix-alpine-sql-syntax.patch"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cmake -DCMAKE_BUILD_TYPE=Release \
-DSBINDIR=/usr/bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc \
-DLOCALSTATEDIR=/var .
make
}
check() {
make check
}
package() {
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"
for f in nvt certdata scapdata; do
install -Dm755 "$srcdir"/greenbone-$f-sync.conf "$pkgdir"/etc/gvm/greenbone-$f-sync.conf
done
}
sha512sums="5490b902ad42499657eca9031b396c70a82d3c523985601067e697758f2472d123c4e99b085b963e58888d99224fa2a441a140772c702d7cd60d6424b126bfc8 gvmd-8.0.1.tar.gz
41e45352ef98f7183171c3889fcefe192e530be6b2eecd4e4dde4c0f333f3741481c744592285917da313262e6fb2665a75f813b38bca7a9330765bc5da8b5f3 gvmd.initd
5946db68bb5f7b3bf7cbae208a0fea6c9e023631d9fcd610539d2cf7c6290c8f7c2f55e0b4c7011c2263584b9eb42c7eae07db338917e8cc49acb63eb3950e1f gvmd.confd
0988482eb3223309eeafd1abc3f3dd94c08d2b273de00a546f598af5e8c90023410218d15e5cc289eeae611e4bc16e2536782b24c645854e8ffa51d19efb5550 gvmd.logrotate
964779adc39cbed191bccf02ccc408a263860002d2dbddee755cf0d015336814b0b3c83f88a02cc0c5959657be5c49eb94380cd6ba15844e4b6088e49cd7a3f0 greenbone-nvt-sync.conf
17df9386fc1dccf2fbe3b8d1fd499171f6681b61afe7b4c11ff9debc008798b31d1d02d59463031482d94e10833f0e71bde27cbbe422f23738c77b7c6ada79d2 greenbone-certdata-sync.conf
37dbbd3f92f8baee8e89c274d820e03cba5ed5469a826f118897035c2f7719a915a71a6069eb6bf7f9a72e798b7837af9a6f25709215683d9d264292b5ccad66 greenbone-scapdata-sync.conf
4abf90aaf3a0da5cf3869b9b6eb2314bcd7376236e1d47f4ef37445b5ea98c89eeccb57056f71f6624d35167081f312c8fc8a60ac549584cc8aff350b683a90d sys-siglist.patch
bb56b85f47074ab8b46a6cd0bb677eef391dc5bf720e0c760b189536cfaa39ccc6473c201ee06259de099c37dcb2def025651c19f543dbde2becd956bde9f042 fix-alpine-sql-syntax.patch"
|