Skip to content

Commit

Permalink
update to zerotier 1.2.4 package version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Dec 2, 2017
1 parent 00ad452 commit 3a5a997
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 185 deletions.
10 changes: 0 additions & 10 deletions zerotier/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ config ZEROTIER_ENABLE_DEBUG
depends on PACKAGE_zerotier
default n

config ZEROTIER_USE_MINIUPNPC
bool "Build with MiniUPnPc"
depends on PACKAGE_zerotier
default n

config ZEROTIER_ENABLE_NETWORK_CONTROLLER
bool "Build with network controller"
depends on PACKAGE_zerotier
default n

config ZEROTIER_ENABLE_SELFTEST
bool "Build a self test program"
depends on PACKAGE_zerotier
Expand Down
27 changes: 7 additions & 20 deletions zerotier/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=zerotier
PKG_VERSION:=1.1.14
PKG_RELEASE:=4
PKG_VERSION:=1.2.4
PKG_RELEASE:=2

PKG_LICENSE:=GPL-3.0

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/zerotier/ZeroTierOne
PKG_SOURCE_SUBDIR:=ZeroTierOne-$(PKG_VERSION)
PKG_SOURCE_VERSION:=ae491c277e6f35d1acbdcbf700e2b834957295ae
PKG_SOURCE_VERSION:=fe5257df81c4ec4b5d48f707eb794de0748b7ac0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_MIRROR_MD5SUM:=c8c3219c995a59161832d580a194f6280de7a4eef75cebece6f38400b64f003e
PKG_MIRROR_HASH:=131436529d26f8eb975a0a8705b489cc22a1139c323755895c1776db579003bc
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)

PKG_BUILD_DEPENDS:=uclibcxx
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk

define Package/zerotier
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread +kmod-tun +ip +ZEROTIER_ENABLE_NETWORK_CONTROLLER:libsqlite3 +ZEROTIER_USE_MINIUPNPC:libminiupnpc +ZEROTIER_USE_MINIUPNPC:libnatpmp
DEPENDS:=+libpthread +libstdcpp +kmod-tun +ip +libminiupnpc +libnatpmp
TITLE:=Create flat virtual Ethernet networks of almost unlimited size
URL:=https://www.zerotier.com
SUBMENU:=VPN
Expand All @@ -41,24 +40,12 @@ define Package/zerotier/config
source "$(SOURCE)/Config.in"
endef

ifeq ($(CONFIG_ZEROTIER_ENABLE_NETWORK_CONTROLLER),y)
MAKE_FLAGS += ZT_ENABLE_NETWORK_CONTROLLER=1
MAKE_FLAGS += LDLIBS+=" -lsqlite3 "
endif

ifeq ($(CONFIG_ZEROTIER_USE_MINIUPNPC),y)
MAKE_FLAGS += ZT_USE_MINIUPNPC=1
endif

ifeq ($(CONFIG_ZEROTIER_ENABLE_DEBUG),y)
TARGET_CXXFLAGS += -DZT_TRACE -ggdb3
MAKE_FLAGS += ZT_DEBUG=1
endif

MAKE_FLAGS += \
DEFS="" \
LDFLAGS+=" -L$(STAGING_DIR)/usr/lib/uClibc++ -pthread " \
LDLIBS+=" -fno-builtin -nodefaultlibs -Wl,-Bstatic -luClibc++ -Wl,-Bdynamic -lpthread -lm -lc -lsupc++ -lc -lgcc -lgcc_eh -lgcc_s -lssp_nonshared " \
CXXFLAGS+=" -fno-builtin -nostdinc++ -I$(STAGING_DIR)/usr/include/uClibc++ -DGCC_HASCLASSVISIBILITY -Wall -fPIE -fvisibility=hidden "

define Build/Compile
$(call Build/Compile/Default,one)
Expand All @@ -71,7 +58,7 @@ define Package/zerotier/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/zerotier-one $(1)/usr/bin/
$(LN) zerotier-one $(1)/usr/bin/zerotier-cli
$(LN) zerotier-one $(1)/usr/bin//zerotier-idtool
$(LN) zerotier-one $(1)/usr/bin/zerotier-idtool

ifeq ($(CONFIG_ZEROTIER_ENABLE_SELFTEST),y)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/zerotier-selftest $(1)/usr/bin/
Expand Down
1 change: 0 additions & 1 deletion zerotier/files/zerotier.init
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ start_instance() {
procd_open_instance
procd_add_reload_interface_trigger "$interface"
procd_set_param command $ZT_COMMAND $ARGS
procd_set_param nice -10
procd_close_instance
}

Expand Down

This file was deleted.

51 changes: 0 additions & 51 deletions zerotier/patches/0002-fix-build.patch

This file was deleted.

27 changes: 0 additions & 27 deletions zerotier/patches/0003-workaround_to_avoid_seg_faults.patch

This file was deleted.

32 changes: 0 additions & 32 deletions zerotier/patches/0005-use-external-miniupnpc-and-natpmp.patch

This file was deleted.

0 comments on commit 3a5a997

Please sign in to comment.