git: 7b0ecf53bd44 - main - security/lego: Update to 5.3.1

Daniel Engberg <[email protected]> Sat, 01 Aug 2026 07:32:59 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <6a6da12b.1f1db.28aa0ae3__9459.21247346035$1785569735$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7b0ecf53bd44a9612655392e8f040da0e110b726

commit 7b0ecf53bd44a9612655392e8f040da0e110b726
Author:     Matthew Horan <[email protected]>
AuthorDate: 2026-08-01 07:28:26 +0000
Commit:     Daniel Engberg <[email protected]>
CommitDate: 2026-08-01 07:32:29 +0000

    security/lego: Update to 5.3.1
    
    Additionally to submitted patch define "min" version of go(lang) and
    use GO_LDFLAGS
    
    Changelog: https://github.com/go-acme/lego/blob/HEAD/CHANGELOG.md#v531
    
    PR:             297048
---
 security/lego/Makefile |  7 +++----
 security/lego/distinfo | 10 +++++-----
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/security/lego/Makefile b/security/lego/Makefile
index 19193237a1bc..5b6059fd374a 100644
--- a/security/lego/Makefile
+++ b/security/lego/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	lego
 DISTVERSIONPREFIX=	v
-DISTVERSION=	5.2.2
-PORTREVISION=	1
+DISTVERSION=	5.3.1
 CATEGORIES=	security
 
 MAINTAINER=	[email protected]
@@ -13,9 +12,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 
-USES=		go:modules
+USES=		go:1.25+,modules
 GO_MODULE=	github.com/go-acme/lego/v5
-GO_BUILDFLAGS=	-ldflags '-X "main.version=${DISTVERSION}"'
+GO_LDFLAGS=	-X main.version=${DISTVERSION}
 
 SAMPLE_FILES=	deploy.sh.sample lego.sh.sample lego.yml.sample
 SUB_FILES=	${SAMPLE_FILES} 604.lego pkg-message
diff --git a/security/lego/distinfo b/security/lego/distinfo
index 32138e95f986..d74478b655ae 100644
--- a/security/lego/distinfo
+++ b/security/lego/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1780757670
-SHA256 (go/security_lego/lego-v5.2.2/v5.2.2.mod) = b27760ca7d3f57ccd0f6c1252358420faa83a886fd477f53e4ed82940d02a2e4
-SIZE (go/security_lego/lego-v5.2.2/v5.2.2.mod) = 10895
-SHA256 (go/security_lego/lego-v5.2.2/v5.2.2.zip) = cda09848095f390e2d48cd9b07739aacb08c4eefe0bf099f4af6093d86171e08
-SIZE (go/security_lego/lego-v5.2.2/v5.2.2.zip) = 2410470
+TIMESTAMP = 1784985237
+SHA256 (go/security_lego/lego-v5.3.1/v5.3.1.mod) = 24f0661e77e013bd849430bdf9f898027a71e0ff682815925842d6151c23d288
+SIZE (go/security_lego/lego-v5.3.1/v5.3.1.mod) = 10898
+SHA256 (go/security_lego/lego-v5.3.1/v5.3.1.zip) = f27c6474d926d642da08bbb184d1a08a16653bdc2be99451f11a6e8f64e67eab
+SIZE (go/security_lego/lego-v5.3.1/v5.3.1.zip) = 2426292