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.
This commit is contained in:
Vinícius Zavam 2025-04-09 14:23:25 +00:00
parent 77925d5a31
commit 7c16f615b4
No known key found for this signature in database
GPG key ID: 415C653413B43475
3 changed files with 12 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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"