summaryrefslogtreecommitdiff
path: root/security/openvas
diff options
context:
space:
mode:
Diffstat (limited to 'security/openvas')
-rw-r--r--security/openvas/Makefile3
-rw-r--r--security/openvas/distinfo6
-rw-r--r--security/openvas/files/patch-misc_plugutils.c11
-rw-r--r--security/openvas/files/patch-src_attack.c15
-rw-r--r--security/openvas/pkg-plist4
5 files changed, 30 insertions, 9 deletions
diff --git a/security/openvas/Makefile b/security/openvas/Makefile
index 34e9452a0b61..27e3a9a1a15a 100644
--- a/security/openvas/Makefile
+++ b/security/openvas/Makefile
@@ -1,5 +1,6 @@
PORTNAME= openvas
-DISTVERSION= 23.16.1
+DISTVERSION= 23.20.1
+PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= security
diff --git a/security/openvas/distinfo b/security/openvas/distinfo
index fe1fd27dc51e..321cb33a54a7 100644
--- a/security/openvas/distinfo
+++ b/security/openvas/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1744680509
-SHA256 (greenbone-openvas-scanner-v23.16.1_GH0.tar.gz) = 6ef32eab6fe19d3b37589705f9b2e4539a0572cd70bc8b16d217078080dad827
-SIZE (greenbone-openvas-scanner-v23.16.1_GH0.tar.gz) = 1550974
+TIMESTAMP = 1750728484
+SHA256 (greenbone-openvas-scanner-v23.20.1_GH0.tar.gz) = 80fbf610520c4304e901b803828e296d942ec76e95751c5607de06ef2295fcea
+SIZE (greenbone-openvas-scanner-v23.20.1_GH0.tar.gz) = 1580761
diff --git a/security/openvas/files/patch-misc_plugutils.c b/security/openvas/files/patch-misc_plugutils.c
new file mode 100644
index 000000000000..5c04ea7c4825
--- /dev/null
+++ b/security/openvas/files/patch-misc_plugutils.c
@@ -0,0 +1,11 @@
+--- misc/plugutils.c.orig 2025-08-01 11:38:10 UTC
++++ misc/plugutils.c
+@@ -74,7 +74,7 @@ add_kb_usage (struct script_infos *args, size_t size)
+ kb_usage += size;
+ if (kb_usage > max_kb_usage)
+ {
+- g_warning ("KB usage exceeded %lu MB. Unable to store any further KB "
++ g_warning ("KB usage exceeded %zu MB. Unable to store any further KB "
+ "Items for script %s",
+ max_kb_usage / 1024 / 1024, args->name);
+ return -1;
diff --git a/security/openvas/files/patch-src_attack.c b/security/openvas/files/patch-src_attack.c
index af15212b9768..9a78559b0a30 100644
--- a/security/openvas/files/patch-src_attack.c
+++ b/security/openvas/files/patch-src_attack.c
@@ -1,5 +1,5 @@
---- src/attack.c 2025-03-03 04:49:55.000000000 -0800
-+++ src/attack.c 2025-04-14 20:09:40.968033000 -0700
+--- src/attack.c.orig 2025-05-27 12:10:19 UTC
++++ src/attack.c
@@ -31,7 +31,6 @@
#include "utils.h"
@@ -8,7 +8,7 @@
#include <errno.h> /* for errno() */
#include <fcntl.h>
#include <glib.h>
-@@ -1555,14 +1554,14 @@
+@@ -1555,21 +1554,21 @@ stop:
gettimeofday (&now, NULL);
if (test_alive_hosts_only)
{
@@ -27,3 +27,12 @@
gvm_hosts_count (hosts));
if (prefs_get ("report_scripts"))
+ {
+ char *buff =
+- g_strdup_printf ("},\"scan_time\": {\"start\": %ld, \"stop\": %ld}}",
+- then.tv_sec, now.tv_sec);
++ g_strdup_printf ("},\"scan_time\": {\"start\": %lld, \"stop\": %lld}}",
++ (long long)then.tv_sec, (long long)now.tv_sec);
+ char *path = g_strdup_printf (
+ "%s/%s-stats.json", prefs_get ("report_scripts"), globals->scan_id);
+
diff --git a/security/openvas/pkg-plist b/security/openvas/pkg-plist
index c7634dde26f2..650a981dbf83 100644
--- a/security/openvas/pkg-plist
+++ b/security/openvas/pkg-plist
@@ -3,10 +3,10 @@ bin/openvas-nasl-lint
@sample %%ETCDIR%%/openvas_log.conf.sample
lib/libopenvas_misc.so
lib/libopenvas_misc.so.23
-lib/libopenvas_misc.so.23.16.1
+lib/libopenvas_misc.so.23.20.1
lib/libopenvas_nasl.so
lib/libopenvas_nasl.so.23
-lib/libopenvas_nasl.so.23.16.1
+lib/libopenvas_nasl.so.23.20.1
sbin/openvas
share/man/man1/openvas-nasl-lint.1.gz
share/man/man1/openvas-nasl.1.gz