mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-12 17:12:04 +08:00
ddns-scripts_dnspod: fix dependence
This commit is contained in:
parent
6abd652604
commit
a77abd4064
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ddns-scripts_aliyun
|
PKG_NAME:=ddns-scripts_aliyun
|
||||||
PKG_VERSION:=1.0.3
|
PKG_VERSION:=1.0.3
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_LICENSE:=GPLv2
|
PKG_LICENSE:=GPLv2
|
||||||
PKG_MAINTAINER:=Sense <sensec@gmail.com>
|
PKG_MAINTAINER:=Sense <sensec@gmail.com>
|
||||||
@ -17,7 +17,7 @@ define Package/$(PKG_NAME)
|
|||||||
SUBMENU:=IP Addresses and Names
|
SUBMENU:=IP Addresses and Names
|
||||||
TITLE:=DDNS extension for AliYun.com
|
TITLE:=DDNS extension for AliYun.com
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
DEPENDS:=+ddns-scripts +uclient-fetch +libustream-openssl +openssl-util
|
DEPENDS:=+ddns-scripts +wget-ssl +openssl-util
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/description
|
define Package/$(PKG_NAME)/description
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
[ -z "$password" ] && write_log 14 "配置错误!保存阿里云API访问密钥的'密码'不能为空"
|
[ -z "$password" ] && write_log 14 "配置错误!保存阿里云API访问密钥的'密码'不能为空"
|
||||||
|
|
||||||
# 检查外部调用工具
|
# 检查外部调用工具
|
||||||
WGET_SSL='uclient-fetch'
|
WGET_SSL='wget'
|
||||||
[ -n "$WGET_SSL" ] || write_log 13 "使用阿里云API需要 uclient-fetch 支持,请先安装"
|
[ -n "$WGET_SSL" ] || write_log 13 "使用阿里云API需要 GNU Wget 支持,请先安装"
|
||||||
command -v sed >/dev/null 2>&1 || write_log 13 "使用阿里云API需要 sed 支持,请先安装"
|
command -v sed >/dev/null 2>&1 || write_log 13 "使用阿里云API需要 sed 支持,请先安装"
|
||||||
command -v openssl >/dev/null 2>&1 || write_log 13 "使用阿里云API需要 openssl-util 支持,请先安装"
|
command -v openssl >/dev/null 2>&1 || write_log 13 "使用阿里云API需要 openssl-util 支持,请先安装"
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ __DOMAIN="${domain#*@}"
|
|||||||
|
|
||||||
# 构造基本通信命令
|
# 构造基本通信命令
|
||||||
build_command() {
|
build_command() {
|
||||||
__CMDBASE="$WGET_SSL -q -O $DATFILE"
|
__CMDBASE="$WGET_SSL --no-hsts -nv -t 1 -O $DATFILE -o $ERRFILE"
|
||||||
# 绑定用于通信的主机/IP
|
# 绑定用于通信的主机/IP
|
||||||
if [ -n "$bind_network" ]; then
|
if [ -n "$bind_network" ]; then
|
||||||
local bind_ip run_prog
|
local bind_ip run_prog
|
||||||
@ -50,7 +50,7 @@ build_command() {
|
|||||||
eval "$run_prog bind_ip $bind_network" || \
|
eval "$run_prog bind_ip $bind_network" || \
|
||||||
write_log 13 "无法使用 '$run_prog $bind_network' 获取本地IP地址 - 错误代码: '$?'"
|
write_log 13 "无法使用 '$run_prog $bind_network' 获取本地IP地址 - 错误代码: '$?'"
|
||||||
write_log 7 "强制使用IP '$bind_ip' 通信"
|
write_log 7 "强制使用IP '$bind_ip' 通信"
|
||||||
write_log 14 "uclient-fetch: FORCE binding to specific address not supported"
|
__CMDBASE="$__CMDBASE --bind-address=$bind_ip"
|
||||||
fi
|
fi
|
||||||
# 强制设定IP版本
|
# 强制设定IP版本
|
||||||
if [ $force_ipversion -eq 1 ]; then
|
if [ $force_ipversion -eq 1 ]; then
|
||||||
@ -82,7 +82,7 @@ aliyun_transfer() {
|
|||||||
|
|
||||||
while : ; do
|
while : ; do
|
||||||
build_Request $__PARAM
|
build_Request $__PARAM
|
||||||
__RUNPROG="$__CMDBASE '${__URLBASE}?${__URLARGS}' 2>$ERRFILE"
|
__RUNPROG="$__CMDBASE '${__URLBASE}?${__URLARGS}'"
|
||||||
|
|
||||||
write_log 7 "#> $__RUNPROG"
|
write_log 7 "#> $__RUNPROG"
|
||||||
eval $__RUNPROG
|
eval $__RUNPROG
|
||||||
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ddns-scripts_dnspod
|
PKG_NAME:=ddns-scripts_dnspod
|
||||||
PKG_VERSION:=1.0.2
|
PKG_VERSION:=1.0.2
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_LICENSE:=GPLv2
|
PKG_LICENSE:=GPLv2
|
||||||
PKG_MAINTAINER:=Small_5
|
PKG_MAINTAINER:=Small_5
|
||||||
@ -17,7 +17,7 @@ define Package/$(PKG_NAME)
|
|||||||
SUBMENU:=IP Addresses and Names
|
SUBMENU:=IP Addresses and Names
|
||||||
TITLE:=DDNS extension for Dnspod.com/Dnspod.cn
|
TITLE:=DDNS extension for Dnspod.com/Dnspod.cn
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
DEPENDS:=+ddns-scripts +wget
|
DEPENDS:=+ddns-scripts +wget-ssl +ca-bundle
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/description
|
define Package/$(PKG_NAME)/description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user