Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2021 11:10:53 +0000 (UTC)
From:      =?UTF-8?Q?Vin=c3=adcius_Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r569320 - in head/net/cloudflared: . files
Message-ID:  <202103271110.12RBAri6068019@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: egypcio
Date: Sat Mar 27 11:10:53 2021
New Revision: 569320
URL: https://svnweb.freebsd.org/changeset/ports/569320

Log:
  net/cloudflared: update 2021.3.2 to 2021.3.5
  
    while here, add rc file for this ports' service
  
    * github.com/cloudflare/cloudflared/compare/2021.3.2...2021.3.5

Added:
  head/net/cloudflared/files/
  head/net/cloudflared/files/cloudflared.in   (contents, props changed)
Modified:
  head/net/cloudflared/Makefile
  head/net/cloudflared/distinfo

Modified: head/net/cloudflared/Makefile
==============================================================================
--- head/net/cloudflared/Makefile	Sat Mar 27 11:06:23 2021	(r569319)
+++ head/net/cloudflared/Makefile	Sat Mar 27 11:10:53 2021	(r569320)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	cloudflared
-DISTVERSION=	2021.3.2
+DISTVERSION=	2021.3.5
 CATEGORIES=	net www
 
 MAINTAINER=	egypcio@FreeBSD.org
@@ -15,10 +15,9 @@ 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}

Modified: head/net/cloudflared/distinfo
==============================================================================
--- head/net/cloudflared/distinfo	Sat Mar 27 11:06:23 2021	(r569319)
+++ head/net/cloudflared/distinfo	Sat Mar 27 11:10:53 2021	(r569320)
@@ -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

Added: head/net/cloudflared/files/cloudflared.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/cloudflared/files/cloudflared.in	Sat Mar 27 11:10:53 2021	(r569320)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103271110.12RBAri6068019>