1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=https
://codeload.github.com
/yggdrasil-network
/yggdrasil-go
/tar.gz
/v
$(PKG_VERSION
)?
9 PKG_HASH
:=dc1699064319f19a64ac57bac366a15d718008fdb75ef03bf4252d3552dff4eb
10 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-go-
$(PKG_VERSION
)
12 PKG_MAINTAINER
:=William Fleurant
<meshnet@protonmail.com
>
13 PKG_LICENSE
:=LGPL-3.0
-only
14 PKG_LICENSE_FILES
:=LICENSE
16 PKG_BUILD_DEPENDS
:=golang
/host
20 GO_PKG
:=github.com
/yggdrasil-network
/yggdrasil-go
21 GO_PKG_BUILD_PKG
:=github.com
/yggdrasil-network
/yggdrasil-go
/cmd
/...
24 github.com
/yggdrasil-network
/yggdrasil-go
/src
/yggdrasil.buildName
=yggdrasil-openwrt \
25 github.com
/yggdrasil-network
/yggdrasil-go
/src
/yggdrasil.buildVersion
=$(PKG_VERSION
)
27 include $(INCLUDE_DIR
)/package.mk
28 include ..
/..
/lang
/golang
/golang-package.mk
30 define Package
/yggdrasil
33 SUBMENU
:=Routing and Redirection
34 TITLE
:=Yggdrasil supports end-to-end encrypted IPv6 networks
35 URL
:=https
://yggdrasil-network.github.io
/
36 DEPENDS
:=$(GO_ARCH_DEPENDS
) @IPV6
+kmod-tun
39 define Package
/yggdrasil
/description
40 Yggdrasil builds end-to-end encrypted networks with IPv6.
41 Beyond the similarities with cjdns is a different routing
42 algorithm. This globally-agreed spanning tree uses greedy
43 routing in a metric space. Back-pressure routing techniques
44 allow advanced link aggregation bonding on per-stream basis.
45 In turn
, a single stream will span across multiple network
46 interfaces simultaneously with much greater throughput.
49 define Package
/yggdrasil
/install
52 $(1)/etc
/uci-defaults \
56 $(GO_PKG_BUILD_BIN_DIR
)/yggdrasil \
60 $(GO_PKG_BUILD_BIN_DIR
)/yggdrasilctl \
64 .
/files
/yggdrasil.defaults \
65 $(1)/etc
/uci-defaults
/yggdrasil
68 .
/files
/yggdrasil.init \
69 $(1)/etc
/init.d
/yggdrasil
72 $(eval
$(call GoBinPackage
,yggdrasil
))
73 $(eval
$(call BuildPackage
,yggdrasil
))