You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=yggdrasil
  3. PKG_VERSION:=0.3.5
  4. PKG_RELEASE:=4
  5. PKG_SOURCE_URL:=https://codeload.github.com/yggdrasil-network/yggdrasil-go/tar.gz/v$(PKG_VERSION)?
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_HASH:=2c69029adeb053ad049e90f1e4b7efa986094779868da77464d3c869984e861b
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-go-$(PKG_VERSION)
  9. PKG_LICENSE:=GPL-3.0
  10. PKG_MAINTAINER:=William Fleurant <meshnet@protonmail.com>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/yggdrasil-network/yggdrasil-go
  15. GO_PKG_BUILD_PKG:=github.com/yggdrasil-network/yggdrasil-go/cmd/...
  16. GO_PKG_LDFLAGS_X:= \
  17. github.com/yggdrasil-network/yggdrasil-go/src/yggdrasil.buildName=yggdrasil-openwrt \
  18. github.com/yggdrasil-network/yggdrasil-go/src/yggdrasil.buildVersion=$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../lang/golang/golang-package.mk
  21. define Package/yggdrasil
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=Routing and Redirection
  25. TITLE:=Yggdrasil supports end-to-end encrypted IPv6 networks
  26. URL:=https://yggdrasil-network.github.io/
  27. DEPENDS:=$(GO_ARCH_DEPENDS) @IPV6 +kmod-tun
  28. endef
  29. define Package/yggdrasil/description
  30. Yggdrasil builds end-to-end encrypted networks with IPv6.
  31. Beyond the similarities with cjdns is a different routing
  32. algorithm. This globally-agreed spanning tree uses greedy
  33. routing in a metric space. Back-pressure routing techniques
  34. allow advanced link aggregation bonding on per-stream basis.
  35. In turn, a single stream will span across multiple network
  36. interfaces simultaneously with much greater throughput.
  37. endef
  38. define Package/yggdrasil/install
  39. $(INSTALL_DIR) \
  40. $(1)/etc/init.d \
  41. $(1)/etc/uci-defaults \
  42. $(1)/usr/sbin
  43. $(INSTALL_BIN) \
  44. $(GO_PKG_BUILD_BIN_DIR)/yggdrasil \
  45. $(1)/usr/sbin
  46. $(INSTALL_BIN) \
  47. $(GO_PKG_BUILD_BIN_DIR)/yggdrasilctl \
  48. $(1)/usr/sbin
  49. $(INSTALL_BIN) \
  50. ./files/yggdrasil.defaults \
  51. $(1)/etc/uci-defaults/yggdrasil
  52. $(INSTALL_BIN) \
  53. ./files/yggdrasil.init \
  54. $(1)/etc/init.d/yggdrasil
  55. endef
  56. $(eval $(call GoBinPackage,yggdrasil))
  57. $(eval $(call BuildPackage,yggdrasil))