aboutsummaryrefslogtreecommitdiffstats
path: root/community/openvas-cli
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-02-22 09:56:49 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-08 07:30:10 +0000
commitc870cd596187034f90daf1426ba073c3e56d174f (patch)
tree27586bac5836eaf5e0e6196274200a881bd9c58a /community/openvas-cli
parent4a0227454b525917233700cd00a301571332bda5 (diff)
downloadaports-c870cd596187034f90daf1426ba073c3e56d174f.tar.bz2
aports-c870cd596187034f90daf1426ba073c3e56d174f.tar.xz
community/openvas-cli: improved apkbuild
Diffstat (limited to 'community/openvas-cli')
-rw-r--r--community/openvas-cli/APKBUILD26
1 files changed, 5 insertions, 21 deletions
diff --git a/community/openvas-cli/APKBUILD b/community/openvas-cli/APKBUILD
index 8b7551fa17..4f65d236d1 100644
--- a/community/openvas-cli/APKBUILD
+++ b/community/openvas-cli/APKBUILD
@@ -2,46 +2,30 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openvas-cli
pkgver=1.4.5
-pkgrel=0
+pkgrel=1
_pkgid=2397
pkgdesc="The OpenVAS Command-Line Interface"
url="http://www.openvas.org"
arch="all"
license="GPL"
-depends=""
-depends_dev=""
-makedepends="$depends_dev openvas-libraries-dev cmake doxygen xmltoman"
-install=""
+makedepends="openvas-libraries-dev cmake doxygen xmltoman"
subpackages="$pkgname-doc"
source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz
001-fortify-source.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
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var .
make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir/" install
}
-md5sums="4b03ea3e851d787ff7596bd3e08b20ba openvas-cli-1.4.5.tar.gz
-df30d7613d69e24afa633d50ce7cae7f 001-fortify-source.patch"
-sha256sums="55d9beaee0161686c452805428af50c1d6e07835621297afbca789f45a1e86a4 openvas-cli-1.4.5.tar.gz
-079c24e87f85d5a1bee0d3b36adba09dca30d525fe0a9ad7b84dc46c18c9d4f8 001-fortify-source.patch"
sha512sums="35ec391d1e25bfe1a49507b9e2ec69243411a6e839232334bb0f2eed26750a159942b7d14528fab9e57e1c7d7bf40fa087686444168ced4e4281ad78f2aeae85 openvas-cli-1.4.5.tar.gz
979714b5625b87ec559be6d7520152c713b5455a401e50350b5c342b3769cfa83946a31dd963300cb0b0276fdc28f27ea66854563bec1a744322b6c268202935 001-fortify-source.patch"