net-analyzer/greenbone-security-assistant: drop old 7.0.3
authorHasan ÇALIŞIR <hasan.calisir@psauxit.com>
Wed, 18 Dec 2019 20:16:12 +0000 (23:16 +0300)
committerJoonas Niilola <juippis@gentoo.org>
Sat, 21 Dec 2019 15:06:22 +0000 (17:06 +0200)
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>
net-analyzer/greenbone-security-assistant/Manifest
net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch [deleted file]
net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch [deleted file]
net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf [deleted file]
net-analyzer/greenbone-security-assistant/files/gsa.init [deleted file]
net-analyzer/greenbone-security-assistant/files/gsa.logrotate [deleted file]
net-analyzer/greenbone-security-assistant/files/gsa.service [deleted file]
net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d [deleted file]
net-analyzer/greenbone-security-assistant/greenbone-security-assistant-7.0.3-r1.ebuild [deleted file]

index 4b67fa508149fd8f4b081b0f7a42833946042015..ff6ec73e1a93940ef77e26cf16d85edacb9d3721 100644 (file)
@@ -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 (file)
index cce885e..0000000
+++ /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 (file)
index 5132e34..0000000
+++ /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 (file)
index 2c9a62e..0000000
+++ /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 (file)
index 2b46364..0000000
+++ /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 (file)
index 79e54e8..0000000
+++ /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 (file)
index bc8c1d9..0000000
+++ /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 (file)
index 18e820c..0000000
+++ /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 (file)
index 6fc3cba..0000000
+++ /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
-}