# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=cvechecker pkgver=3.1 pkgrel=3 pkgdesc="A local CVE checker tool" url="http://cvechecker.sourceforge.net/" arch="all" license="GPL" depends="gawk wget libxslt" depends_dev="libconfig-dev argp-standalone sqlite-dev openssl-dev mysql-dev sqlite-dev openssl-dev" makedepends="$depends_dev" install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-doc" source="http://sourceforge.net/projects/cvechecker/files/$pkgname-$pkgver.tar.gz cvecheck-c.patch path-cvecheck.patch" _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 --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-sqlite3 \ --enable-mysql make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install 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="d49e7322703045d32e741ed172be5e69 cvechecker-3.1.tar.gz 51fb6d2e496e93538cb5c64ca3613041 cvecheck-c.patch 393b18b0a818daee2d117d3849fda829 path-cvecheck.patch"