net-analyzer/gvm-libs: Version Bump to 11.0.0
authorJonas Licht <jonas.licht@fem.tu-ilmenau.de>
Tue, 10 Mar 2020 20:25:09 +0000 (21:25 +0100)
committerJoonas Niilola <juippis@gentoo.org>
Wed, 25 Mar 2020 13:45:25 +0000 (15:45 +0200)
Bug: https://bugs.gentoo.org/712082
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
net-analyzer/gvm-libs/Manifest
net-analyzer/gvm-libs/gvm-libs-11.0.0.ebuild [new file with mode: 0644]
net-analyzer/gvm-libs/metadata.xml

index 02d15c5c6a56faac12e2543cee6e2d3d08d3cb61..d017af87e9345608bf4c92a006e11a57d73e1164 100644 (file)
@@ -1 +1,2 @@
 DIST gvm-libs-10.0.1.tar.gz 198483 BLAKE2B 4f4ddc7a3a1b4d45a51868cf03844365a9c4dd07f17ab53957ac4a1452ecba595885abdf01402a78aa784163aaba60b5c452fb9c2b5a11d38c40706e820c22c2 SHA512 961570e8fa8f89f0b462991bff1bf4e512ed6419cff6871c7432899847fb9edcc9f0adb7c280d12ee69fbb5c8e306c9e4366e2cbbb05fc3bae06795dcfb42206
+DIST gvm-libs-11.0.0.tar.gz 207205 BLAKE2B 026b999a48ad524df9305d219dd29f5deb71affb3f5d338ad1178924aa701f2fe698ee4009f4b5a6973de6e590a870871b3b708a2531aaba6e05755cd7f00f97 SHA512 ff981b4ca37b425a8d1f491e90bd1cef4701033886f9fd47dad34540b36fa275d4af8b176e63a07405cc1f29137851b96a6ce80c46ed92f809b089fb0cd928af
diff --git a/net-analyzer/gvm-libs/gvm-libs-11.0.0.ebuild b/net-analyzer/gvm-libs/gvm-libs-11.0.0.ebuild
new file mode 100644 (file)
index 0000000..9aa857c
--- /dev/null
@@ -0,0 +1,91 @@
+# Copyright 1999-2020 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/"
+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 radius"
+
+DEPEND="
+       acct-user/gvm
+       app-crypt/gpgme:=
+       dev-libs/glib
+       dev-libs/hiredis
+       dev-libs/libgcrypt:=
+       dev-perl/UUID
+       net-libs/gnutls:=
+       net-libs/libssh:=
+       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
+       )"
+
+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
+}
+
+src_configure() {
+       local mycmakeargs=(
+               "-DLOCALSTATEDIR=${EPREFIX}/var"
+               "-DSYSCONFDIR=${EPREFIX}/etc"
+               "-DGVM_PID_DIR=${EPREFIX}/var/lib/gvm"
+       )
+       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
+}
+
+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
+}
index bc04f200f0890d8edf3f6f5f0ccf10fa7447f357..3fc9918d99189b35ef70eefb58168d7db8038b15 100644 (file)
@@ -1,7 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="person">
+               <email>jonas.licht@gmail.com</email>
+               <name>Jonas Licht</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
        <use>
                <flag name="extras">Html docs support</flag>
        </use>