svn commit: r398568 - in head/net: . zerotier zerotier/files

Kurt Jaeger pi at FreeBSD.org
Sun Oct 4 10:24:33 UTC 2015


Author: pi
Date: Sun Oct  4 10:24:30 2015
New Revision: 398568
URL: https://svnweb.freebsd.org/changeset/ports/398568

Log:
  New port: net/zerotier
  
  ZeroTier can be used for on-premise network virtualization, as a
  peer to peer VPN for mobile teams, for hybrid or multi-data-center
  cloud deployments, or just about anywhere else secure software
  defined virtual networking is useful.
  
  WWW: https://www.zerotier.com/
  
  PR:		203161
  Submitted by:	corsmith at gmail.com

Added:
  head/net/zerotier/
  head/net/zerotier/Makefile   (contents, props changed)
  head/net/zerotier/distinfo   (contents, props changed)
  head/net/zerotier/files/
  head/net/zerotier/files/patch-node_Utils.hpp   (contents, props changed)
  head/net/zerotier/files/zerotier.in   (contents, props changed)
  head/net/zerotier/pkg-descr   (contents, props changed)
  head/net/zerotier/pkg-message   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Sun Oct  4 10:08:43 2015	(r398567)
+++ head/net/Makefile	Sun Oct  4 10:24:30 2015	(r398568)
@@ -1350,6 +1350,7 @@
     SUBDIR += zebra
     SUBDIR += zebra-server
     SUBDIR += zeroconf-ioslave
+    SUBDIR += zerotier
     SUBDIR += zillion
     SUBDIR += zsync
 

Added: head/net/zerotier/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/zerotier/Makefile	Sun Oct  4 10:24:30 2015	(r398568)
@@ -0,0 +1,32 @@
+# Created by: Corey Smith <corsmith at gmail.com>
+# $FreeBSD$
+
+PORTNAME=	zerotier
+DISTVERSION=	1.0.5
+CATEGORIES=	net
+MASTER_SITES=	GH
+DISTNAME=	ZeroTierOne
+
+MAINTAINER=	corsmith at gmail.com
+COMMENT=	Network virtualization everywhere
+
+LICENSE=	GPLv3
+
+USES=		gmake
+USE_RC_SUBR=	zerotier
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	zerotier
+GH_PROJECT=	ZeroTierOne
+GH_TAGNAME=	5db538d
+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>

Added: head/net/zerotier/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/zerotier/distinfo	Sun Oct  4 10:24:30 2015	(r398568)
@@ -0,0 +1,2 @@
+SHA256 (ZeroTierOne_GH0.tar.gz) = 89976f251ed7d8cc3c0dba1ac5a031f2645cb29abc84d5cc2fda48a58c7f5ace
+SIZE (ZeroTierOne_GH0.tar.gz) = 5985459

Added: head/net/zerotier/files/patch-node_Utils.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/zerotier/files/patch-node_Utils.hpp	Sun Oct  4 10:24:30 2015	(r398568)
@@ -0,0 +1,41 @@
+--- node/Utils.hpp.orig	2015-08-25 16:55:14 UTC
++++ node/Utils.hpp
+@@ -39,6 +39,10 @@
+ #include <vector>
+ #include <map>
+ 
++#if defined(__FreeBSD__)
++#include <sys/endian.h>
++#endif
++
+ #include "Constants.hpp"
+ 
+ namespace ZeroTier {
+@@ -321,8 +325,12 @@ public:
+ 		throw()
+ 	{
+ #if __BYTE_ORDER == __LITTLE_ENDIAN
+-#if defined(__GNUC__) && (!defined(__OpenBSD__))
++#if defined(__GNUC__)
++#if defined(__FreeBSD__)
++		return bswap64(n);
++#elif (!defined(__OpenBSD__))
+ 		return __builtin_bswap64(n);
++#endif
+ #else
+ 		return (
+ 			((n & 0x00000000000000FFULL) << 56) | 
+@@ -351,8 +359,12 @@ public:
+ 		throw()
+ 	{
+ #if __BYTE_ORDER == __LITTLE_ENDIAN
+-#if defined(__GNUC__) && !defined(__OpenBSD__)
++#if defined(__GNUC__)
++#if defined(__FreeBSD__)
++		return bswap64(n);
++#elif (!defined(__OpenBSD__))
+ 		return __builtin_bswap64(n);
++#endif
+ #else
+ 		return (
+ 			((n & 0x00000000000000FFULL) << 56) | 

Added: head/net/zerotier/files/zerotier.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/zerotier/files/zerotier.in	Sun Oct  4 10:24:30 2015	(r398568)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: zerotier
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add these lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# zerotier_enable (bool):	Set to NO by default.
+#				Set it to YES to enable zerotier.
+
+. /etc/rc.subr
+
+name=zerotier
+rcvar=zerotier_enable
+
+load_rc_config $name
+
+: ${zerotier_enable:="NO"}
+
+command=%%PREFIX%%/sbin/${name}-one
+
+command_args="-d"
+
+run_rc_command "$1"

Added: head/net/zerotier/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/zerotier/pkg-descr	Sun Oct  4 10:24:30 2015	(r398568)
@@ -0,0 +1,6 @@
+ZeroTier can be used for on-premise network virtualization, as a
+peer to peer VPN for mobile teams, for hybrid or multi-data-center
+cloud deployments, or just about anywhere else secure software
+defined virtual networking is useful.
+
+WWW: https://www.zerotier.com/

Added: head/net/zerotier/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/zerotier/pkg-message	Sun Oct  4 10:24:30 2015	(r398568)
@@ -0,0 +1,11 @@
+#################################
+
+First start the zerotier service:
+
+service zerotier start
+
+To connect to a zerotier network:
+
+zerotier-cli join <network>
+
+#################################


More information about the svn-ports-head mailing list