aboutsummaryrefslogtreecommitdiff
path: root/net/cloudflared/Makefile
blob: aa4e4e50ea432defebb473c72b43ccec9ea09cc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $FreeBSD$

PORTNAME=	cloudflared
DISTVERSION=	2019.11.3
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>