Merge branch 'staged'
[dports.git] / net / yggdrasil / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       yggdrasil
4 DISTVERSIONPREFIX=      v
5 DISTVERSION=    0.3.11
6 CATEGORIES=     net
7
8 MAINTAINER=     freebsd@neilalexander.dev
9 COMMENT=        Experimental end-to-end encrypted self-arranging IPv6 network
10
11 LICENSE=        LGPL3
12 LICENSE_FILE=   ${WRKSRC}/LICENSE
13
14 USES=           go:modules
15 USE_GITHUB=     yes
16 GH_ACCOUNT=     yggdrasil-network
17 GH_PROJECT=     yggdrasil-go
18 GH_TUPLE=       \
19                 Arceliar:phony:d0c68492aca0:arceliar_phony/vendor/github.com/Arceliar/phony \
20                 golang:crypto:87dc89f01550:golang_crypto/vendor/golang.org/x/crypto \
21                 golang:net:ec77196f6094:golang_net/vendor/golang.org/x/net \
22                 golang:sys:b4ff53e7a1cb:golang_sys/vendor/golang.org/x/sys \
23                 golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
24                 gologme:log:4e5d8ccb38e8:gologme_log/vendor/github.com/gologme/log \
25                 hashicorp:go-syslog:v1.0.0:hashicorp_go_syslog/vendor/github.com/hashicorp/go-syslog \
26                 hjson:hjson-go:v3.0.0:hjson_hjson_go/vendor/github.com/hjson/hjson-go \
27                 kardianos:minwinsvc:cad6b2b879b0:kardianos_minwinsvc/vendor/github.com/kardianos/minwinsvc \
28                 mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
29                 songgao:packets:549a10cd4091:songgao_packets/vendor/github.com/songgao/packets \
30                 vishvananda:netlink:v1.0.0:vishvananda_netlink/vendor/github.com/vishvananda/netlink \
31                 vishvananda:netns:7109fa855b0f:vishvananda_netns/vendor/github.com/vishvananda/netns \
32                 yggdrasil-network:water:c83fe40250f8:yggdrasil_network_water/vendor/github.com/yggdrasil-network/water
33
34 GO_TARGET=      ./cmd/yggdrasil \
35                 ./cmd/yggdrasilctl
36
37 GO_BUILDFLAGS=  -ldflags="-s -w \
38                 -X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=${PORTNAME} \
39                 -X github.com/yggdrasil-network/yggdrasil-go/src/version.buildVersion=${PORTVERSION} \
40                 "
41
42 PLIST_FILES=    bin/yggdrasil \
43                 bin/yggdrasilctl
44
45 USE_RC_SUBR=    yggdrasil
46
47 .include <bsd.port.mk>