git: 84b72a1703f8 - main - security/zaproxy: Update cache files because gradle was updated

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sun, 24 Mar 2024 00:24:06 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=84b72a1703f8f24c308dca77823b33b1cdd48da5

commit 84b72a1703f8f24c308dca77823b33b1cdd48da5
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2024-03-24 00:22:20 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2024-03-24 00:22:20 +0000

    security/zaproxy: Update cache files because gradle was updated
    
    - Fix open options menu
    PR:             276730
    Reported by:    salvadore
---
 security/zaproxy/Makefile                          |  1 +
 security/zaproxy/distinfo                          | 10 +++++-----
 ...rc_main_java_org_parosproxy_paros_Constant.java | 23 ++++++++++++++++++++++
 3 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/security/zaproxy/Makefile b/security/zaproxy/Makefile
index 4ead5886e9e8..4e92038c9f9a 100644
--- a/security/zaproxy/Makefile
+++ b/security/zaproxy/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	zaproxy
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.14.0
+PORTREVISION=	1
 CATEGORIES=	security java
 
 MAINTAINER=	acm@FreeBSD.org
diff --git a/security/zaproxy/distinfo b/security/zaproxy/distinfo
index 0648bfdd5661..1205a06c49d7 100644
--- a/security/zaproxy/distinfo
+++ b/security/zaproxy/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1697561594
-SHA256 (zaproxy-2.14.0-deps.tar.gz) = b26f5ed89c10de95b3cb1d39224c8cb9f4e154b3a78c0bcc75106c152c2d9feb
-SIZE (zaproxy-2.14.0-deps.tar.gz) = 332187220
-SHA256 (zaproxy-2.14.0-plugins.tar.gz) = d6ca3c5179347c02c2addad85c9f29758143e2aaf5bb9c4e6752684982daef0c
-SIZE (zaproxy-2.14.0-plugins.tar.gz) = 232482983
+TIMESTAMP = 1711238273
+SHA256 (zaproxy-2.14.0-deps.tar.gz) = 961ed29f92d165bd06ed8b54821760fbf339069f80a6e26d3c9d77ea3fa0f2d2
+SIZE (zaproxy-2.14.0-deps.tar.gz) = 369588532
+SHA256 (zaproxy-2.14.0-plugins.tar.gz) = 93d2f25beecd882ea8af173665372faab82c0b8c1e0389e3dbededc2909e3517
+SIZE (zaproxy-2.14.0-plugins.tar.gz) = 232482946
 SHA256 (zaproxy-zaproxy-v2.14.0_GH0.tar.gz) = e775b827f2c1aa8ed93dae5c2677399fedbe8c64cbdd21e0122c3799706ca0ea
 SIZE (zaproxy-zaproxy-v2.14.0_GH0.tar.gz) = 5541732
diff --git a/security/zaproxy/files/patch-zap_src_main_java_org_parosproxy_paros_Constant.java b/security/zaproxy/files/patch-zap_src_main_java_org_parosproxy_paros_Constant.java
new file mode 100644
index 000000000000..31a1e2f23177
--- /dev/null
+++ b/security/zaproxy/files/patch-zap_src_main_java_org_parosproxy_paros_Constant.java
@@ -0,0 +1,23 @@
+--- zap/src/main/java/org/parosproxy/paros/Constant.java.orig	2024-03-24 00:03:43 UTC
++++ zap/src/main/java/org/parosproxy/paros/Constant.java
+@@ -1405,9 +1405,19 @@ public final class Constant {
+         return matcher.find();
+     }
+ 
++    // Determine FreeBSD Operating System
++    // ZAP: Changed to final.
++    private static final Pattern patternFreeBSD = Pattern.compile("freebsd", Pattern.CASE_INSENSITIVE);
++
++    public static boolean isFreeBSD() {
++        String os_name = System.getProperty("os.name");
++        Matcher matcher = patternFreeBSD.matcher(os_name);
++        return matcher.find();
++    }
++
+     // Determine Linux Operating System
+     // ZAP: Changed to final.
+-    private static final Pattern patternLinux = Pattern.compile("linux", Pattern.CASE_INSENSITIVE);
++    private static final Pattern patternLinux = Pattern.compile("linux|freebsd", Pattern.CASE_INSENSITIVE);
+ 
+     public static boolean isLinux() {
+         String os_name = System.getProperty("os.name");