diff options
Diffstat (limited to 'net-analyzer/openvas-libraries/files')
7 files changed, 0 insertions, 311 deletions
diff --git a/net-analyzer/openvas-libraries/files/OPENVAS.gentoo b/net-analyzer/openvas-libraries/files/OPENVAS.gentoo deleted file mode 100644 index ab3f4c8918c7..000000000000 --- a/net-analyzer/openvas-libraries/files/OPENVAS.gentoo +++ /dev/null @@ -1,106 +0,0 @@ ------------------------------------------------------------------ ---------------------------IMPORTANT------------------------------ ------------------------------------------------------------------ -You will need to set up your /etc/redis.conf file properly before -running openvas-scanner for the first time. -For details, please see the example config file installed to: ---> /etc/openvas/redis.conf.example -Please configure /etc/openvas/openvassd.conf properly -according to redis listening unix socket. -e.g. /etc/openvas/openvassd.conf --> kb_location = /tmp/redis.sock -If you use first-start script it will check various issues and -automatically setup OpenVAS for first time use. -GSA(Greenbone Security Agent) WebUI listens port -9392(local) default. If you want to use nginx reverse proxy -to reach WebUI please see the example config file ---> /etc/openvas/gsa.nginx.reverse.proxy.example -otherwise you can change port to 443 or 80. - ------------------------------------------------------------------ ----------------------------SCRIPTS------------------------------- ------------------------------------------------------------------ -'first-start' ---> Automatically setup OpenVAS for first time use ---> Installed in /etc/openvas/scripts - -'openvas-feed-sync' ---> Updates Feeds | You can add this to cron ---> Installed in /etc/openvas/scripts - ------------------------------------------------------------------ -----------ENVIRONMENT SETTINGS FOR SYSTEMD & OPEN-RC------------- ------------------------------------------------------------------ -'openvas-scanner-daemon.conf' ---> OpenVAS Scanner systemd daemon settings ---> Installed in /etc/openvas/sysconfig - -'gvmd-daemon.conf' ---> OpenVAS Manager systemd daemon settings ---> Installed in /etc/openvas/sysconfig - -'gsa-daemon.conf ---> Greenbone Security Agent systemd daemon settings ---> Installed in /etc/openvas/sysconfig - -'openvas-scanner' ---> OpenVAS Scanner open-rc daemon settings ---> Installed in /etc/config.d - -'gvmd' ---> OpenVAS Manager open-rc daemon settings ---> Installed in /etc/config.d - -'gsa' ---> Greenbone Security Agent systemd daemon settings ---> Installed in /etc/config.d - ------------------------------------------------------------------ ---------QUICK START COMMANDS (IF YOU DON'T USE SCRIPTS)---------- ------------------------------------------------------------------ -'env-update && source /etc/profile' ---> Update PATHS - -'openvas-manage-certs -a' ---> Create certificates automatically first time - -'greenbone-nvt-sync' ---> Update NVT Feed - -'greenbone-scapdata-sync' ---> Update scapdata Feed - -'greenbone-certdata-sync' ---> Update certdata Feed - -'openvassd --foreground --only-cache' ---> Generate initial NVT cache and quit - -'rc-service openvas-scanner start or systemctl start openvas-scanner' ---> Start OpenVAS-Scanner - -'openvasmd --rebuild --progress' ---> Initialize the Database - -'openvasmd --create-user=admin --role=Admin' ---> Create User for WEBUI.Save your password - -'rc-service gvmd start or systemctl start gvmd' ---> Start OpenVAS-Manager - -'rc-service gsa start or systemctl start gsa' ---> Start the Greenbone Security Assistant - ------------------------------------------------------------------ ----------------------PLUGIN KEY AND SIGNING---------------------- ------------------------------------------------------------------ -'gpg --homedir=/etc/openvas/gnupg --gen-key' ---> Generate Key - -'wget https://www.greenbone.net/GBCommunitySigningKey.asc' ---> Official OpenVAS Transfer Key - -'gpg --homedir=/etc/openvas/gnupg --import GBCommunitySigningKey.asc' ---> Import OpenVAS Transfer Key - -'gpg --homedir=/etc/openvas/gnupg --lsign-key 0ED1E580' ---> Sign diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-cachedir.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-cachedir.patch deleted file mode 100644 index 34fc9f68f437..000000000000 --- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-cachedir.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 01:40:41.981031382 +0300 -+++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 01:44:08.867074208 +0300 -@@ -173,7 +173,6 @@ - set (OPENVAS_DATA_DIR "${DATADIR}/openvas") - set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") - set (OPENVAS_LOG_DIR "${LOCALSTATEDIR}/log/openvas") --set (OPENVAS_CACHE_DIR "${LOCALSTATEDIR}/cache/openvas") - set (OPENVAS_SYSCONF_DIR "${SYSCONFDIR}/openvas") - - set (OPENVAS_LIB_INSTALL_DIR "${LIBDIR}") -@@ -330,7 +329,6 @@ - - install (DIRECTORY DESTINATION ${OPENVAS_LOG_DIR}) - install (DIRECTORY DESTINATION ${OPENVAS_DATA_DIR}) --install (DIRECTORY DESTINATION ${OPENVAS_CACHE_DIR}) - install (DIRECTORY DESTINATION ${OPENVAS_PID_DIR}) - install (DIRECTORY DESTINATION ${OPENVAS_SYSCONF_DIR}) - install (DIRECTORY diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch deleted file mode 100644 index a2809087f820..000000000000 --- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch +++ /dev/null @@ -1,73 +0,0 @@ ---- gvm-libs-9.0.3/nasl/nasl_isotime.c 2018-08-29 19:01:12.000000000 +0300 -+++ gvm-libs-9.0.3/nasl/nasl_isotime.c 2019-02-01 21:11:40.460358131 +0300 -@@ -102,9 +102,13 @@ - struct tm *tp; - - tp = gmtime (&atime); -- snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -+ if (snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", - 1900 + tp->tm_year, tp->tm_mon+1, tp->tm_mday, -- tp->tm_hour, tp->tm_min, tp->tm_sec); -+ tp->tm_hour, tp->tm_min, tp->tm_sec) < 0) -+ { -+ *timebuf = '\0'; -+ return; -+ } - } - } - -@@ -480,8 +484,9 @@ - || year < 0 || month < 1 || day < 1) - return 1; - -- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -- year, month, day, hour, minute, sec); -+ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -+ year, month, day, hour, minute, sec) < 0) -+ return 1; - return 0; - } - -@@ -519,8 +524,9 @@ - || year < 0 || month < 1 || day < 1) - return 1; - -- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -- year, month, day, hour, minute, sec); -+ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -+ year, month, day, hour, minute, sec) < 0) -+ return 1; - return 0; - } - -@@ -558,13 +564,14 @@ - || year < 0 || month < 1 || day < 1) - return 1; - -- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -- year, month, day, hour, minute, sec); -+ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d", -+ year, month, day, hour, minute, sec) < 0) -+ return 1; - return 0; - } - - -- -+ - /** - * @brief Return the current time in ISO format - * @naslfn{isotime_now} -@@ -784,9 +791,9 @@ - memcpy (timebuf, string, ISOTIME_SIZE -1); - timebuf[ISOTIME_SIZE - 1] = 0; - -- nyears = get_int_local_var_by_name (lexic, "years", 0); -- ndays = get_int_local_var_by_name (lexic, "days", 0); -- nseconds = get_int_local_var_by_name (lexic, "seconds", 0); -+ nyears = get_int_var_by_name (lexic, "years", 0); -+ ndays = get_int_var_by_name (lexic, "days", 0); -+ nseconds = get_int_var_by_name (lexic, "seconds", 0); - - if (nyears && add_years_to_isotime (timebuf, nyears)) - return NULL; diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-netsnmp.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-netsnmp.patch deleted file mode 100644 index 69305576d0d7..000000000000 --- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-netsnmp.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gvm-libs-9.0.3/CMakeLists.txt 2018-08-29 19:01:12.000000000 +0300 -+++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-01 20:58:45.946113012 +0300 -@@ -238,7 +238,7 @@ - OUTPUT_STRIP_TRAILING_WHITESPACE) - - message (STATUS "Looking for netsnmp...") -- find_library (SNMP snmp) -+ find_library (SNMP netsnmp) - message (STATUS "Looking for netsnmp... ${SNMP}") - if (SNMP) - execute_process (COMMAND net-snmp-config --libs diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rpath.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rpath.patch deleted file mode 100644 index e14e2965e9fe..000000000000 --- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rpath.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 21:42:27.367627369 +0300 -+++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 21:45:48.961135211 +0300 -@@ -80,7 +80,7 @@ - # TODO: Check pkg-config (maybe with code like in gsa/CMakeLists.txt). - - ## CPack configuration -- -+set (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) - set (CPACK_CMAKE_GENERATOR "Unix Makefiles") - set (CPACK_GENERATOR "TGZ") - set (CPACK_INSTALL_CMAKE_PROJECTS ".;openvas-libraries;ALL;/") diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rundir.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rundir.patch deleted file mode 100644 index 6ecdc8a64219..000000000000 --- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-rundir.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 14:50:41.230530261 +0300 -+++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 14:55:08.649433070 +0300 -@@ -162,9 +162,9 @@ - set (DATADIR "${CMAKE_INSTALL_PREFIX}/share") - endif (NOT DATADIR) - --if (NOT OPENVAS_PID_DIR) -- set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") --endif (NOT OPENVAS_PID_DIR) -+#if (NOT OPENVAS_PID_DIR) -+# set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") -+#endif (NOT OPENVAS_PID_DIR) - - #if (NOT SYSCONFDIR) - # set (SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc") ---- gvm-libs-9.0.3/base/pidfile.c 2018-08-29 19:01:12.000000000 +0300 -+++ gvm-libs-9.0.3/base/pidfile.c 2019-02-04 15:08:04.600958560 +0300 -@@ -59,7 +59,7 @@ - pidfile_create (gchar * daemon_name) - { - gchar *name_pid = g_strconcat (daemon_name, ".pid", NULL); -- gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid, NULL); -+ gchar *pidfile_name = g_build_filename (name_pid, NULL); - FILE *pidfile = g_fopen (pidfile_name, "w"); - - g_free (name_pid); -@@ -88,7 +88,7 @@ - pidfile_remove (gchar * daemon_name) - { - gchar *name_pid = g_strconcat (daemon_name, ".pid", NULL); -- gchar *pidfile_name = g_build_filename (OPENVAS_PID_DIR, name_pid, NULL); -+ gchar *pidfile_name = g_build_filename (name_pid, NULL); - gchar *pidfile_contents; - - g_free (name_pid); ---- gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 17:39:39.776282496 +0300 -+++ gvm-libs-9.0.3/CMakeLists.txt 2019-02-04 17:39:23.160269081 +0300 -@@ -329,7 +329,6 @@ - - install (DIRECTORY DESTINATION ${OPENVAS_LOG_DIR}) - install (DIRECTORY DESTINATION ${OPENVAS_DATA_DIR}) --install (DIRECTORY DESTINATION ${OPENVAS_PID_DIR}) - install (DIRECTORY DESTINATION ${OPENVAS_SYSCONF_DIR}) - install (DIRECTORY - DESTINATION ${OPENVAS_SYSCONF_DIR}/gnupg diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-underlinking.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-underlinking.patch deleted file mode 100644 index e3c25f9b9c41..000000000000 --- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-underlinking.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- gvm-libs-9.0.3/base/CMakeLists.txt 2019-02-04 15:11:20.848707365 +0300 -+++ gvm-libs-9.0.3/base/CMakeLists.txt 2019-02-04 15:40:27.745955904 +0300 -@@ -88,7 +88,7 @@ - assuan libgpg-error ole32 ws2_32 ffi z shlwapi dnsapi winmm) - target_link_libraries (openvas_base_shared ${W32LIBS}) - else (MINGW) -- target_link_libraries (openvas_base_shared LINK_PRIVATE ${GLIB_LDFLAGS} ${GIO_LDFLAGS} ${ZLIB_LDFLAGS} ${GPGME_LDFLAGS} ${REDIS_LDFLAGS} ${LINKER_HARDENING_FLAGS}) -+ target_link_libraries (openvas_base_shared LINK_PRIVATE ${LIBSSH_LDFLAGS} ${GLIB_LDFLAGS} ${GIO_LDFLAGS} ${ZLIB_LDFLAGS} ${GPGME_LDFLAGS} ${REDIS_LDFLAGS} ${LINKER_HARDENING_FLAGS}) - endif (MINGW) - endif (BUILD_SHARED) - -@@ -102,10 +102,10 @@ - - # Link the test-hosts executable - # TODO: This is currently only built for BUILD_SHARED --if (BUILD_SHARED) -- add_executable (test-hosts test-hosts.c) -- target_link_libraries (test-hosts openvas_base_shared ${GLIB_LDFLAGS} ${REDIS_LDFLAGS}) --endif (BUILD_SHARED) -+#if (BUILD_SHARED) -+# add_executable (test-hosts test-hosts.c) -+# target_link_libraries (test-hosts openvas_base_shared ${GLIB_LDFLAGS} ${REDIS_LDFLAGS}) -+#endif (BUILD_SHARED) - - ## Install - if (BUILD_STATIC) -@@ -123,3 +123,4 @@ - endif (BUILD_SHARED) - - ## End -+ ---- gvm-libs-9.0.3/misc/CMakeLists.txt 2019-02-04 15:11:20.847707368 +0300 -+++ gvm-libs-9.0.3/misc/CMakeLists.txt 2019-02-04 15:49:34.035071570 +0300 -@@ -146,7 +146,7 @@ - else (MINGW) - target_link_libraries (openvas_misc_shared LINK_PRIVATE ${GNUTLS_LDFLAGS} openvas_base_shared ${UUID_LDFLAGS} - ${GLIB_LDFLAGS} ${PCAP_LDFLAGS} ${LIBSSH_LDFLAGS} ${LDAP_LDFLAGS} -- ${GCRYPT_LDFLAGS} ${RADIUS_LDFLAGS} -+ ${REDIS_LDFLAGS} ${GCRYPT_LDFLAGS} ${RADIUS_LDFLAGS} - ${LINKER_HARDENING_FLAGS}) - endif (MINGW) - endif (BUILD_SHARED) -@@ -198,3 +198,4 @@ - ARCHIVE DESTINATION ${LIBDIR} - PUBLIC_HEADER DESTINATION "${INCLUDEDIR}/openvas/misc") - endif (BUILD_SHARED) -+ |