Index: head/net/cloudflared/Makefile =================================================================== --- head/net/cloudflared/Makefile (revision 569319) +++ head/net/cloudflared/Makefile (revision 569320) @@ -1,31 +1,30 @@ # $FreeBSD$ PORTNAME= cloudflared -DISTVERSION= 2021.3.2 +DISTVERSION= 2021.3.5 CATEGORIES= net www MAINTAINER= egypcio@FreeBSD.org COMMENT= Cloudflare's Argo Tunnel client LICENSE= cloudflare LICENSE_NAME= cloudflare LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= no-dist-sell no-pkg-sell RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss USES= cpe go:modules - +USE_RC_SUBR= ${PORTNAME} USE_GITHUB= yes GH_ACCOUNT= cloudflare - CPE_VENDOR= cloudflare GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} GO_TARGET= ${GO_PKGNAME}/cmd/cloudflared GO_BUILDFLAGS+= -ldflags '-s -w -X main.Version=${PORTVERSION}' PLIST_FILES= bin/${PORTNAME} RESTRICTED= Not sure if we are allowed to redistribute it. .include Index: head/net/cloudflared/distinfo =================================================================== --- head/net/cloudflared/distinfo (revision 569319) +++ head/net/cloudflared/distinfo (revision 569320) @@ -1,3 +1,3 @@ -TIMESTAMP = 1616788765 -SHA256 (cloudflare-cloudflared-2021.3.2_GH0.tar.gz) = b16db783ae4d25d85c16f00a4df3f4138f3c3f487d8788c50b83cbb620a3ce16 -SIZE (cloudflare-cloudflared-2021.3.2_GH0.tar.gz) = 7455628 +TIMESTAMP = 1616836174 +SHA256 (cloudflare-cloudflared-2021.3.5_GH0.tar.gz) = 1521846ee97e066ca18ec4cefed1a84b634b57d989c76d186086fff19b4746d4 +SIZE (cloudflare-cloudflared-2021.3.5_GH0.tar.gz) = 7471623 Index: head/net/cloudflared/files/cloudflared.in =================================================================== --- head/net/cloudflared/files/cloudflared.in (nonexistent) +++ head/net/cloudflared/files/cloudflared.in (revision 569320) @@ -0,0 +1,36 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: cloudflared +# REQUIRE: cleanvar SERVERS +# +# Options to configure cloudflared via /etc/rc.conf: +# +# cloudflared_enable (bool) Enable service on boot +# Default: NO +# +# cloudflared_conf (str) Config file to use +# Default: %%ETCDIR%%/config.yml +# +# cloudflared_mode (str) Mode to run cloudflared as (tunnel, or proxy-dns) +# Default: tunnel + +. /etc/rc.subr + +name="cloudflared" +rcvar="cloudflared_enable" +logfile="/var/log/cloudflared/cloudflared.log" +pidfile="/var/run/cloudflared.pid" +procname="%%PREFIX%%/bin/cloudflared" + +load_rc_config $name + +: ${cloudflared_enable:="NO"} +: ${cloudflared_conf:="%%ETCDIR%%/config.yml"} +: ${cloudflared_mode:="tunnel"} + +command="/usr/sbin/daemon" +command_args="-o ${logfile} -p ${pidfile} -f ${procname} --cred-file ${cloudflared_conf} ${cloudflared_mode}" + +run_rc_command "$1" Property changes on: head/net/cloudflared/files/cloudflared.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property