git: 7c16f615b4e8 - main - net/cloudflared: update 2023.10.0 to 2024.11.1

From: Vinícius Zavam <egypcio_at_FreeBSD.org>
Date: Wed, 09 Apr 2025 14:26:14 UTC
The branch main has been updated by egypcio:

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

commit 7c16f615b4e8e0831c33d995a2f5b1c9d6355fdf
Author:     Vinícius Zavam <egypcio@FreeBSD.org>
AuthorDate: 2025-04-09 14:23:25 +0000
Commit:     Vinícius Zavam <egypcio@FreeBSD.org>
CommitDate: 2025-04-09 14:23:25 +0000

    net/cloudflared: update 2023.10.0 to 2024.11.1
    
      * fix min Go version required to build upstream src code;
      * add 'cloudflared_mode_options' to port's rc script.
---
 net/cloudflared/Makefile             | 5 ++---
 net/cloudflared/distinfo             | 6 +++---
 net/cloudflared/files/cloudflared.in | 9 +++++++--
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/net/cloudflared/Makefile b/net/cloudflared/Makefile
index 0b42bf8a2232..8b2fd0567e05 100644
--- a/net/cloudflared/Makefile
+++ b/net/cloudflared/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	cloudflared
-DISTVERSION=	2023.10.0
-PORTREVISION=	2
+DISTVERSION=	2024.11.1
 CATEGORIES=	net www
 
 MAINTAINER=	egypcio@FreeBSD.org
@@ -12,7 +11,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	ca_root_nss>=0:security/ca_root_nss
 
-USES=		cpe go:1.20,modules
+USES=		cpe go:1.22,modules
 USE_RC_SUBR=	${PORTNAME}
 USE_GITHUB=	yes
 GH_ACCOUNT=	cloudflare
diff --git a/net/cloudflared/distinfo b/net/cloudflared/distinfo
index 760eaf822dd7..6d5425bcdc5d 100644
--- a/net/cloudflared/distinfo
+++ b/net/cloudflared/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1703175004
-SHA256 (cloudflare-cloudflared-2023.10.0_GH0.tar.gz) = 2d2df4dd4992eef485f7ffebc0a1e9e6292b42ca42341f2e46224f17155e9532
-SIZE (cloudflare-cloudflared-2023.10.0_GH0.tar.gz) = 7046219
+TIMESTAMP = 1744204985
+SHA256 (cloudflare-cloudflared-2024.11.1_GH0.tar.gz) = 1bf729c225701f6864b31bb6c251293caa06f9f1a6e671f3326dd20c3c9719ff
+SIZE (cloudflare-cloudflared-2024.11.1_GH0.tar.gz) = 7000271
diff --git a/net/cloudflared/files/cloudflared.in b/net/cloudflared/files/cloudflared.in
index c057c2e4c9d0..388bfaf78b4b 100644
--- a/net/cloudflared/files/cloudflared.in
+++ b/net/cloudflared/files/cloudflared.in
@@ -11,10 +11,14 @@
 # cloudflared_conf (str)	Config file to use
 #				Default: %%ETCDIR%%/config.yml
 #
-# cloudflared_mode (str)	Mode to run cloudflared as (e.g. 'tunnel', 'tunnel run'
+# cloudflared_mode (str)	Mode to run cloudflared as (e.g. 'tunnel',
 #				or 'proxy-dns'). Should you use the default, a free
 #				tunnel is set up for you.
 #				Default: "tunnel"
+#
+# cloudflare_mode_options (str)	Additional options used by the mode cloudflared
+# 				will be running.
+# 				Default: "--url 127.0.0.1:8080"
 
 . /etc/rc.subr
 
@@ -29,8 +33,9 @@ load_rc_config $name
 : ${cloudflared_enable:="NO"}
 : ${cloudflared_conf:="%%ETCDIR%%/config.yml"}
 : ${cloudflared_mode:="tunnel"}
+: ${cloudflared_mode_options:="--url 127.0.0.1:8080"}
 
 command="/usr/sbin/daemon"
-command_args="-o ${logfile} -p ${pidfile} -f ${procname} --config ${cloudflared_conf} ${cloudflared_mode}"
+command_args="-o ${logfile} -p ${pidfile} -f ${procname} --config ${cloudflared_conf} ${cloudflared_mode} ${cloudflared_mode_options}"
 
 run_rc_command "$1"