update 2024-07-08 16:23:03

This commit is contained in:
kenzok8
2024-07-08 16:23:03 +08:00
parent f5b56f5595
commit caf494496d
4 changed files with 39 additions and 28 deletions

View File

@@ -10,11 +10,11 @@ include $(TOPDIR)/rules.mk
PKG_ARCH_LINKEASE:=$(ARCH)
PKG_NAME:=linkease
PKG_VERSION:=1.6.0
PKG_RELEASE:=$(PKG_ARCH_LINKEASE)-3
PKG_VERSION:=1.6.2
PKG_RELEASE:=$(PKG_ARCH_LINKEASE)-1
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://fw0.koolcenter.com/binary/LinkEase/LinuxStorage/
PKG_HASH:=55a08490e12b953a078178ea9b6d11185f71bbfb1c87a0ab25acbfeb7dbe5e55
PKG_HASH:=859a536676ebdc54201a7948f48c295d28362a76f5bcc196007dd0cd6f20ef78
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
@@ -59,7 +59,6 @@ define Package/$(PKG_NAME)/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/linkease.$(PKG_ARCH_LINKEASE) $(1)/usr/sbin/linkease
$(INSTALL_BIN) $(PKG_BUILD_DIR)/heif-converter.$(PKG_ARCH_LINKEASE) $(1)/usr/sbin/heif-converter
$(INSTALL_BIN) ./files/linkease-config.sh $(1)/usr/sbin/linkease-config.sh
$(INSTALL_BIN) ./files/aria2.sh $(1)/usr/sbin/linkease-plugins/aria2.sh
$(INSTALL_CONF) ./files/linkease.config $(1)/etc/config/linkease
$(INSTALL_BIN) ./files/linkease.init $(1)/etc/init.d/linkease
$(INSTALL_BIN) ./files/linkease.uci-default $(1)/etc/uci-defaults/linkease

View File

@@ -11,7 +11,7 @@ LUCI_DEPENDS:=+curl +opkg +luci-base +tar +coreutils +coreutils-stat +libuci-lua
LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.19)
LUCI_PKGARCH:=all
PKG_VERSION:=0.1.24-0
PKG_VERSION:=0.1.24-1
# PKG_RELEASE MUST be empty for luci.mk
PKG_RELEASE:=

View File

@@ -222,6 +222,15 @@ try_autoconf() {
/usr/libexec/istorea/${ISTORE_AUTOCONF}.sh
}
try_upgrade_depends() {
local pkg="$1"
if [[ $pkg == app-meta-* ]]; then
local deps=$(grep '^Depends: ' /usr/lib/opkg/info/$pkg.control | busybox sed -e 's/^Depends: //' -e 's/,/\n/g' -e 's/ //g' | grep -vFw libc | xargs echo)
[ -z "$deps" ] || opkg_wrap_mirrors install $deps
fi
return 0
}
usage() {
echo "usage: is-opkg sub-command [arguments...]"
echo "where sub-command is one of:"
@@ -245,7 +254,7 @@ case $action in
;;
"install")
check_space
wrapped_in_update opkg_wrap_mirrors install "$@" && try_autoconf
wrapped_in_update opkg_wrap_mirrors install "$@" && try_upgrade_depends "$1" && try_autoconf
;;
"autoconf")
try_autoconf

View File

@@ -215,7 +215,7 @@ paths:
"200":
description: OK
schema:
$ref: "#/definitions/ResponseStoreCheckSelfUpgrade"
$ref: "#/definitions/ResponseStoreGetBlockDevices"
/cgi-bin/luci/admin/store/configured:
get:
tags:
@@ -460,16 +460,7 @@ definitions:
error:
type: string
description: "当result为bad时此处返回错误日志"
ResponseStoreEntrysh:
type: object
properties:
code:
type: integer
description: "为200时"
status:
description: "处理成功的结果集"
type: array
items:
StoreEntrysh:
type: object
description: "状态和入口信息,不同插件可能有些不一样,仅列出常用公共参数"
properties:
@@ -491,6 +482,18 @@ definitions:
href:
type: string
description: "web端直接跳转url"
ResponseStoreEntrysh:
type: object
properties:
code:
type: integer
description: "为200时"
status:
description: "处理成功的结果集"
type: array
items:
$ref: "#/definitions/StoreEntrysh"
errors:
description: "处理失败的结果集"
type: array