1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

Update net/zerotier to 1.2.2

PR:		217838
Submitted by:	dch@skunkwerks.at
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D10079
This commit is contained in:
Kirill Ponomarev 2017-03-22 18:12:57 +00:00
parent c6cf0ab287
commit 90560d88f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436712
3 changed files with 8 additions and 37 deletions

View File

@ -2,30 +2,26 @@
# $FreeBSD$
PORTNAME= zerotier
PORTVERSION= 1.1.14
PORTVERSION= 1.2.2
CATEGORIES= net
MAINTAINER= corsmith@gmail.com
MAINTAINER= dch@skunkwerks.at
COMMENT= Network virtualization everywhere
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.GPL-3
USES= gmake
USES= gmake compiler:c11
USE_RC_SUBR= zerotier
USE_GITHUB= yes
GH_ACCOUNT= zerotier
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

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1475533093
SHA256 (zerotier-ZeroTierOne-1.1.14_GH0.tar.gz) = d206069ad21c665159cdececb0a20a21758849ad73d91234d709962b26f634af
SIZE (zerotier-ZeroTierOne-1.1.14_GH0.tar.gz) = 11320427
TIMESTAMP = 1489815977
SHA256 (zerotier-ZeroTierOne-1.2.2_GH0.tar.gz) = b00040e859ac1d2b6ad9f22a5f4ad3bd876bb7e7b6bbd37d1ca2e59bbdf11a15
SIZE (zerotier-ZeroTierOne-1.2.2_GH0.tar.gz) = 7926523

View File

@ -1,25 +0,0 @@
--- make-freebsd.mk.orig 2016-07-22 03:29:15 UTC
+++ make-freebsd.mk
@@ -1,5 +1,5 @@
-CC=cc
-CXX=c++
+CC?=cc
+CXX?=c++
INCLUDES=
DEFS=
@@ -18,6 +18,14 @@ ifeq ($(ZT_ENABLE_CLUSTER),1)
DEFS+=-DZT_ENABLE_CLUSTER
endif
+# Build with ZT_ENABLE_NETWORK_CONTROLLER=1 to build with SQLite network controller
+ifeq ($(ZT_ENABLE_NETWORK_CONTROLLER),1)
+ DEFS+=-DZT_ENABLE_NETWORK_CONTROLLER
+ INCLUDES+=-I$(LOCALBASE)/include
+ LDFLAGS+=-L$(LOCALBASE)/lib -lsqlite3
+ OBJS+=controller/SqliteNetworkController.o
+endif
+
# "make debug" is a shortcut for this
ifeq ($(ZT_DEBUG),1)
DEFS+=-DZT_TRACE