diff options
author | Hasan ÇALIŞIR <hasan.calisir@psauxit.com> | 2019-12-18 23:16:12 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-12-21 17:06:22 +0200 |
commit | 10e7b0c0248027ba14e30bbcda8131469e3b672b (patch) | |
tree | 411b852cf2b1c868ef4bb0d4655dc258fa78f037 | |
parent | net-analyzer/greenbone-security-assistant: drop old 7.0.3 from !RDEPEND (diff) | |
download | gentoo-10e7b0c0248027ba14e30bbcda8131469e3b672b.tar.gz gentoo-10e7b0c0248027ba14e30bbcda8131469e3b672b.tar.bz2 gentoo-10e7b0c0248027ba14e30bbcda8131469e3b672b.zip |
net-analyzer/greenbone-security-assistant: drop old 7.0.3
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir@psauxit.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
9 files changed, 0 insertions, 316 deletions
diff --git a/net-analyzer/greenbone-security-assistant/Manifest b/net-analyzer/greenbone-security-assistant/Manifest index 4b67fa508149..ff6ec73e1a93 100644 --- a/net-analyzer/greenbone-security-assistant/Manifest +++ b/net-analyzer/greenbone-security-assistant/Manifest @@ -1,3 +1,2 @@ -DIST greenbone-security-assistant-7.0.3.tar.gz 2918954 BLAKE2B 4a6cd5d8378bcbb0a9df6cb5b8f6560060f15d0b0cb53d2c61692cb2bc2cd86af6e9cdeb5040c4d7020c3b016779a76ec517d54614388c62aaedd596f55fa3c4 SHA512 7e1c1ef939ba08dab3b78baf1aa9c110be2febfbed5d67eefe8110c60f5089a1af44bc26693657226f417c6bd516a4a656eb159dae2a78f878e1a1b6c222b117 DIST greenbone-security-assistant-8.0.1-node_modules.tar.gz 34084175 BLAKE2B 17c9e24961b63b957f932e4c5970113499ad65655b42e624284fb22a495d50c12e5f8289da4e17db717885b65909a6e18213fa312052c9c06c9bdc37816204f1 SHA512 552ea55fe218ae2345fa45b43af349825f255ccd86137dd245679efe6abc805d16c4ced3599f644d9b9f2686047b486d5e0c8aa4eaa0cbbf13157b9e2dbc8cc2 DIST greenbone-security-assistant-8.0.1.tar.gz 1558918 BLAKE2B 75287784ed215300cfb30101d39b06b134092ca2d4311bcca976be23cc289529c6a8d661b99cb28e890c68f27e93a9259681add067749a772b7e3aea28761f3b SHA512 b91c1c4b8073c3ad3d3d636abbaa7881393f1448eae7366636ff618391c199c240e6bc4c848740a4267b4142aa872fb91c0798b8034d152d16016e650fbda2b8 diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch deleted file mode 100644 index cce885e10e01..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch +++ /dev/null @@ -1,107 +0,0 @@ ---- gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:22:19.297954361 +0300 -+++ gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:27:57.690214371 +0300 -@@ -1366,7 +1366,8 @@ - || (strstr (param_name, "_id") - == param_name + strlen (param_name) - strlen ("_id")) - || (strcmp (param_name, "name") == 0 -- && strcasecmp (prev_action, "Run Wizard") == 0) -+ && (strcasecmp (prev_action, "Run Wizard") == 0 -+ || strcasecmp (next_cmd, "auth_settings") == 0)) - || (strcmp (param_name, "get_name") == 0 - && strcasecmp (next_cmd, "wizard_get") == 0)) - { -@@ -25984,7 +25976,7 @@ - - html = response_from_entity (connection, credentials, params, entity, - (no_redirect && strcmp (no_redirect, "0")), -- NULL, NULL, -+ NULL, "auth_settings", - NULL, "modify_auth", - "Save Authentication Configuration", - response_data); ---- gsa-7.0.3/src/html/classic/js/greenbone.js 2018-03-28 16:23:57.000000000 +0300 -+++ gsa-7.0.3/src/html/classic/js/greenbone.js 2019-02-02 03:40:37.162714538 +0300 -@@ -1559,6 +1559,9 @@ - if (reload === 'next') { - reload_next(response); - } -+ else if (reload === 'window') { -+ location.reload(); -+ } - }, - function(jqXHR) { - if (jqXHR.status == 0 && jqXHR.readyState == 0) { ---- gsa-7.0.3/src/html/classic/omp.xsl 2018-03-28 16:23:57.000000000 +0300 -+++ gsa-7.0.3/src/html/classic/omp.xsl 2019-02-02 03:44:28.470599715 +0300 -@@ -36775,7 +36822,8 @@ - <!-- AUTHENTICATION DESCRIPTION --> - - <xsl:template match="group" mode="ldapauth"> -- <div class="section-box" id="ldap-box"> -+ <div class="section-box ajax-post" id="ldap-box" -+ data-button="form #save_button" data-reload="window"> - <form action="/omp" method="post" enctype="multipart/form-data"> - <input type="hidden" name="token" value="{/envelope/token}"/> - <input type="hidden" name="cmd" value="save_auth"/> -@@ -36784,6 +36832,15 @@ - <input type="hidden" name="filter" value="{gsa:envelope-filter ()}"/> - <!-- group name is e.g. of method:ldap --> - <input type="hidden" name="group" value="{@name}"/> -+ <!-- Auth type name for next page --> -+ <input type="hidden" name="name" value="ldap"/> -+ -+ <div class="error-dialog"> -+ <div class="text-center"> -+ <xsl:value-of select="gsa:i18n ('LDAP authentication config could not be modified.')"/> -+ </div> -+ </div> -+ - <table class="gbntable"> - <tr class="gbntablehead2"> - <td><xsl:value-of select="gsa:i18n ('Setting')"/></td> -@@ -36838,7 +36895,8 @@ - </tr> - <tr> - <td colspan="2" style="text-align:right;"> -- <input type="submit" name="submit" value="{gsa:i18n ('Save')}"/> -+ <input type="submit" name="submit" id="save_button" -+ value="{gsa:i18n ('Save')}"/> - </td> - </tr> - </table> -@@ -36847,7 +36905,8 @@ - </xsl:template> - - <xsl:template match="group" mode="radiusauth"> -- <div class="section-box" id="radius-box"> -+ <div class="section-box ajax-post" id="radius-box" -+ data-button="form #save_button" data-reload="window"> - <form action="/omp" method="post" enctype="multipart/form-data"> - <input type="hidden" name="token" value="{/envelope/token}"/> - <input type="hidden" name="cmd" value="save_auth"/> -@@ -36856,6 +36915,15 @@ - <input type="hidden" name="filter" value="{gsa:envelope-filter ()}"/> - <!-- group name is e.g. of method:radius_connect --> - <input type="hidden" name="group" value="{@name}"/> -+ <!-- Auth type name for next page --> -+ <input type="hidden" name="name" value="radius"/> -+ -+ <div class="error-dialog"> -+ <div class="text-center"> -+ <xsl:value-of select="gsa:i18n ('Radius authentication config could not be modified.')"/> -+ </div> -+ </div> -+ - <table class="gbntable"> - <tr class="gbntablehead2"> - <td><xsl:value-of select="gsa:i18n ('Setting')"/></td> -@@ -36890,7 +36958,8 @@ - </tr> - <tr> - <td colspan="2" style="text-align:right;"> -- <input type="submit" name="submit" value="{gsa:i18n ('Save')}"/> -+ <input type="submit" name="submit" id="save_button" -+ value="{gsa:i18n ('Save')}"/> - </td> - </tr> - </table> diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch deleted file mode 100644 index 5132e344a798..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- gsa-7.0.3/src/gsad_omp.c 2018-03-28 16:23:57.000000000 +0300 -+++ gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:12:16.617046562 +0300 -@@ -7737,16 +7738,21 @@ - g_string_append (xml, command_escaped); - g_free (command_escaped); - -+ response = NULL; - ret = omp (connection, credentials, &response, &entity, response_data, - command->str); - g_string_free (command, TRUE); -+ -+ if (ret) -+ { -+ free_entity (entity); -+ g_string_free (xml, TRUE); -+ } -+ - switch (ret) - { - case 0: - break; -- case -1: -- /* 'omp' set response. */ -- return response; - case 1: - response_data->http_status_code = MHD_HTTP_INTERNAL_SERVER_ERROR; - return gsad_message (credentials, -@@ -7770,10 +7776,14 @@ - "/omp?cmd=get_tasks", response_data); - } - -+ if (omp_success (entity) == 0) -+ set_http_status_from_entity (entity, response_data); - g_string_append (xml, response); - - g_string_append (xml, "</get_aggregate>"); - -+ free_entity (entity); -+ g_free (response); - return xsl_transform_omp (connection, credentials, params, - g_string_free (xml, FALSE), response_data); - } diff --git a/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf b/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf deleted file mode 100644 index 2c9a62eef811..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf +++ /dev/null @@ -1,31 +0,0 @@ -# OpenVAS Security Assistant command args -# man page --> https://www.mankier.com/8/gsad - -# e.g. --foreground | e.g. --no-redirect -- > Don't listen port 80 anymore -OPENVAS_SECURITY_ASSISTANT_OPTIONS="--no-redirect" - -# WebUI adress -OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS="--listen=127.0.0.1" - -# WebUI Port -OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT="--port=9392" - -# WebUI Manager Address -OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS="--mlisten=127.0.0.1" - -# WebUI Manager Port -OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT="--mport=9390" - -# TLS Settings -OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES="--gnutls-priorities=NORMAL" - -# If you use reverse proxy you must set OPENVAS_REVERSE_PROXY daemon arg -# otherwise you will get the below error. -# --------------------------------------------------------------- -# The request contained an unknown or invalid Host header. -# If you are trying to access GSA via its hostname or a proxy, -# make sure GSA is set up to allow it. -# --------------------------------------------------------------- - -# Reverse Proxy Settings ( e.g. --allow-header-host=subdomain.example.com ) -OPENVAS_REVERSE_PROXY="--allow-header-host=" diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.init b/net-analyzer/greenbone-security-assistant/files/gsa.init deleted file mode 100644 index 2b4636422422..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/gsa.init +++ /dev/null @@ -1,14 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -name="Greenbone Security Assistant Daemon" -command="/usr/sbin/gsad" -command_args="${OPENVAS_SECURITY_ASSISTANT_OPTIONS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES} ${OPENVAS_REVERSE_PROXY}" -pidfile="/var/run/gsad.pid" -command_background="true" - -depend() { - after bootmisc - need localmount net openvas-scanner gvmd -} diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.logrotate b/net-analyzer/greenbone-security-assistant/files/gsa.logrotate deleted file mode 100644 index 79e54e854319..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/gsa.logrotate +++ /dev/null @@ -1,9 +0,0 @@ -# logrotate for openvas security agent -/var/log/openvas/gsad.log { - daily - rotate 7 - compress - missingok - notifempty - sharedscripts -} diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.service b/net-analyzer/greenbone-security-assistant/files/gsa.service deleted file mode 100644 index bc8c1d9e285c..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/gsa.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description=OpenVAS Manager -After=network.target -After=openvas-scanner.service -After=gvmd.service -Wants=gvmd.service - -[Service] -Type=forking -EnvironmentFile=-/etc/openvas/sysconfig/gsa-daemon.conf -ExecStart=/usr/sbin/gsad $OPENVAS_SECURITY_ASSISTANT_OPTIONS $OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES $OPENVAS_REVERSE_PROXY -ExecReload=/bin/kill -HUP $MAINPID -KillMode=mixed -User=root -Group=root -TimeoutSec=1200 - -[Install] -WantedBy=multi-user.target diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d b/net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d deleted file mode 100644 index 18e820caec1b..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d +++ /dev/null @@ -1 +0,0 @@ -d /var/cache/openvassd 0775 diff --git a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild b/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild deleted file mode 100644 index 6fc3cbaf5271..000000000000 --- a/net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_MAKEFILE_GENERATOR="emake" -inherit cmake-utils systemd -MY_PN="gsa" - -DESCRIPTION="Greenbone Security Assistant for OpenVAS" -HOMEPAGE="http://www.openvas.org/" -SRC_URI="https://github.com/greenbone/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2+ BSD MIT" -KEYWORDS="~amd64 ~x86" -IUSE="extras" - -DEPEND=" - dev-libs/libgcrypt:0= - dev-libs/libxml2:2 - dev-libs/libxslt - >=net-analyzer/openvas-libraries-9.0.3 - net-libs/gnutls:=[tools] - net-libs/libmicrohttpd[messages] - extras? ( dev-python/polib )" - -RDEPEND=" - ${DEPEND} - ~net-analyzer/openvas-scanner-5.1.3 - >=net-analyzer/openvas-manager-7.0.3 - extras? ( dev-texlive/texlive-latexextra )" - -BDEPEND=" - 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}" - -PATCHES=( - "${FILESDIR}/${P}-memleak.patch" - "${FILESDIR}/${P}-auth.patch" -) - -src_prepare() { - cmake-utils_src_prepare - if use extras; then - doxygen -u "$S"/doc/Doxyfile_full.in || die - fi -} - -src_configure() { - local mycmakeargs=( - "-DCMAKE_INSTALL_PREFIX=${EPREFIX}/usr" - "-DLOCALSTATEDIR=${EPREFIX}/var" - "-DSYSCONFDIR=${EPREFIX}/etc" - ) - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - if use extras; then - cmake-utils_src_make -C "${BUILD_DIR}" doc - cmake-utils_src_make doc-full -C "${BUILD_DIR}" doc - HTML_DOCS=( "${BUILD_DIR}"/doc/generated/html/. ) - fi -} - -src_install() { - cmake-utils_src_install - - insinto /etc/openvas/sysconfig - doins "${FILESDIR}"/${MY_PN}-daemon.conf - - insinto /etc/openvas/reverse-proxy - doins "${FILESDIR}"/gsa.nginx.reverse.proxy.example - - newinitd "${FILESDIR}/${MY_PN}.init" ${MY_PN} - newconfd "${FILESDIR}/${MY_PN}-daemon.conf" ${MY_PN} - - insinto /etc/logrotate.d - newins "${FILESDIR}/${MY_PN}.logrotate" ${MY_PN} - - systemd_newtmpfilesd "${FILESDIR}/${MY_PN}.tmpfiles.d" ${MY_PN}.conf - systemd_dounit "${FILESDIR}"/${MY_PN}.service -} |