aboutsummaryrefslogtreecommitdiffstats
path: root/net/zerotier/Makefile
blob: b6f8e1fcbbd3b833a95dea3d5d26e8e1ac6403af (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
# Created by: Corey Smith <corsmith@gmail.com>
# $FreeBSD$

PORTNAME=   zerotier
PORTVERSION=    1.2.2
PORTREVISION=   1
CATEGORIES= net

MAINTAINER= dch@skunkwerks.at
COMMENT=    Network virtualization everywhere

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/LICENSE.GPL-3

USES=       gmake compiler:c11
USE_RC_SUBR=    zerotier

USE_GITHUB= yes
GH_PROJECT= ZeroTierOne

CFLAGS+=    -flax-vector-conversions

PLIST_FILES=    bin/zerotier-cli bin/zerotier-idtool sbin/zerotier-one

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/zerotier-one ${STAGEDIR}${PREFIX}/sbin/
.for l in zerotier-cli zerotier-idtool
    ${LN} -sf ../sbin/zerotier-one ${STAGEDIR}${PREFIX}/bin/${l}
.endfor

.include <bsd.port.mk>