FreeBSD Bugzilla – Attachment 177642 Details for
Bug 215031
net/zerotier Allow build as controller
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds an option to build zerotier as a controller.
zt-controller.patch (text/plain), 1.38 KB, created by
josh
on 2016-12-03 22:41:40 UTC
(
hide
)
Description:
Adds an option to build zerotier as a controller.
Filename:
MIME Type:
Creator:
josh
Created:
2016-12-03 22:41:40 UTC
Size:
1.38 KB
patch
obsolete
>diff -urN zerotier-orig/Makefile zerotier/Makefile >--- zerotier-orig/Makefile 2016-11-30 14:46:03.000000000 +0000 >+++ zerotier/Makefile 2016-12-03 21:53:30.369862000 +0000 >@@ -19,6 +19,11 @@ > GH_PROJECT= ZeroTierOne > CFLAGS+= -flax-vector-conversions > >+OPTIONS_DEFINE= CONTROLLER >+CONTROLLER_DESC= Enable controller microservice to create and manage networks >+CONTROLLER_MAKE_ARGS= ZT_ENABLE_NETWORK_CONTROLLER=1 >+CONTROLLER_BUILD_DEPENDS= sqlite3:databases/sqlite3 >+ > PLIST_FILES= bin/zerotier-cli bin/zerotier-idtool sbin/zerotier-one > > do-install: >diff -urN zerotier-orig/files/patch-make-freebsd.mk zerotier/files/patch-make-freebsd.mk >--- zerotier-orig/files/patch-make-freebsd.mk 1970-01-01 00:00:00.000000000 +0000 >+++ zerotier/files/patch-make-freebsd.mk 2016-12-03 22:19:00.001066000 +0000 >@@ -0,0 +1,17 @@ >+--- make-freebsd.mk.orig 2016-09-03 14:18:11.671935000 +0000 >++++ make-freebsd.mk 2016-09-03 14:18:27.316065000 +0000 >+@@ -18,6 +18,14 @@ >+ DEFS+=-DZT_ENABLE_CLUSTER >+ endif >++# Build with ZT_ENABLE_NETWORK_CONTROLLER=1 to build with the Sqlite network controller >++ifeq ($(ZT_ENABLE_NETWORK_CONTROLLER),1) >++ DEFS+=-DZT_ENABLE_NETWORK_CONTROLLER >++ INCLUDES+=-I/usr/local/include >++ LDFLAGS+=-L/usr/local/lib -lsqlite3 >++ OBJS+=controller/SqliteNetworkController.o >++endif >++ >+ # "make debug" is a shortcut for this >+ ifeq ($(ZT_DEBUG),1) >+ DEFS+=-DZT_TRACE >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 215031
: 177642