diff options
author | Giuseppe Foti <foti.giuseppe@gmail.com> | 2023-05-20 19:01:54 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-07-03 10:15:21 +0200 |
commit | 8305c10e69ca5cb1b5011be6265760c4d3588297 (patch) | |
tree | d47b93f3523c2398aa201fd520efbe25b50484dc /net-analyzer/gvm-libs | |
parent | net-analyzer/gvmd: add 22.5.1 (diff) | |
download | gentoo-8305c10e69ca5cb1b5011be6265760c4d3588297.tar.gz gentoo-8305c10e69ca5cb1b5011be6265760c4d3588297.tar.bz2 gentoo-8305c10e69ca5cb1b5011be6265760c4d3588297.zip |
net-analyzer/gvm-libs: add 22.6.3
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
Signed-off-by: Florian Schmaus <flow@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/gvm-libs-22.6.3.ebuild | 111 | ||||
-rw-r--r-- | net-analyzer/gvm-libs/metadata.xml | 4 |
3 files changed, 116 insertions, 0 deletions
diff --git a/net-analyzer/gvm-libs/Manifest b/net-analyzer/gvm-libs/Manifest index fef2a714575a..a0ec15bd17d5 100644 --- a/net-analyzer/gvm-libs/Manifest +++ b/net-analyzer/gvm-libs/Manifest @@ -1 +1,2 @@ DIST gvm-libs-21.4.4.tar.gz 298551 BLAKE2B 271716d8be2376e2b54218b95069e19d10939c5feda9894220418bf184c4098eeacf61d1faedd49fe3215aa0fbf4a4afcfe2a929ac88450502737eb8af8f8e35 SHA512 6c80820c830cbc2e62865a0823740d857db075f2faa1a1e58af7a8f07e0179e7a78934d7613ec57f144900a5530206d4c07c912a6bbe40ad9d0549f9443bfb12 +DIST gvm-libs-22.6.3.tar.gz 309045 BLAKE2B 9627fbdbb9d7a77542242311bce83e760316aea9f5c7b4c275aada18b6407cda41f5a0e1bd1e7202a16304e11772ddeabb01513ec67b7310d95e6522676fec1a SHA512 7b2db4c7aa2361e6dbaca002755bea00eca333f9edf6da5d3c1cf41c6abac32c60f2721f4f152ea6d6bc0f366bdd6249b0693df711ab35e933cd7e22bf028002 diff --git a/net-analyzer/gvm-libs/gvm-libs-22.6.3.ebuild b/net-analyzer/gvm-libs/gvm-libs-22.6.3.ebuild new file mode 100644 index 000000000000..a1e56e3d32e0 --- /dev/null +++ b/net-analyzer/gvm-libs/gvm-libs-22.6.3.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="Greenbone Vulnerability Management (GVM) libraries" +HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/gvm-libs/" +SRC_URI="https://github.com/greenbone/gvm-libs/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc ldap test radius" +RESTRICT="!test? ( test )" + +DEPEND=" + acct-user/gvm + app-crypt/gpgme:= + dev-libs/glib:2 + dev-libs/hiredis:= + dev-libs/libgcrypt:= + dev-libs/libgpg-error + dev-libs/libxml2 + dev-perl/UUID + net-libs/gnutls:= + net-libs/libnet:1.1 + net-libs/libpcap + net-libs/libssh:= + sys-apps/util-linux + sys-libs/libxcrypt:= + sys-libs/zlib + dev-libs/paho-mqtt-c:1.3 + ldap? ( net-nds/openldap:= ) + radius? ( net-dialup/freeradius-client ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-vcs/git + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + doc? ( + app-doc/doxygen[dot] + app-doc/xmltoman + app-text/htmldoc + dev-perl/CGI + dev-perl/SQL-Translator + ) + test? ( dev-libs/cgreen ) +" + +src_prepare() { + cmake_src_prepare + # QA-Fix | Remove doxygen warnings for !CLANG + if use doc; 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_RUN_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 doc; 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 doc; then + local HTML_DOCS=( "${BUILD_DIR}"/doc/generated/html/. ) + fi + cmake_src_install + + # Set proper permissions on required files/directories + keepdir /var/lib/gvm + if ! use prefix; then + fowners -R gvm:gvm /var/lib/gvm + fi +} diff --git a/net-analyzer/gvm-libs/metadata.xml b/net-analyzer/gvm-libs/metadata.xml index dcb5742e94b2..df3bcf4ee54f 100644 --- a/net-analyzer/gvm-libs/metadata.xml +++ b/net-analyzer/gvm-libs/metadata.xml @@ -2,6 +2,10 @@ <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person" proxied="yes"> + <email>foti.giuseppe@gmail.com</email> + <name>Giuseppe Foti</name> + </maintainer> + <maintainer type="person" proxied="yes"> <email>jonas.licht@gmail.com</email> <name>Jonas Licht</name> </maintainer> |