aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-05-11 05:47:51 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-05-11 07:15:17 +0000
commit334b965b4c9ceb32aa341fc45b17720a13f98c9c (patch)
treec53f9b5a1b01b7d342d8add6b5d4f0482b749fe9
parentca02ce4e07505a42cd067333f3615ef012626eae (diff)
security/zlint: update 3.6.8 → 3.7.0
-rw-r--r--security/zlint/Makefile3
-rw-r--r--security/zlint/distinfo10
-rw-r--r--security/zlint/files/patch-vendor_github.com_zmap_zcrypto_x509_root__bsd.go30
3 files changed, 36 insertions, 7 deletions
diff --git a/security/zlint/Makefile b/security/zlint/Makefile
index 7b1e30062190..3a89b6aed06d 100644
--- a/security/zlint/Makefile
+++ b/security/zlint/Makefile
@@ -1,7 +1,6 @@
PORTNAME= zlint
DISTVERSIONPREFIX= v
-DISTVERSION= 3.6.8
-PORTREVISION= 7
+DISTVERSION= 3.7.0
CATEGORIES= security www
MAINTAINER= yuri@FreeBSD.org
diff --git a/security/zlint/distinfo b/security/zlint/distinfo
index ceec2ce9c5ec..ae8e1752b7b8 100644
--- a/security/zlint/distinfo
+++ b/security/zlint/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1762635027
-SHA256 (go/security_zlint/zlint-v3.6.8/v3.6.8.mod) = e76d096e0e1ed78f182bc5dba06b48a47a22ec30893a58f1ab7c2b5516b3f63e
-SIZE (go/security_zlint/zlint-v3.6.8/v3.6.8.mod) = 445
-SHA256 (go/security_zlint/zlint-v3.6.8/v3.6.8.zip) = bd7bea24ad0ccf75e8c534a9eec958d59e728e289f7620b56b14c7e340b74efc
-SIZE (go/security_zlint/zlint-v3.6.8/v3.6.8.zip) = 4215077
+TIMESTAMP = 1778478012
+SHA256 (go/security_zlint/zlint-v3.7.0/v3.7.0.mod) = 014d191f2c3b98dfa26e22c0ab92a0843bbd36e48a52700126a0e11e672b53ef
+SIZE (go/security_zlint/zlint-v3.7.0/v3.7.0.mod) = 406
+SHA256 (go/security_zlint/zlint-v3.7.0/v3.7.0.zip) = 654b3d2881256c0fd74993bd3b6287d87e33f286bcd45d37b2ba136773d09a8c
+SIZE (go/security_zlint/zlint-v3.7.0/v3.7.0.zip) = 4501895
diff --git a/security/zlint/files/patch-vendor_github.com_zmap_zcrypto_x509_root__bsd.go b/security/zlint/files/patch-vendor_github.com_zmap_zcrypto_x509_root__bsd.go
new file mode 100644
index 000000000000..d2b7cb627d78
--- /dev/null
+++ b/security/zlint/files/patch-vendor_github.com_zmap_zcrypto_x509_root__bsd.go
@@ -0,0 +1,30 @@
+-- Add missing root_bsd.go to zcrypto to fix build on FreeBSD
+-- The vendored zcrypto was missing FreeBSD-specific certificate paths
+-- leading to "undefined: certFiles" and "undefined: certDirectories" errors.
+
+--- vendor/github.com/zmap/zcrypto/x509/root_bsd.go.orig 2026-05-11 05:45:46 UTC
++++ vendor/github.com/zmap/zcrypto/x509/root_bsd.go
+@@ -0,0 +1,23 @@
++// Copyright 2015 The Go Authors. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++//go:build dragonfly || freebsd || netbsd || openbsd
++// +build dragonfly freebsd netbsd openbsd
++
++package x509
++
++// Possible certificate files; stop after finding one.
++var certFiles = []string{
++ "/usr/local/etc/ssl/cert.pem", // FreeBSD
++ "/etc/ssl/cert.pem", // OpenBSD
++ "/usr/local/share/certs/ca-root-nss.crt", // DragonFly
++ "/etc/openssl/certs/ca-certificates.crt", // NetBSD
++}
++
++// Possible directories with certificate files; stop after successfully
++// reading at least one file from a directory.
++var certDirectories = []string{
++ "/etc/ssl/certs", // FreeBSD
++ "/usr/local/share/certs", // FreeBSD
++}