aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvm-libs/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-04-06 16:40:34 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-04-06 17:19:56 +0000
commit6beec712cebc7f39e7795193d74f6aaf67265b52 (patch)
tree56c069ea21b23d20a75a275c074e3826d935854d /community/gvm-libs/APKBUILD
parent9392d6e920277f8db1e3da3f12fd6fd4fd1e051a (diff)
downloadaports-6beec712cebc7f39e7795193d74f6aaf67265b52.tar.gz
aports-6beec712cebc7f39e7795193d74f6aaf67265b52.tar.bz2
aports-6beec712cebc7f39e7795193d74f6aaf67265b52.tar.xz
community/gvm-libs: upgrade to 10.0.0
Renamed from openvas-libraries, removed unused patch
Diffstat (limited to 'community/gvm-libs/APKBUILD')
-rw-r--r--community/gvm-libs/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/community/gvm-libs/APKBUILD b/community/gvm-libs/APKBUILD
new file mode 100644
index 0000000000..408bd692cb
--- /dev/null
+++ b/community/gvm-libs/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=gvm-libs
+pkgver=10.0.0
+pkgrel=0
+pkgdesc="Greenbone Vulnerability Management Libraries"
+url="http://www.openvas.org/"
+arch="all"
+license="GPL-2.0"
+makedepends="cmake bison glib-dev doxygen xmltoman graphviz perl-sql-translator
+ libpcap-dev libssh-dev hiredis-dev gnutls-dev util-linux-dev
+ libgcrypt-dev libksba-dev openldap-dev gpgme-dev net-snmp-libs e2fsprogs-dev
+ clang-dev"
+replaces="openvas-libraries"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/$pkgname/archive/v$pkgver.tar.gz
+ malloc-trim.patch"
+builddir="$srcdir"/$pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_STATIC=0 \
+ -DBUILD_SHARED=1 \
+ -DLIBDIR=/usr/lib \
+ -DSYSCONFDIR=/etc \
+ -DLOCALSTATEDIR=/var .
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ rmdir "$pkgdir"/var/run
+}
+
+doc() {
+ default_doc
+ cd "$builddir"
+ make doc
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
+ mv doc/generated/* "$subpkgdir"/usr/share/doc/$pkgname
+}
+sha512sums="18ada48bea523ab22b886ca4f6c72724cfd18269d78c29b71d30ce2898b3056c4354a41992c42a0c55ade08f17cb8f7f056e73752c768cf043b6b9d2955a76b4 gvm-libs-10.0.0.tar.gz
+ae93ac7ec929325926d785bb58ed9c09f8bdaf518adf09db54bb9a8a4b5e4474c0ab61fc987c91114f2013cbe39868115006b528865fbd027e5b88eca58f1954 malloc-trim.patch"