summaryrefslogtreecommitdiff
path: root/security/tailscale/Makefile
blob: e70632d7138bf3b34cf973a90f9aa82eab552e2f (plain)
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
PORTNAME=	tailscale
PORTVERSION=	1.26.0
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	security

MAINTAINER=	ashish@FreeBSD.org
COMMENT=	Mesh VPN that makes it easy to connect your devices

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	ca_root_nss>0:security/ca_root_nss

USES=		go:modules

GO_MODULE=	github.com/tailscale/tailscale

USE_RC_SUBR=	tailscaled

GO_TARGET=	./cmd/tailscale \
		./cmd/tailscaled
GO_BUILDFLAGS=	-tags xversion -ldflags "\
		-X tailscale.com/version.Long=${PORTVERSION} \
		-X tailscale.com/version.Short=${PORTVERSION}"

PLIST_FILES=	bin/tailscale  \
		bin/tailscaled

.include <bsd.port.mk>