diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-13 16:57:33 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-13 18:26:18 +0000 |
commit | 5bf3801f41912e2319ec1bcc04cc4825b7f5d228 (patch) | |
tree | 9d42197bad7c92b7920cef6b3f24c6191b29cdae | |
parent | 4f6881473b58fac44a53d34989157bd650bec56f (diff) | |
download | aports-5bf3801f41912e2319ec1bcc04cc4825b7f5d228.tar.bz2 aports-5bf3801f41912e2319ec1bcc04cc4825b7f5d228.tar.xz |
community/gvm-libs: renamed openvas-libraries, removed unused dependencies, improved APKBUILD
-rw-r--r-- | community/gvm-libs/000-fortify-source.patch (renamed from community/openvas-libraries/000-fortify-source.patch) | 0 | ||||
-rw-r--r-- | community/gvm-libs/001-maxhostnamelen.patch (renamed from community/openvas-libraries/001-maxhostnamelen.patch) | 0 | ||||
-rw-r--r-- | community/gvm-libs/002-timeval.patch (renamed from community/openvas-libraries/002-timeval.patch) | 0 | ||||
-rw-r--r-- | community/gvm-libs/APKBUILD (renamed from community/openvas-libraries/APKBUILD) | 29 |
4 files changed, 16 insertions, 13 deletions
diff --git a/community/openvas-libraries/000-fortify-source.patch b/community/gvm-libs/000-fortify-source.patch index 26ceb25ca9..26ceb25ca9 100644 --- a/community/openvas-libraries/000-fortify-source.patch +++ b/community/gvm-libs/000-fortify-source.patch diff --git a/community/openvas-libraries/001-maxhostnamelen.patch b/community/gvm-libs/001-maxhostnamelen.patch index 373554d4ab..373554d4ab 100644 --- a/community/openvas-libraries/001-maxhostnamelen.patch +++ b/community/gvm-libs/001-maxhostnamelen.patch diff --git a/community/openvas-libraries/002-timeval.patch b/community/gvm-libs/002-timeval.patch index 937473da6f..937473da6f 100644 --- a/community/openvas-libraries/002-timeval.patch +++ b/community/gvm-libs/002-timeval.patch diff --git a/community/openvas-libraries/APKBUILD b/community/gvm-libs/APKBUILD index cf3ccba283..f4c55e8d96 100644 --- a/community/openvas-libraries/APKBUILD +++ b/community/gvm-libs/APKBUILD @@ -1,24 +1,20 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=openvas-libraries +pkgname=gvm-libs pkgver=9.0.1 -_pkgid=2420 -pkgrel=0 +pkgrel=1 pkgdesc="OpenVAS libraries" url="http://www.openvas.org/" arch="all" license="GPL" -depends="net-snmp" -depends_dev="libpcap-dev libssh-dev hiredis-dev - gnutls-dev util-linux-dev libgcrypt-dev libksba-dev - openldap-dev gpgme-dev net-snmp-dev e2fsprogs-dev" -makedepends="$depends_dev cmake bison glib-dev doxygen xmltoman perl-sql-translator" -install="" +makedepends="cmake bison glib-dev doxygen xmltoman 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" +replaces="openvas-libraries" subpackages="$pkgname-dev $pkgname-doc" -source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz +source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/$pkgname/archive/v$pkgver.tar.gz 001-maxhostnamelen.patch 002-timeval.patch" - builddir="$srcdir"/$pkgname-$pkgver build() { @@ -26,10 +22,17 @@ build() { 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 || return 1 + make +} + +check() { + cd "$builddir" + make test } package() { @@ -37,6 +40,6 @@ package() { make DESTDIR="$pkgdir/" install rmdir "$pkgdir"/var/run } -sha512sums="d39694a77c368fdb0b2df5310bf4c7b1bf2cba27d2d9ca16b5291640f82e65eca947e21d3cf10d890d9679f48f7321aef95a7826b5827f8a24f04f9f1a759a90 openvas-libraries-9.0.1.tar.gz +sha512sums="f95bffb76ae0374bb376dc59056992bdaca173e5551ee2bbb0af55a6139cebbec13a97f17e12d437f3b75a4db6af99a09e58a9016b422b3da3283233e5325d5d gvm-libs-9.0.1.tar.gz 1e27ced30f20f0010a04abd17a9a2c4d90e5d159d341018fa1f66b887ef8b24b490297a27b9dbb241dbd88e33c363c06fa0e7345707792411bda4825b770edea 001-maxhostnamelen.patch 2316c4808627da9a2daf0ea971fd9856cd77a62d6376f0d186c18fd7f90be217df2a17ccd2fccc88a583a830c593cb93b32d867ce5f0dd3ecb43cd75fa2b83ea 002-timeval.patch" |