aboutsummaryrefslogtreecommitdiffstats
path: root/main/cvechecker/APKBUILD
blob: 1068515f31df3f74c1df94b88ce5896f68297b19 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cvechecker
pkgver=3.6
pkgrel=2
pkgdesc="A local CVE checker tool"
url="http://cvechecker.sourceforge.net/"
arch="all"
license="GPL3"
depends="gawk wget libxslt"
depends_dev="libconfig-dev sqlite-dev libressl-dev mariadb-dev"
makedepends="$depends_dev argp-standalone"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
pkggroups="$pkgname"
source="https://raw.githubusercontent.com/wiki/sjvermeu/$pkgname/releases/$pkgname-$pkgver.tar.gz"
_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"
	export LIBS="-largp"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-sqlite3 \
		--enable-mysql \
		|| return 1
	make || return 1
}
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/var/cvechecker &>/dev/null
	chgrp -R cvechecker "$pkgdir"/var/cvechecker/* &>/dev/null
	chmod -R g+w "$pkgdir"/var/cvechecker &>/dev/null
}

md5sums="e42482fa97bc9e73534fe37b45d1b1fb  cvechecker-3.6.tar.gz"
sha256sums="259266b35dc90c9b9b88911056b27f28ece7e5131b131b4c804b96525672ea66  cvechecker-3.6.tar.gz"
sha512sums="c46e9806a4f509bd0862bfce9c1dc67034d87c129b3e29f2c3c1887684f838d69e700e72b5199ae6572bad223ea3e28abd580516a5940153bec58588ddd246ee  cvechecker-3.6.tar.gz"