diff options
author | Jonas Licht <jonas.licht@fem.tu-ilmenau.de> | 2021-03-18 22:26:29 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-22 15:33:54 +0200 |
commit | 31c0367127ce52eeb2f65b7af298ec0cb015a60f (patch) | |
tree | 4449eee639f2d6bc4b2e4b18e781820062973027 /net-analyzer/gvm-libs | |
parent | net-analyzer/openvas-scanner: add patch to disable cmake automagic dep (diff) | |
download | gentoo-31c0367127ce52eeb2f65b7af298ec0cb015a60f.tar.gz gentoo-31c0367127ce52eeb2f65b7af298ec0cb015a60f.tar.bz2 gentoo-31c0367127ce52eeb2f65b7af298ec0cb015a60f.zip |
net-analyzer/gvm-libs: version bump to 20.8.1
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-analyzer/gvm-libs')
-rw-r--r-- | net-analyzer/gvm-libs/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/gvm-libs/files/gvm-libs-20.8.1-disable-automagic-dep.patch | 22 | ||||
-rw-r--r-- | net-analyzer/gvm-libs/gvm-libs-20.8.1.ebuild | 112 |
3 files changed, 135 insertions, 0 deletions
diff --git a/net-analyzer/gvm-libs/Manifest b/net-analyzer/gvm-libs/Manifest index fe81d4ac9b4b..46134020f4e4 100644 --- a/net-analyzer/gvm-libs/Manifest +++ b/net-analyzer/gvm-libs/Manifest @@ -1,2 +1,3 @@ DIST gvm-libs-10.0.1.tar.gz 198483 BLAKE2B 4f4ddc7a3a1b4d45a51868cf03844365a9c4dd07f17ab53957ac4a1452ecba595885abdf01402a78aa784163aaba60b5c452fb9c2b5a11d38c40706e820c22c2 SHA512 961570e8fa8f89f0b462991bff1bf4e512ed6419cff6871c7432899847fb9edcc9f0adb7c280d12ee69fbb5c8e306c9e4366e2cbbb05fc3bae06795dcfb42206 DIST gvm-libs-11.0.1.tar.gz 213553 BLAKE2B b7c8ffeca8682fcfe68afe0992632fac18a01fc9b0016fcbaf27c0340b5150337784caac2368a22789073714808ce2c0471efde668e6911dcd0cfceaf862b671 SHA512 159acbe8e24f172398a6396988b87676a214fa15c2985e67845dcad1ebcb92ba5e2a19cee2994dc7cd0cac706992e81e8c6a793e99216aaac87a91c1c72c9a46 +DIST gvm-libs-20.8.1.tar.gz 267872 BLAKE2B ec0979bba5e88692375fcdcdbd1c1b47c2d93e1d1c911884b77e0d81028bd6b587dac5f8aaae7439cbd1f594ec3c5708510bc2e356cadaefee221a11a1982efa SHA512 846b062b849688019715cbff1d6c4f6a1b4dd8c58cfdef78ea08df3cd104810e9091385cca3c49618538a28c42c0fe78a38fb934fbde604aef86e84c4f2dda94 diff --git a/net-analyzer/gvm-libs/files/gvm-libs-20.8.1-disable-automagic-dep.patch b/net-analyzer/gvm-libs/files/gvm-libs-20.8.1-disable-automagic-dep.patch new file mode 100644 index 000000000000..3cd4a42272a5 --- /dev/null +++ b/net-analyzer/gvm-libs/files/gvm-libs-20.8.1-disable-automagic-dep.patch @@ -0,0 +1,22 @@ +diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt +index 3f10a4b8..223752e0 100644 +--- a/util/CMakeLists.txt ++++ b/util/CMakeLists.txt +@@ -102,7 +102,7 @@ if (BUILD_WITH_RADIUS) + find_library (LIBRADCLI radcli) + endif (NOT LIBFREERADIUS) + if (NOT LIBFREERADIUS AND NOT LIBRADCLI) +- message (STATUS " No suitable radius library found - radius support disabled") ++ message (SEND_ERROR " No suitable radius library found") + elseif (LIBFREERADIUS) + message (STATUS " Found ${LIBFREERADIUS} - radius support enabled") + set (RADIUS_LDFLAGS "-lfreeradius-client") +@@ -122,7 +122,7 @@ if (BUILD_WITH_LDAP) + find_library (LIBLDAP ldap) + endif (NOT LIBLDAP) + if (NOT LIBLDAP) +- message (STATUS " No ldap library found - ldap support disabled") ++ message (SEND_ERROR " No ldap library found") + else (NOT LIBLDAP) + message (STATUS " Found ${LIBLDAP} - ldap support enabled") + add_definitions (-DENABLE_LDAP_AUTH=1) diff --git a/net-analyzer/gvm-libs/gvm-libs-20.8.1.ebuild b/net-analyzer/gvm-libs/gvm-libs-20.8.1.ebuild new file mode 100644 index 000000000000..abe25f2f9180 --- /dev/null +++ b/net-analyzer/gvm-libs/gvm-libs-20.8.1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake flag-o-matic toolchain-funcs + +DESCRIPTION="Greenbone vulnerability management libraries, previously named openvas-libraries" +HOMEPAGE="https://www.greenbone.net/en/ https://github.com/greenbone/gvm-libs/" +SRC_URI="https://github.com/greenbone/gvm-libs/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2+" +KEYWORDS="~amd64 ~x86" +IUSE="extras ldap test radius" +RESTRICT="!test? ( test )" + +DEPEND=" + acct-group/gvm + acct-user/gvm + app-crypt/gpgme:= + dev-libs/glib + dev-libs/hiredis + dev-libs/libgcrypt:= + dev-libs/libxml2:= + dev-perl/UUID + net-libs/gnutls:= + net-libs/libssh:= + net-libs/libpcap:= + sys-libs/zlib + ldap? ( net-nds/openldap ) + radius? ( net-dialup/freeradius-client )" + +RDEPEND=" + ${DEPEND}" + +BDEPEND=" + dev-vcs/git + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + extras? ( + app-doc/doxygen[dot] + app-doc/xmltoman + app-text/htmldoc + dev-perl/CGI + dev-perl/SQL-Translator + ) + test? ( dev-libs/cgreen )" + +PATCHES=( + "${FILESDIR}"/${P}-disable-automagic-dep.patch +) + +src_prepare() { + cmake_src_prepare + # QA-Fix | Remove doxygen warnings for !CLANG + if use extras; then + if ! tc-is-clang; then + local f + for f in doc/*.in + do + sed -i \ + -e "s*CLANG_ASSISTED_PARSING = NO*#CLANG_ASSISTED_PARSING = NO*g" \ + -e "s*CLANG_OPTIONS*#CLANG_OPTIONS*g" \ + "${f}" || die "couldn't disable CLANG parsing" + done + fi + fi + + #Remove tests that doesn't work in the network sandbox + if use test; then + sed -i 's/add_test (networking-test networking-test)/ /g' base/CMakeLists.txt || die + sed -i 's/add_test (util-test util-test)/ /g' boreas/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + "-DLOCALSTATEDIR=${EPREFIX}/var" + "-DSYSCONFDIR=${EPREFIX}/etc" + "-DGVM_PID_DIR=${EPREFIX}/var/lib/gvm" + "-DBUILD_TESTS=$(usex test)" + "-DBUILD_WITH_RADIUS=$(usex radius)" + "-DBUILD_WITH_LDAP=$(usex ldap)" + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + if use extras; then + cmake_build -C "${BUILD_DIR}" doc + cmake_build doc-full -C "${BUILD_DIR}" doc + fi + cmake_build rebuild_cache + if use test; then + cmake_build tests + fi +} + +src_install() { + if use extras; then + local HTML_DOCS=( "${BUILD_DIR}"/doc/generated/html/. ) + fi + cmake_src_install + + # Set proper permissions on required files/directories + keepdir /var/lib/gvm + fowners -R gvm:gvm /var/lib/gvm +} |