🗽 Sync 2026-11-11 15:31:38

This commit is contained in:
github-actions[bot] committed 2026-11-11 15:31:38 +08:00
1 parent da9e4bea36
commit 2e3c0a9b33
189 files changed
+29797 -10433

No files matched your search

+16 -6
View File
@@ -9,8 +9,8 @@ include $(TOPDIR)/rules.mk
PKG_ARCH_FASTNET:=$(ARCH)
PKG_NAME:=fastnet
PKG_VERSION:=0.8.1
PKG_RELEASE:=9
PKG_VERSION:=0.8.9
PKG_RELEASE:=10
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/istoreos/istoreos-app-hub/releases/download/fastnet-runtime-v$(PKG_VERSION)/
@@ -33,11 +33,17 @@ endef
define Package/$(PKG_NAME)/prerm
#!/bin/sh
if [ "$${IPKG_INSTROOT}" = "" ]; then
if [ "$$(readlink /usr/share/linkease/apps.d/17-fastnet.json 2>/dev/null)" = "/usr/share/fastnet/fastnet-plugin.json" ]; then
rm -f /usr/share/linkease/apps.d/17-fastnet.json
fi
if [ -z "$${IPKG_INSTROOT:-}" ]; then
/etc/init.d/fastnet stop 2>/dev/null || true
fi
root="$${IPKG_INSTROOT:-}"
for directory in /usr/share/linkease/apps.d /usr/share/linkeasefull/desktop-apps.d; do
registration="$${root}$${directory}/17-fastnet.json"
if [ "$$(readlink "$${registration}" 2>/dev/null)" = "/usr/share/fastnet/fastnet-plugin.json" ]; then
rm -f "$${registration}"
fi
done
rmdir "$${root}/usr/share/linkeasefull/desktop-apps.d" 2>/dev/null || true
exit 0
endef
@@ -51,6 +57,9 @@ endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
# Maintain the old desktop entry without a second manifest or file owner.
root="$${IPKG_INSTROOT:-}"
sh "$${root}/usr/share/fastnet/register-desktop.sh" || exit $$?
if [ -z "$${IPKG_INSTROOT}" ]; then
[ -f /etc/uci-defaults/fastnet ] && /etc/uci-defaults/fastnet && rm -f /etc/uci-defaults/fastnet
exit 0
@@ -70,6 +79,7 @@ define Package/$(PKG_NAME)/install
$(INSTALL_BIN) ./files/fastnet.init $(1)/etc/init.d/fastnet
$(INSTALL_BIN) ./files/fastnet.uci-default $(1)/etc/uci-defaults/fastnet
$(INSTALL_DATA) ./files/fastnet-plugin.json $(1)/usr/share/fastnet/fastnet-plugin.json
$(INSTALL_BIN) ./files/register-desktop.sh $(1)/usr/share/fastnet/register-desktop.sh
ln -sf /usr/share/fastnet/fastnet-plugin.json $(1)/usr/share/linkease/apps.d/17-fastnet.json
endef
+24 -4
View File
@@ -29,9 +29,13 @@
}
},
"config": {
"providerOrder": ["uci"],
"providerOrder": [
"uci"
],
"providers": {
"uci": {"type": "uci"}
"uci": {
"type": "uci"
}
}
},
"window": {
@@ -39,6 +43,22 @@
"height": 760,
"singleton": true
},
"capabilities": ["speed-test", "diagnostics", "network"],
"categories": ["network", "service"]
"capabilities": [
"speed-test",
"diagnostics",
"network"
],
"categories": [
"network",
"service"
],
"backend": {
"type": "http",
"scheme": "http",
"host": "127.0.0.1",
"portFromUci": "fastnet.@fastnet[0].port",
"defaultPort": 3200,
"upstreamBasePath": "/",
"pathMode": "strip-public-base"
}
}
+1
View File
@@ -21,6 +21,7 @@ start_service() {
procd_open_instance
procd_set_param limits nofile="65535 65535"
procd_set_param command /usr/sbin/FastNet web --addr "$addr" --no-open
procd_set_param env FASTNET_CARD_SOCKET=/var/run/fastnet-card.sock FASTNET_CARD_STATE=/etc/fastnet/card-state.json
[ -n "$token" ] && procd_append_param command --token "$token"
[ "$logger" = 1 ] && procd_set_param stderr 1
procd_set_param respawn
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Called by the owning plugin and its metadata migration hook.
set -e
root="${IPKG_INSTROOT:-}"
manifest="/usr/share/fastnet/fastnet-plugin.json"
legacy="${root}/usr/share/linkeasefull/desktop-apps.d/17-fastnet.json"
[ -f "${root}${manifest}" ] || exit 0
# Replace only the exact historical metadata payload; preserve custom entries.
if [ -f "${legacy}" ] && [ ! -L "${legacy}" ] && [ "$(sha256sum "${legacy}" | cut -d ' ' -f 1)" = "9ca279c3baca876bed3a4abe23d5edd69940fcaff4db17f27237e02c24cbabef" ]; then
rm -f "${legacy}"
fi
if [ ! -e "${legacy}" ] && [ ! -L "${legacy}" ]; then
mkdir -p "${legacy%/*}"
ln -s "${manifest}" "${legacy}"
fi