summaryrefslogtreecommitdiff
path: root/security/netbird/Makefile
blob: c5ddbbccf8b7af5dc2bc25d6dfcc37bf02fcb4f8 (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
PORTNAME=	netbird
DISTVERSIONPREFIX=	v
DISTVERSION=	0.47.2
CATEGORIES=	security net net-vpn

MAINTAINER=	hakan.external@netbird.io
COMMENT=	Peer-to-peer VPN that seamlessly connects your devices
WWW=		https://netbird.io/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

NOT_FOR_ARCHS=	i386
NOT_FOR_ARCHS_REASON=	"no 32-bit builds supported"

RUN_DEPENDS=	ca_root_nss>0:security/ca_root_nss

USES=		go:modules
USE_RC_SUBR=	netbird

GO_MODULE=	github.com/netbirdio/netbird
GO_TARGET=	./client:netbird
GO_BUILDFLAGS=	-tags freebsd -o ${PORTNAME} -ldflags \
		"-s -w -X github.com/netbirdio/netbird/version.version=${DISTVERSION}"

WRKSRC=		${WRKDIR}/netbird-${DISTVERSION}

PLIST_FILES=	bin/netbird

.include <bsd.port.mk>