summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2022-06-19 10:53:12 +0200
committerJakov Smolić <jsmolic@gentoo.org>2022-06-19 10:53:12 +0200
commit02b233aeb4490d613cc013d44072809ca835de44 (patch)
treeb29b9c195aa4021c36874c2d838c3cb783f71a8b /net-analyzer
parentnet-analyzer/ospd: treeclean (diff)
downloadgentoo-02b233aeb4490d613cc013d44072809ca835de44.tar.gz
gentoo-02b233aeb4490d613cc013d44072809ca835de44.tar.bz2
gentoo-02b233aeb4490d613cc013d44072809ca835de44.zip
net-analyzer/greenbone-security-assistant: treeclean
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/greenbone-security-assistant/Manifest4
-rw-r--r--net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-20.8.1-node.patch47
-rw-r--r--net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch34
-rw-r--r--net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-glibc_siglist.patch14
-rw-r--r--net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-uninstall-snippet.patch12
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.nginx.reverse.proxy.example78
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf19
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsad.init20
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsad.logrotate13
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsad.service18
-rw-r--r--net-analyzer/greenbone-security-assistant/greenbone-security-assistant-20.8.1.ebuild123
-rw-r--r--net-analyzer/greenbone-security-assistant/greenbone-security-assistant-9.0.1.ebuild124
-rw-r--r--net-analyzer/greenbone-security-assistant/metadata.xml24
13 files changed, 0 insertions, 530 deletions
diff --git a/net-analyzer/greenbone-security-assistant/Manifest b/net-analyzer/greenbone-security-assistant/Manifest
deleted file mode 100644
index a58a52bdcbcc..000000000000
--- a/net-analyzer/greenbone-security-assistant/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-DIST greenbone-security-assistant-20.8.1-node_modules.tar.gz 56048261 BLAKE2B feb9c8bc1f6675f9cfe0914acc2afbd8dc69a0445f198f893c4dcd73364404491541fb5c81980b627c741ba58621d26f4a1c4c07d18dc89d9c0050739352e0fc SHA512 2fa731aa0037b1c5e24ae34afa1d1dd1519ca8fac7af9dbd6d00486fa2ecab6fecfebe0864bc7f0ac38bfc0443c7ea05b85b3dbe75d891af4f5544bc80601c46
-DIST greenbone-security-assistant-20.8.1.tar.gz 2136158 BLAKE2B 769b9fc10879f866bc6c17cecf35a33d1a8813fbfacac16f1a97f1f58f1545c4e3997880642e5306b782c74c5515a11f527d31526ae4224d037a6c5e06fb0241 SHA512 85a96d59317bedfbe748b02b71fcf5f931f049d1ca688e3d4e87e701f14cd39ec4320621689f3a9f6b91fc1cf4e25c422df4d9b4675a7bcfed330b431b64d3ef
-DIST greenbone-security-assistant-9.0.1-node_modules.tar.gz 44176347 BLAKE2B c8d1195ddc8167ff7a228a4e013c6139524e8527310c65529d37de8fe5e984379ba783e10544caf81ac801ceb1199ad7249c96a0e6032ade8a519068e6cefb42 SHA512 1718f97d330f7868afe34bf172699b8aa8ce795dc2e4a6f20b28135434623a68022c36310e381bd55bacbb621fd9bf5c8595c8030f5d3dc32bb427cc2febd028
-DIST greenbone-security-assistant-9.0.1.tar.gz 1936391 BLAKE2B 22b9020a97e79b31555d66826740ca49d1eba5d55324f0e80349dc571a7b45bcf2c6403ac311e78f742c51900921f3e61ef0740f11fd794069242e2ab21b1c3e SHA512 688bde97722f31416406e43230253c05dc8d05eb9fea6d8fd084ec4e748b67bab238f78cc11534e4fc948d911e468d43b5be0b224f17959db5e59faae7f5d086
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-20.8.1-node.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-20.8.1-node.patch
deleted file mode 100644
index c39a66c5405e..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-20.8.1-node.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff --git a/gsa/CMakeLists.txt b/gsa/CMakeLists.txt
-index db597d390..d30e33ec1 100644
---- a/gsa/CMakeLists.txt
-+++ b/gsa/CMakeLists.txt
-@@ -1176,29 +1176,17 @@ set (GSA_JS_SRC_FILES
- ${GSA_SRC_DIR}/src/web/wizard/taskwizard.js
- )
-
--
--
--add_custom_command (OUTPUT node-modules.stamp
-- DEPENDS ${GSA_PKG_FILES}
-- COMMAND ${INSTALLER} "${INSTALLER_ARGS}" "install"
-- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp
-- WORKING_DIRECTORY ${GSA_SRC_DIR}
-- COMMENT "Install gsa js dependencies")
--
--
- add_custom_command (OUTPUT bundle.stamp
-- COMMAND ${CMAKE_COMMAND} -E env REACT_APP_VERSION=${PROJECT_VERSION_STRING} ${INSTALLER} "${INSTALLER_ARGS}" run build
-+ COMMAND ${CMAKE_COMMAND} -E env REACT_APP_VERSION=${PROJECT_VERSION_STRING} ${INSTALLER} --offline run build
- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp
-- ${GSA_PKG_FILES}
-+ DEPENDS ${GSA_PKG_FILES}
- ${GSA_STATIC_SRC_FILES}
- ${GSA_JS_SRC_FILES}
- COMMENT "Build gsa install files")
-
- add_custom_target (gsa ALL
-- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp
-- ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp)
-+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp)
-
- set (GSA_STATIC_BUILD_FILES
- ${GSA_BUILD_DIR}/index.html)
-@@ -1209,9 +1197,6 @@ install (FILES ${GSA_STATIC_BUILD_FILES}
- install (FILES public/robots.txt
- DESTINATION ${GSA_DEST_DIR})
-
--# remove old generated files
--install (CODE "file(REMOVE_RECURSE ${GSA_DEST_DIR}/static)")
--
- install (DIRECTORY
- ${GSA_BUILD_DIR}/static
- ${GSA_BUILD_DIR}/img
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch
deleted file mode 100644
index 116bd48264dd..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-8.0.1-node.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- a/gsa/CMakeLists.txt 2019-07-17 16:45:39.000000000 +0300
-+++ b/gsa/CMakeLists.txt 2019-07-17 22:24:49.466906757 +0300
-@@ -1095,28 +1095,17 @@
- ${GSA_JS_SRC_FILES}
- PARENT_SCOPE)
-
--
--add_custom_command (OUTPUT node-modules.stamp
-- DEPENDS ${GSA_PKG_FILES}
-- COMMAND ${INSTALLER} "${INSTALLER_ARGS}" "install"
-- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp
-- WORKING_DIRECTORY ${GSA_SRC_DIR}
-- COMMENT "Install gsa-ng js dependencies")
--
--
- add_custom_command (OUTPUT bundle.stamp
-- COMMAND ${CMAKE_COMMAND} -E env REACT_APP_VERSION=${PROJECT_VERSION_STRING} ${INSTALLER} "${INSTALLER_ARGS}" run build
-+ COMMAND ${CMAKE_COMMAND} -E env REACT_APP_VERSION=${PROJECT_VERSION_STRING} ${INSTALLER} --offline run build
- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp
-- ${GSA_PKG_FILES}
-+ DEPENDS ${GSA_PKG_FILES}
- ${GSA_STATIC_SRC_FILES}
- ${GSA_JS_SRC_FILES}
- COMMENT "Build gsa-ng install files")
-
- add_custom_target (gsa-ng ALL
-- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/node-modules.stamp
-- ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp)
-+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bundle.stamp)
-
- set (GSA_STATIC_BUILD_FILES
- ${GSA_BUILD_DIR}/index.html)
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-glibc_siglist.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-glibc_siglist.patch
deleted file mode 100644
index f9f587c96c8c..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-glibc_siglist.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-#-------------------------------------------------------------------
-# compatibility with glibc 2.32 version #751592
-#-------------------------------------------------------------------
---- ./gsad/src/gsad.c 2020-05-13 09:22:13.000000000 +0200
-+++ ./gsad/src/gsad.c 2020-10-28 13:07:25.127222254 +0100
-@@ -3318,7 +3318,7 @@
- {
- if (termination_signal)
- {
-- g_debug ("Received %s signal.\n", sys_siglist[termination_signal]);
-+ g_debug ("Received %s signal.\n", strsignal(termination_signal));
- gsad_cleanup ();
- /* Raise signal again, to exit with the correct return value. */
- signal (termination_signal, SIG_DFL);
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-uninstall-snippet.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-uninstall-snippet.patch
deleted file mode 100644
index 8622fd810674..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.1-uninstall-snippet.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/gsa/CMakeLists.txt 2019-07-18 23:14:04.639202986 +0300
-+++ b/gsa/CMakeLists.txt 2019-07-18 23:21:54.568052589 +0300
-@@ -1164,9 +1164,6 @@
- install (FILES public/robots.txt
- DESTINATION ${GSA_DEST_DIR})
-
--# remove old generated files
--install (CODE "file(REMOVE_RECURSE ${GSA_DEST_DIR}/static)")
--
- install (DIRECTORY
- ${GSA_BUILD_DIR}/static
- ${GSA_BUILD_DIR}/img
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.nginx.reverse.proxy.example b/net-analyzer/greenbone-security-assistant/files/gsa.nginx.reverse.proxy.example
deleted file mode 100644
index b233911a2f1d..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsa.nginx.reverse.proxy.example
+++ /dev/null
@@ -1,78 +0,0 @@
-upstream backend {
- server 127.0.0.1:9392;
- keepalive 64;
-}
-
-server {
- listen IP:80;
- server_name openvas.domain.tdl;
- return 301 https://openvas.domain.tdl$request_uri;
-}
-
-server {
- listen IP:443 ssl http2;
- server_name openvas.domain.tdl;
- access_log /var/log/nginx/openvas.domain.tdl.access.log;
- error_log /var/log/nginx/openvas.domain.tdl.error.log;
- # Not sourcing directly from file
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- fastcgi_param REQUEST_URI $request_uri;
- fastcgi_param DOCUMENT_URI $document_uri;
- fastcgi_param SERVER_PROTOCOL $server_protocol;
- fastcgi_param REQUEST_SCHEME $scheme;
- fastcgi_param HTTPS $https;
- fastcgi_param GATEWAY_INTERFACE CGI/1.1;
- fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
- fastcgi_param REMOTE_ADDR $remote_addr;
- fastcgi_param REMOTE_PORT $remote_port;
- fastcgi_param SERVER_ADDR $server_addr;
- fastcgi_param SERVER_PORT $server_port;
- fastcgi_param SERVER_NAME $server_name;
- fastcgi_param REDIRECT_STATUS 200;
- fastcgi_param HTTP_PROXY "";
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param DOCUMENT_ROOT $document_root;
-
- location / {
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header REMOTE_HOST $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-FORWARDED-PROTOCOL $scheme;
- proxy_pass https://backend;
- proxy_http_version 1.1;
- proxy_pass_request_headers on;
- proxy_set_header Connection "keep-alive";
- proxy_store off;
- gzip on;
- gzip_proxied any;
- gzip_types *;
- }
-
- resolver 127.0.0.1;
- resolver_timeout 6s;
- ssl_certificate /openvas.domain.tdl/fullchain.pem;
- ssl_certificate_key /openvas.domain.tdl/privkey.pem;
- ssl_trusted_certificate /openvas.domain.tdl/chain.pem;
- ssl_dhparam /openvas.domain.tdl/dhparam.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;
- ssl_ecdh_curve secp384r1;
- ssl_stapling on;
- ssl_stapling_verify on;
- ssl_session_cache shared:SSL:40m;
- ssl_session_timeout 21h;
- ssl_session_tickets off;
- ssl_buffer_size 4k;
- add_header Referrer-Policy no-referrer-when-downgrade;
- add_header X-Frame-Options "SAMEORIGIN";
- add_header X-Content-Type-Options "nosniff";
- add_header X-XSS-Protection "1; mode=block";
-}
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf b/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf
deleted file mode 100644
index f7c7ee514e50..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsad-daemon.conf
+++ /dev/null
@@ -1,19 +0,0 @@
-# Greenbone Security Assistant command args
-
-# e.g. --foreground | e.g. --no-redirect
-GSAD_OPTIONS="--no-redirect"
-
-# GSAD listen adress
-GSAD_LISTEN_ADDRESS="--listen=127.0.0.1"
-
-# GSAD listen port
-GSAD_LISTEN_PORT="--port=9392"
-
-# GVMD listen address
-GVMD_LISTEN_ADDRESS="--mlisten=127.0.0.1"
-
-# GVMD listen port
-GVMD_LISTEN_PORT="--mport=9390"
-
-# TLS Settings
-GSAD_GNUTLS_PRIORITIES="--gnutls-priorities=NORMAL"
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad.init b/net-analyzer/greenbone-security-assistant/files/gsad.init
deleted file mode 100644
index 7dc4b82afa78..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsad.init
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-: ${GSAD_USER:=gvm}
-: ${GSAD_GROUP:=gvm}
-: ${GSAD_TIMEOUT:=30}
-
-name="Greenbone Security Assistant (GSA)"
-command="/usr/bin/gsad"
-command_args="--foreground ${GSAD_OPTIONS} ${GSAD_LISTEN_ADDRESS} ${GSAD_LISTEN_PORT} ${GVMD_LISTEN_ADDRESS} ${GVMD_LISTEN_PORT} ${GSAD_GNUTLS_PRIORITIES}"
-command_background="true"
-command_user="${GSAD_USER}:${GSAD_GROUP}"
-pidfile="/run/gsad.pid"
-retry="${GSAD_TIMEOUT}"
-
-depend() {
- after bootmisc
- need localmount net gvmd
-}
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad.logrotate b/net-analyzer/greenbone-security-assistant/files/gsad.logrotate
deleted file mode 100644
index f80bba881c7b..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsad.logrotate
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-# Daemon ignore HUP so we use 'copytruncate' instead of 'create'
-# with safe file size to prevent losing log entries.
-
-/var/log/gvm/gsad.log {
- compress
- missingok
- notifempty
- sharedscripts
- copytruncate
- maxsize 10M
-}
diff --git a/net-analyzer/greenbone-security-assistant/files/gsad.service b/net-analyzer/greenbone-security-assistant/files/gsad.service
deleted file mode 100644
index 91e791878008..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsad.service
+++ /dev/null
@@ -1,18 +0,0 @@
-[Unit]
-Description=Greenbone Security Assistant
-After=network.target
-After=openvassd.service
-After=gvmd.service
-Wants=gvmd.service
-
-[Service]
-Type=forking
-User=gvm
-Group=gvm
-EnvironmentFile=-/etc/gvm/sysconfig/gsad-daemon.conf
-ExecStart=/usr/bin/gsad $GSAD_OPTIONS $GSAD_LISTEN_ADDRESS $GSAD_LISTEN_PORT $GVMD_LISTEN_ADDRESS $GVMD_LISTEN_PORT $GSAD_GNUTLS_PRIORITIES
-Restart=always
-RestartSec=10
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-20.8.1.ebuild b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-20.8.1.ebuild
deleted file mode 100644
index a513fc165a4f..000000000000
--- a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-20.8.1.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CMAKE_MAKEFILE_GENERATOR="emake"
-inherit cmake systemd toolchain-funcs
-
-MY_PN="gsa"
-MY_DN="gsad"
-MY_NODE_N="node_modules"
-
-DESCRIPTION="Greenbone Security Assistant"
-HOMEPAGE="https://www.greenbone.net/en/ https://github.com/greenbone/gsa"
-SRC_URI="https://github.com/greenbone/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/greenbone/${MY_PN}/releases/download/v${PV}/gsa-node-modules-${PV}.tar.gz -> ${P}-${MY_NODE_N}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2+"
-KEYWORDS="~amd64 ~x86"
-IUSE="extras"
-
-DEPEND="
- acct-group/gvm
- acct-user/gvm
- dev-libs/libgcrypt:0=
- dev-libs/libxml2
- dev-libs/libxslt
- >=net-analyzer/gvm-libs-20.8.0
- net-libs/gnutls:=
- net-libs/libmicrohttpd"
-
-RDEPEND="
- ${DEPEND}
- >=net-analyzer/gvmd-20.8.0
- net-analyzer/ospd-openvas"
-
-BDEPEND="
- dev-python/polib
- >=net-libs/nodejs-10.0.0[ssl]
- >=sys-apps/yarn-1.15.2
- virtual/pkgconfig
- extras? (
- app-doc/doxygen[dot]
- app-doc/xmltoman
- app-text/htmldoc
- sys-devel/gettext
- )"
-
-BUILD_DIR="${WORKDIR}/${MY_PN}-${PV}_build"
-S="${WORKDIR}/${MY_PN}-${PV}"
-MY_NODE_DIR="${S}/${MY_PN}/"
-
-PATCHES=(
- # Disable yarn-fetch during compile.
- # AND Remove ugly uninstall-snippet that causes failing re-emerge.
- "${FILESDIR}/${P}-node.patch"
-)
-
-src_prepare() {
- cmake_src_prepare
- # We will use pre-generated npm stuff.
- mv "${WORKDIR}/${MY_NODE_N}" "${MY_NODE_DIR}" || die "couldn't move node_modules"
- # Update .yarnrc accordingly.
- echo "--modules-folder ${MY_NODE_DIR}" >> "${S}/${MY_PN}/.yarnrc" || die "echo failed"
- # QA-Fix | Remove !CLANG doxygen warnings for 9.0.0
- if use extras; then
- if ! tc-is-clang; then
- local f
- for f in gsad/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_PID_DIR=${EPREFIX}/run/"
- "-DDEFAULT_CONFIG_DIR=${EPREFIX}/etc/default"
- "-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 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}/${MY_DN}/doc/generated/html/." )
- fi
- cmake_src_install
-
- insinto /etc/gvm/sysconfig
- doins "${FILESDIR}/${MY_DN}-daemon.conf"
-
- insinto /etc/gvm/reverse-proxy
- doins "${FILESDIR}/${MY_PN}.nginx.reverse.proxy.example"
- fowners -R gvm:gvm /etc/gvm
-
- newinitd "${FILESDIR}/${MY_DN}.init" "${MY_DN}"
- newconfd "${FILESDIR}/${MY_DN}-daemon.conf" "${MY_DN}"
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/${MY_DN}.logrotate" "${MY_DN}"
-
- systemd_dounit "${FILESDIR}/${MY_DN}.service"
-}
diff --git a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-9.0.1.ebuild b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-9.0.1.ebuild
deleted file mode 100644
index 9bb270be4e3f..000000000000
--- a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-9.0.1.ebuild
+++ /dev/null
@@ -1,124 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CMAKE_MAKEFILE_GENERATOR="emake"
-inherit cmake systemd toolchain-funcs
-
-MY_PN="gsa"
-MY_DN="gsad"
-MY_NODE_N="node_modules"
-
-DESCRIPTION="Greenbone Security Assistant"
-HOMEPAGE="https://www.greenbone.net/en/"
-SRC_URI="https://github.com/greenbone/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
-https://github.com/greenbone/${MY_PN}/releases/download/v${PV}/gsa-node-modules-${PV}.tar.gz -> ${P}-${MY_NODE_N}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2+"
-KEYWORDS="~amd64 ~x86"
-IUSE="extras"
-
-DEPEND="
- dev-libs/libgcrypt:0=
- dev-libs/libxml2
- dev-libs/libxslt
- >=net-analyzer/gvm-libs-11.0.1
- net-libs/gnutls:=
- net-libs/libmicrohttpd"
-
-RDEPEND="
- ${DEPEND}
- >=net-analyzer/gvmd-9.0.1
- net-analyzer/ospd-openvas"
-
-BDEPEND="
- dev-python/polib
- >=net-libs/nodejs-8.12.0[ssl]
- >=sys-apps/yarn-1.15.2
- virtual/pkgconfig
- extras? (
- app-doc/doxygen[dot]
- app-doc/xmltoman
- app-text/htmldoc
- sys-devel/gettext
- )"
-
-BUILD_DIR="${WORKDIR}/${MY_PN}-${PV}_build"
-S="${WORKDIR}/${MY_PN}-${PV}"
-MY_NODE_DIR="${S}/${MY_PN}/"
-
-PATCHES=(
- # Disable yarn-fetch during compile.
- "${FILESDIR}/${PN}-8.0.1-node.patch"
- # Remove ugly uninstall-snippet that causes failing re-emerge.
- "${FILESDIR}/${P}-uninstall-snippet.patch"
- # Replace deprecated glibc sys_siglist with strsignal
- "${FILESDIR}/${P}-glibc_siglist.patch"
-)
-
-src_prepare() {
- cmake_src_prepare
- # We will use pre-generated npm stuff.
- mv "${WORKDIR}/${MY_NODE_N}" "${MY_NODE_DIR}" || die "couldn't move node_modules"
- # Update .yarnrc accordingly.
- echo "--modules-folder ${MY_NODE_DIR}" >> "${S}/${MY_PN}/.yarnrc" || die "echo failed"
- # QA-Fix | Remove !CLANG doxygen warnings for 9.0.0
- if use extras; then
- if ! tc-is-clang; then
- local f
- for f in gsad/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_PID_DIR=${EPREFIX}/run/"
- "-DDEFAULT_CONFIG_DIR=${EPREFIX}/etc/default"
- "-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 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}/${MY_DN}/doc/generated/html/." )
- fi
- cmake_src_install
-
- insinto /etc/gvm/sysconfig
- doins "${FILESDIR}/${MY_DN}-daemon.conf"
-
- insinto /etc/gvm/reverse-proxy
- doins "${FILESDIR}/${MY_PN}.nginx.reverse.proxy.example"
- fowners -R gvm:gvm /etc/gvm
-
- newinitd "${FILESDIR}/${MY_DN}.init" "${MY_DN}"
- newconfd "${FILESDIR}/${MY_DN}-daemon.conf" "${MY_DN}"
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/${MY_DN}.logrotate" "${MY_DN}"
-
- systemd_dounit "${FILESDIR}/${MY_DN}.service"
-}
diff --git a/net-analyzer/greenbone-security-assistant/metadata.xml b/net-analyzer/greenbone-security-assistant/metadata.xml
deleted file mode 100644
index 9383ad622b7e..000000000000
--- a/net-analyzer/greenbone-security-assistant/metadata.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>jonas.licht@gmail.com</email>
- <name>Jonas Licht</name>
- </maintainer>
- <maintainer type="project" proxied="proxy">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
- <use>
- <flag name="extras">Pdf results, extra fonts, html docs support</flag>
- </use>
- <longdescription lang="en">
- The Greenbone Security Assistant is the web interface developed for the Greenbone Security Manager appliances.
- It connects to the Greenbone Vulnerability Manager GVM to provide a full-featured user interface for vulnerability management.
- Greenbone Security Assistant consists of GSA - The webpage written in React and
- GSAD - The HTTP server talking to the GVM daemon.
- </longdescription>
- <upstream>
- <remote-id type="github">greenbone/gsa</remote-id>
- </upstream>
-</pkgmetadata>