aboutsummaryrefslogtreecommitdiff
path: root/net/cloudflared/Makefile
diff options
context:
space:
mode:
authorVinícius Zavam <egypcio@FreeBSD.org>2019-11-18 15:10:27 +0000
committerVinícius Zavam <egypcio@FreeBSD.org>2019-11-18 15:10:27 +0000
commitcfb14c5aafc2474c611a0f27543f37e8b136b1a1 (patch)
tree97e1e1e1850c7ee0f940d55bf97c29f52dab274d /net/cloudflared/Makefile
parent159b1ade1a867adab025da3e59900c3970b65d47 (diff)
downloadports-cfb14c5aafc2474c611a0f27543f37e8b136b1a1.tar.gz
ports-cfb14c5aafc2474c611a0f27543f37e8b136b1a1.zip
[NEW PORT] net/cloudflared: Cloudflare's Argo Tunnel client
cloudflared is the command-line client for Argo Tunnel, a tunneling daemon that proxies any local webserver through the cloudflare network. Argo Tunnel exposes applications running on your local web server, on any network with an Internet connection, without adding DNS records or configuring a firewall or router. It just works. WWW: https://developers.cloudflare.com/argo-tunnel/ Reviewed by: swills
Notes
Notes: svn path=/head/; revision=517872
Diffstat (limited to 'net/cloudflared/Makefile')
-rw-r--r--net/cloudflared/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/cloudflared/Makefile b/net/cloudflared/Makefile
new file mode 100644
index 000000000000..84047a791db9
--- /dev/null
+++ b/net/cloudflared/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME= cloudflared
+DISTVERSION= 2019.11.0
+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_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 <bsd.port.mk>