mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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:
parent
77925d5a31
commit
7c16f615b4
3 changed files with 12 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue