2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE_URL
:=https
://github.com
/zerotier
/ZeroTierOne
16 PKG_SOURCE_SUBDIR
:=ZeroTierOne-
$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=fe5257df81c4ec4b5d48f707eb794de0748b7ac0
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
19 PKG_MIRROR_HASH
:=131436529d26f8eb975a0a8705b489cc22a1139c323755895c1776db579003bc
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/zerotier
28 DEPENDS
:=+libpthread
+libstdcpp
+kmod-tun
+ip
+libminiupnpc
+libnatpmp
29 TITLE
:=Create flat virtual Ethernet networks of almost unlimited size
30 URL
:=https
://www.zerotier.com
32 MAINTAINER
:=Moritz Warning
<moritzwarning@web.de
>
35 define Package
/zerotier
/description
36 ZeroTier creates a global provider-independent virtual private cloud network.
39 define Package
/zerotier
/config
40 source
"$(SOURCE)/Config.in"
43 ifeq ($(CONFIG_ZEROTIER_ENABLE_DEBUG
),y
)
44 MAKE_FLAGS
+= ZT_DEBUG
=1
51 $(call Build
/Compile
/Default
,one
)
52 ifeq ($(CONFIG_ZEROTIER_ENABLE_SELFTEST
),y
)
53 $(call Build
/Compile
/Default
,selftest
)
57 define Package
/zerotier
/install
58 $(INSTALL_DIR
) $(1)/usr
/bin
59 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/zerotier-one
$(1)/usr
/bin
/
60 $(LN
) zerotier-one
$(1)/usr
/bin
/zerotier-cli
61 $(LN
) zerotier-one
$(1)/usr
/bin
/zerotier-idtool
63 ifeq ($(CONFIG_ZEROTIER_ENABLE_SELFTEST
),y
)
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/zerotier-selftest
$(1)/usr
/bin
/
67 $(INSTALL_DIR
) $(1)/etc
/init.d
/
68 $(INSTALL_BIN
) files
/zerotier.init
$(1)/etc
/init.d
/zerotier
69 $(INSTALL_DIR
) $(1)/etc
/config
70 $(INSTALL_CONF
) files
/zerotier.config
$(1)/etc
/config
/zerotier
73 $(eval
$(call BuildPackage
,zerotier
))