mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 05:25:13 +08:00
🤞 Sync 2026-08-31 03:15:28
This commit is contained in:
1 parent
1444a85fae
commit
5151f60573
5 files changed
+25
-7
No files matched your search
+3
-3
@@ -15,7 +15,7 @@ AGENTFLOW_HASH_aarch64:=938b5feca2fc942eca13b0e8c9df9ea6e7d45c0b0adba0b61f6a3da5
|
||||
|
||||
PKG_NAME:=agentflow
|
||||
PKG_VERSION:=0.3.0
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
AGENTFLOW_DOWNLOAD:=agentflow-linux-$(AGENTFLOW_ARCH)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
@@ -62,8 +62,8 @@ define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/uci-defaults $(1)/etc/config
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/agentflow $(1)/usr/bin/agentflow
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/uci-defaults $(1)/etc/config
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/agentflow $(1)/usr/sbin/agentflow
|
||||
$(INSTALL_BIN) ./files/agentflow.init $(1)/etc/init.d/agentflow
|
||||
$(INSTALL_BIN) ./files/agentflow.uci-default $(1)/etc/uci-defaults/09-agentflow
|
||||
$(INSTALL_CONF) ./files/agentflow.config $(1)/etc/config/agentflow
|
||||
|
||||
@@ -14,6 +14,7 @@ set_mise_env() {
|
||||
procd_set_param env \
|
||||
"$@" \
|
||||
MISE_INSTALLS_DIR="$data_dir/globalmise/mise-installs" \
|
||||
MISE_GLOBAL_CONFIG_FILE="$data_dir/globalmise/mise-config/config.toml" \
|
||||
MISE_DATA_DIR="$data_dir/globalmise/mise-data" \
|
||||
MISE_CACHE_DIR="$data_dir/globalmise/mise-cache" \
|
||||
MISE_STATE_DIR="$data_dir/globalmise/mise-state" \
|
||||
@@ -27,15 +28,15 @@ start_service() {
|
||||
config_foreach get_config agentflow
|
||||
[ "$enabled" = 1 ] || return 1
|
||||
|
||||
[ -x /usr/bin/agentflow ] || {
|
||||
logger -t agentflow "missing executable: /usr/bin/agentflow"
|
||||
[ -x /usr/sbin/agentflow ] || {
|
||||
logger -t agentflow "missing executable: /usr/sbin/agentflow"
|
||||
return 1
|
||||
}
|
||||
mkdir -p "$data_dir" || return 1
|
||||
|
||||
logger -t agentflow "starting AgentFlow on $host:$port"
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/bin/agentflow
|
||||
procd_set_param command /usr/sbin/agentflow
|
||||
set_mise_env \
|
||||
"AGENT_FLOW_DATA=$data_dir/data" \
|
||||
"AGENT_FLOW_HOST=$host" \
|
||||
|
||||
Reference in new issue
Block a user