aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-04-20 09:33:44 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-04-23 07:58:42 +0000
commit7998766e19cc76e005cf450d7edca56ed11d68ed (patch)
treea63276ae91eb0f29890e20d99681fe74445688bd /testing
parent75d80e98d64a8951a4f84540adf00db8dbe02ecb (diff)
downloadaports-7998766e19cc76e005cf450d7edca56ed11d68ed.tar.bz2
aports-7998766e19cc76e005cf450d7edca56ed11d68ed.tar.xz
testing/cvechecker: added post-install script, fix various issues
Diffstat (limited to 'testing')
-rw-r--r--testing/cvechecker/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/testing/cvechecker/APKBUILD b/testing/cvechecker/APKBUILD
index 36752a9a68..af9949db84 100644
--- a/testing/cvechecker/APKBUILD
+++ b/testing/cvechecker/APKBUILD
@@ -2,16 +2,16 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=cvechecker
pkgver=3.1
-pkgrel=0
+pkgrel=1
pkgdesc="A local CVE checker tool"
url="http://cvechecker.sourceforge.net/"
arch="all"
license="GPL"
depends=""
depends_dev="libconfig-dev argp-standalone
- mysql-dev sqlite-dev openssl-dev libcrypto1.0"
+ mysql-dev sqlite-dev openssl-dev libcrypto1.0 libxslt wget"
makedepends="$depends_dev"
-install=""
+install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="http://sourceforge.net/projects/cvechecker/files/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -19,7 +19,8 @@ build() {
cd "$_builddir"
export LIBS="-largp"
./configure --prefix=/usr \
- --sysconfdir=/etc \
+ --sysconfdir=/etc/cvechecker \
+ --localstatedir=/var \
--enable-sqlite3 \
--enable-mysql
make || return 1
@@ -27,5 +28,7 @@ build() {
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
+ chgrp -R cvechecker "$pkgdir"/var/cvechecker/* &>/dev/null
+ chmod -R g+w "$pkgdir"/var/cvechecker &>/dev/null
}
md5sums="d49e7322703045d32e741ed172be5e69 cvechecker-3.1.tar.gz"