diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-07 12:31:01 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-07 12:31:24 +0000 |
commit | 5cb69f8f95f889713efe34995dab273a6f5bb51a (patch) | |
tree | 43d62cb3920ff9370a3002fd41dd48e5b5acb356 /main/cvechecker | |
parent | cf7ad2eecfb498300c5d6f0e5873a7e5e6feaa51 (diff) | |
download | aports-5cb69f8f95f889713efe34995dab273a6f5bb51a.tar.bz2 aports-5cb69f8f95f889713efe34995dab273a6f5bb51a.tar.xz |
main/cvechecker: upgrade to 3.8, modernize APKBUILD
Diffstat (limited to 'main/cvechecker')
-rw-r--r-- | main/cvechecker/APKBUILD | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/main/cvechecker/APKBUILD b/main/cvechecker/APKBUILD index 1068515f31..7675c85450 100644 --- a/main/cvechecker/APKBUILD +++ b/main/cvechecker/APKBUILD @@ -2,32 +2,27 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=cvechecker -pkgver=3.6 -pkgrel=2 +pkgver=3.8 +pkgrel=0 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" +makedepends="libconfig-dev sqlite-dev libressl-dev mariadb-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 +builddir="$srcdir"/$pkgname-$pkgver + +check() { + cd "$builddir" + make check } build() { - cd "$_builddir" + cd "$builddir" export LIBS="-largp" ./configure \ --build=$CBUILD \ @@ -36,18 +31,15 @@ build() { --sysconfdir=/etc \ --localstatedir=/var \ --enable-sqlite3 \ - --enable-mysql \ - || return 1 - make || return 1 + --enable-mysql + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/var/cvechecker &>/dev/null - chgrp -R cvechecker "$pkgdir"/var/cvechecker/* &>/dev/null + chgrp -R $pkggroups "$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" +sha512sums="c7d83592d708d2d7b218f97f5780a442014793163260ba0a3d3aefb329c4e1b24924a461ca37df0d7d3b3e17ac16b29a1eed57169316c9d8cbf780550462f948 cvechecker-3.8.tar.gz" |