summaryrefslogtreecommitdiff
path: root/net-analyzer/gsad
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-28 11:40:46 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-28 11:40:46 +0000
commit73c06e01ebc820f47f0140310b8a096e9d20877b (patch)
treee42588135c33dc1c950c2ac5de5dd32897af342b /net-analyzer/gsad
parent88f366f99d8e731ae1a13d9eca9a5284484d2c6f (diff)
gentoo auto-resync : 28:02:2024 - 11:40:46
Diffstat (limited to 'net-analyzer/gsad')
-rw-r--r--net-analyzer/gsad/Manifest2
-rw-r--r--net-analyzer/gsad/gsad-22.9.1.ebuild102
2 files changed, 104 insertions, 0 deletions
diff --git a/net-analyzer/gsad/Manifest b/net-analyzer/gsad/Manifest
index f97a5cd853fd..a5bb37ee21b8 100644
--- a/net-analyzer/gsad/Manifest
+++ b/net-analyzer/gsad/Manifest
@@ -2,5 +2,7 @@ AUX gsad-22.init 863 BLAKE2B 874b4883bcc57cd40a12fe88ea11a8c63e935fb87ff5bf73ab3
AUX gsad-daemon.conf 428 BLAKE2B 5fdd58c878769245535cb46e2715fb14253bfe303d302a6e5a0efb655a30e92250582e2cfe4043afac79a718d178f350c91507c069bdf40e80fd7c688d47e270 SHA512 8ee1aca3d3e7f154eb5db21e256f7be68eca66bee0931a84a8187c49bc557b93255a842050bebe29b197746291fb40553b6bcde10adc871fb9aac2b27fb02f3d
AUX gsad.service.conf 25 BLAKE2B fb1972cc41f5f8970717136ef71c81b74cb1abb6c0419d3c8f7f51a9f54f933eb1c1551cfb56149bc7b5e2c68dd11d731b556a7ba2da678b02f24cf143810b4f SHA512 ece2d5838f743a820dd732a5e5b17d91e85ce07655173a0143740ef6bcd20156d6aebfcf8c43d53caa7713402607d88acc0328499326f6921e3b057bd0ef9d66
DIST gsad-22.9.0.tar.gz 224735 BLAKE2B da1ee149f6937ef2bb6d23391bf8594b776c8396d2a9fb0733b6d6933e1bd002ae560c178f8c300a09fd0d73c92615b750728fe8302f00b91e11926fe1a15aaa SHA512 ffe146a0dc87d2d95835dfa9b8eaeb2825a24aabe0f97e2ebd525235f96b23907476154fa52789c1d30d53daaf256743a4723db06e94bf6d4db98aaa57f08004
+DIST gsad-22.9.1.tar.gz 222663 BLAKE2B e65c8ecfa613a1653d36234d00e95da690e32c1c7ffc8904f509d568533079138115fcd389aaafa6d6cb96d5df42c9071e04edbbc95ea77731627ab7036adbde SHA512 25592b7e07357ff41f142cf926132491af20757a404773f3d532bafbf6e75d98b259103860920f657512d16a120351478767d347b01bef122ea1177c685d0d5b
EBUILD gsad-22.9.0.ebuild 2242 BLAKE2B 14d740eb322d174b219ffc0b77b9d4910ef430fbb05c74c385e2c965c4c748b5f08e005a53580f9423ef5019c0c84aef8f7ee9c42d29bd9bdaf232705472706a SHA512 396b5763b69d952911bc6d6ba84cfd931daf8bc694f6481b34c4bd93dba870f3fb8e02b8b634eca972ae7765531fdc6e55b1d03d8384ce00ed397e54fd8742e7
+EBUILD gsad-22.9.1.ebuild 2242 BLAKE2B 14d740eb322d174b219ffc0b77b9d4910ef430fbb05c74c385e2c965c4c748b5f08e005a53580f9423ef5019c0c84aef8f7ee9c42d29bd9bdaf232705472706a SHA512 396b5763b69d952911bc6d6ba84cfd931daf8bc694f6481b34c4bd93dba870f3fb8e02b8b634eca972ae7765531fdc6e55b1d03d8384ce00ed397e54fd8742e7
MISC metadata.xml 602 BLAKE2B d3c36459de572672fec6a1cd7d7c29c5b8be3a421455c8702a2bfbcf4d969c5783d5026024bbffe4b765a18b50852b534b9d2a1174f5586327ff13a4f704781f SHA512 e15e39148d80f4b6c8c6e14c18ae977d6ebcec98b201e4d9b58d83f4a183023f383d4c5ae986064b6a176b741d0ac923173cb4f78a30185ce341c642002e13d7
diff --git a/net-analyzer/gsad/gsad-22.9.1.ebuild b/net-analyzer/gsad/gsad-22.9.1.ebuild
new file mode 100644
index 000000000000..2230d3f5a627
--- /dev/null
+++ b/net-analyzer/gsad/gsad-22.9.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd toolchain-funcs
+
+DESCRIPTION="Greenbone Security Assistant"
+HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/gsad"
+SRC_URI="https://github.com/greenbone/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="AGPL-3+"
+KEYWORDS="~amd64 ~x86"
+IUSE="brotli doc"
+
+DEPEND="
+ acct-user/gvm
+ >=net-libs/libmicrohttpd-0.9.0:=
+ dev-libs/libxml2:2
+ >=dev-libs/glib-2.42:2
+ >=net-analyzer/gvm-libs-22.6
+ >=net-libs/gnutls-3.2.15:=
+ >=sys-libs/zlib-1.2
+ dev-libs/libgcrypt:0=
+ brotli? (
+ app-arch/brotli
+ )
+"
+
+RDEPEND="
+ ${DEPEND}
+ >=net-analyzer/gvmd-22.4
+ >=net-analyzer/gsa-22.4
+ net-analyzer/ospd-openvas
+"
+
+BDEPEND="
+ dev-python/polib
+ virtual/pkgconfig
+ doc? (
+ app-text/doxygen[dot]
+ app-text/xmltoman
+ )
+"
+
+src_prepare() {
+ cmake_src_prepare
+
+ # QA-Fix | Remove !CLANG doxygen warnings for 9.0.0
+ 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
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "-DLOCALSTATEDIR=${EPREFIX}/var"
+ "-DSYSCONFDIR=${EPREFIX}/etc"
+ "-DSBINDIR=${EPREFIX}/usr/bin"
+ "-DGSAD_RUN_DIR=${EPREFIX}/run/gsad"
+ "-DGVMD_RUN_DIR=${EPREFIX}/run/gvmd"
+ "-DSYSTEMD_SERVICE_DIR=$(systemd_get_systemunitdir)"
+ "-DLOGROTATE_DIR=${EPREFIX}/etc/logrotate.d"
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ # setting correct PATH for finding react-js
+ NODE_ENV=production PATH="$PATH:${S}/gsa/node_modules/.bin/" 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
+}
+
+src_install() {
+ if use doc; then
+ local HTML_DOCS=( "${BUILD_DIR}/doc/generated/html/." )
+ fi
+ cmake_src_install
+
+ systemd_install_serviced "${FILESDIR}/gsad.service.conf" \
+ ${PN}.service
+
+ insinto /etc/gvm/sysconfig
+ newins "${FILESDIR}/${PN}-daemon.conf" "${PN}-daemon.conf"
+
+ newinitd "${FILESDIR}/${PN}-22.init" "${PN}"
+ newconfd "${FILESDIR}/${PN}-daemon.conf" "${PN}"
+}