freebsd-ports/net/zerotier/Makefile

36 lines
814 B
Makefile
Raw Normal View History

# Created by: Corey Smith <corsmith@gmail.com>
# $FreeBSD$
PORTNAME= zerotier
PORTVERSION= 1.1.14
CATEGORIES= net
MAINTAINER= corsmith@gmail.com
COMMENT= Network virtualization everywhere
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.GPL-3
USES= gmake
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
OPTIONS_DEFINE= CONTROLLER
CONTROLLER_DESC= Network management controller microservice support
CONTROLLER_USES= sqlite
CONTROLLER_MAKE_ARGS= ZT_ENABLE_NETWORK_CONTROLLER=1
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>