blob: f46e129795d8b4990defe4bcdb20b30e93261067 (
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
32
33
34
|
PORTNAME= nebula
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.0
PORTREVISION= 3
CATEGORIES= security
MAINTAINER= ashish@FreeBSD.org
COMMENT= Scalable overlay networking tool
WWW= https://github.com/slackhq/nebula
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe go:modules
CPE_VENDOR= slack
GO_MODULE= github.com/slackhq/nebula
GO_TARGET= ./cmd/nebula ./cmd/nebula-cert
GO_BUILDFLAGS= -ldflags "-X main.Build=${PORTVERSION}"
USE_RC_SUBR= ${PORTNAME}
PLIST_FILES= bin/nebula \
bin/nebula-cert \
etc/${PORTNAME}/config.yml.example
post-patch:
${REINPLACE_CMD} -e s,/etc/nebula,${PREFIX}/etc/${PORTNAME}, \
-e /dev:/s/nebula1/tun1/ \
${WRKSRC}/examples/config.yml
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/examples/config.yml \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yml.example
.include <bsd.port.mk>
|