summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-12-14 15:01:54 -0700
committerGitHub <noreply@github.com>2023-12-14 15:01:54 -0700
commit50832476d9c3cf5f5a185b4d0351fde08f942c08 (patch)
tree008e9a153d32c763246061157531849b5ced5c42
parentefa874583f602fc552de89ee21abfa2d0a2c6a3f (diff)
parent7abcfbccf4d1b9a934a44de6d1c282b5f3b8776a (diff)
Merge pull request #22859 from stangri/openwrt-23.05-nebula
[23.05] nebula: update to 1.8.0
-rw-r--r--net/nebula/Makefile35
-rw-r--r--net/nebula/files/nebula.proto3
2 files changed, 22 insertions, 16 deletions
diff --git a/net/nebula/Makefile b/net/nebula/Makefile
index f8f4293be..95b7849b9 100644
--- a/net/nebula/Makefile
+++ b/net/nebula/Makefile
@@ -4,12 +4,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=nebula
-PKG_VERSION:=1.7.2
+PKG_VERSION:=1.8.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/slackhq/nebula/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=c4771ce6eb3e142f88f5f4c12443cfca140bf96b2746c74f9536bd1a362f3f88
+PKG_HASH:=678ad2bda47258cce8c2d14b3fa56d17c0ba4f894d75b75afab8937d64e12da7
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
PKG_LICENSE:=MIT
@@ -51,6 +51,9 @@ define Package/nebula-proto
TITLE:=nebula-proto
URL:=https://docs.openwrt.melmac.net/nebula/
DEPENDS:=nebula
+ DEPENDS+=+!BUSYBOX_DEFAULT_AWK:gawk
+ DEPENDS+=+!BUSYBOX_DEFAULT_GREP:grep
+ DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
PKGARCH:=all
endef
@@ -60,6 +63,8 @@ define Package/nebula-service
TITLE:=nebula-service
URL:=https://docs.openwrt.melmac.net/nebula/
DEPENDS:=nebula
+ DEPENDS+=+!BUSYBOX_DEFAULT_AWK:gawk
+ DEPENDS+=+!BUSYBOX_DEFAULT_SED:sed
CONFLICTS:=nebula-proto
PKGARCH:=all
endef
@@ -69,28 +74,28 @@ define Build/Compile
endef
define Package/nebula/description
- Nebula is a scalable overlay networking tool with a focus on performance, simplicity
- and security. It lets you seamlessly connect computers anywhere in the world.
- This package contains only nebula binary. Unless you want to start nebula manually,
- you may want to also install *either* 'nebula-service' *or* 'nebula-proto' package.
+Nebula is a scalable overlay networking tool with a focus on performance, simplicity
+and security. It lets you seamlessly connect computers anywhere in the world.
+This package contains only nebula binary. Unless you want to start nebula manually,
+you may want to also install *either* 'nebula-service' *or* 'nebula-proto' package.
endef
define Package/nebula-cert/description
- Nebula is a scalable overlay networking tool with a focus on performance, simplicity
- and security. It lets you seamlessly connect computers anywhere in the world.
- This package contains only nebula-cert binary.
+Nebula is a scalable overlay networking tool with a focus on performance, simplicity
+and security. It lets you seamlessly connect computers anywhere in the world.
+This package contains only nebula-cert binary.
endef
define Package/nebula-proto/description
- Nebula is a scalable overlay networking tool with a focus on performance, simplicity
- and security. It lets you seamlessly connect computers anywhere in the world.
- This package contains only OpenWrt protocol/interface support for nebula.
+Nebula is a scalable overlay networking tool with a focus on performance, simplicity
+and security. It lets you seamlessly connect computers anywhere in the world.
+This package contains only OpenWrt protocol/interface support for nebula.
endef
define Package/nebula-service/description
- Nebula is a scalable overlay networking tool with a focus on performance, simplicity
- and security. It lets you seamlessly connect computers anywhere in the world.
- This package contains only OpenWrt-specific init.d script for nebula.
+Nebula is a scalable overlay networking tool with a focus on performance, simplicity
+and security. It lets you seamlessly connect computers anywhere in the world.
+This package contains only OpenWrt-specific init.d script for nebula.
endef
define Package/nebula/install
diff --git a/net/nebula/files/nebula.proto b/net/nebula/files/nebula.proto
index f7a31f06d..d9d1a3f5f 100644
--- a/net/nebula/files/nebula.proto
+++ b/net/nebula/files/nebula.proto
@@ -51,6 +51,7 @@ proto_nebula_setup() {
[ -s "$config_file" ] || { log "Config file not found or empty!"; return 1; }
eval "$(yaml_parse "$config_file" "yaml_")"
+ yaml_tun_dev="${yaml_tun_dev%"${yaml_tun_dev##*[![:space:]]}"}"
[ "$yaml_tun_dev" = "$interface" ] || { log "Tunnel device in config file (${yaml_tun_dev}) doesn't match interface name (${interface})!"; return 1; }
log "Setting up ${interface} from $(basename "$config_file")."
@@ -73,7 +74,7 @@ proto_nebula_setup() {
json_close_array
proto_close_data
addresses="$(ip -4 a list dev "$interface" 2>/dev/null | grep inet | awk '{print $2}' | awk -F "/" '{print $1}')"
- log "Running ${interface} from $(basename "$config_file") with addresses: ${addresses}."
+ log "Running ${interface} from $(basename "$config_file")${addresses+: with addresses: $addresses}."
for address in ${addresses}; do
case "${address}" in
*:*/*)