mirror of
https://github.com/hotwa/luci-app-openclaw.git
synced 2026-03-30 20:25:44 +00:00
Use libstdcpp in packaging metadata
This commit is contained in:
2
Makefile
2
Makefile
@@ -13,7 +13,7 @@ PKG_MAINTAINER:=10000ge10000 <10000ge10000@users.noreply.github.com>
|
||||
PKG_LICENSE:=GPL-3.0
|
||||
|
||||
LUCI_TITLE:=OpenClaw AI 网关 LuCI 管理插件
|
||||
LUCI_DEPENDS:=+luci-compat +luci-base +curl +openssl-util +script-utils +tar +libstdcpp6
|
||||
LUCI_DEPENDS:=+luci-compat +luci-base +curl +openssl-util +script-utils +tar +libstdcpp
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
# 优先使用 luci.mk (feeds 模式), 不可用时回退 package.mk
|
||||
|
||||
@@ -106,7 +106,7 @@ mkdir -p "$CTRL_DIR"
|
||||
cat > "$CTRL_DIR/control" << EOF
|
||||
Package: ${PKG_NAME}
|
||||
Version: ${PKG_VERSION}-${PKG_RELEASE}
|
||||
Depends: luci-compat, luci-base, curl, openssl-util, script-utils, tar, libstdcpp6
|
||||
Depends: luci-compat, luci-base, curl, openssl-util, script-utils, tar, libstdcpp
|
||||
Source: https://github.com/10000ge10000/luci-app-openclaw
|
||||
SourceName: ${PKG_NAME}
|
||||
License: GPL-3.0
|
||||
|
||||
@@ -149,7 +149,7 @@ mkdir -p "$INFO_DIR"
|
||||
cat > "$INFO_DIR/$PKG.control" << CTLEOF
|
||||
Package: $PKG
|
||||
Version: $PKG_VER
|
||||
Depends: luci-compat, luci-base, curl, openssl-util, script-utils, tar, libstdcpp6
|
||||
Depends: luci-compat, luci-base, curl, openssl-util, script-utils, tar, libstdcpp
|
||||
Section: luci
|
||||
Architecture: all
|
||||
Installed-Size: 0
|
||||
@@ -185,7 +185,7 @@ cat >> "$STATUS_FILE" << STEOF
|
||||
|
||||
Package: $PKG
|
||||
Version: $PKG_VER
|
||||
Depends: luci-compat, luci-base, curl, openssl-util, script-utils, tar, libstdcpp6
|
||||
Depends: luci-compat, luci-base, curl, openssl-util, script-utils, tar, libstdcpp
|
||||
Status: install user installed
|
||||
Architecture: all
|
||||
Conffiles:
|
||||
|
||||
@@ -33,6 +33,10 @@ fi
|
||||
grep -Fq 'openclaw-paths.sh' "$MAKEFILE" || fail "package makefile should install path helper"
|
||||
grep -Fq 'openclaw-node.sh' "$MAKEFILE" || fail "package makefile should install node helper"
|
||||
grep -Fq 'openclaw/paths.lua' "$MAKEFILE" || fail "package makefile should install Lua path helper"
|
||||
grep -Fq '+libstdcpp' "$MAKEFILE" || fail "package makefile should depend on libstdcpp"
|
||||
if grep -Fq 'libstdcpp6' "$MAKEFILE" "$BUILD_IPK" "$BUILD_RUN"; then
|
||||
fail "packaging metadata should not reference libstdcpp6"
|
||||
fi
|
||||
grep -Fq 'openclaw-paths.sh' "$BUILD_IPK" || fail "ipk builder should package path helper"
|
||||
grep -Fq 'openclaw-node.sh' "$BUILD_IPK" || fail "ipk builder should package node helper"
|
||||
grep -Fq 'openclaw/paths.lua' "$BUILD_IPK" || fail "ipk builder should package Lua path helper"
|
||||
|
||||
Reference in New Issue
Block a user