From 7e49db2e33072bfb9953bc94786ae872d63eaa90 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Tue, 29 Oct 2024 03:31:19 +0800 Subject: [PATCH] ddns-scripts_dnspod: update with luci upstream --- package/lean/ddns-scripts_dnspod/Makefile | 6 +++--- package/lean/ddns-scripts_dnspod/dnspod.cn.json | 9 +++++++++ package/lean/ddns-scripts_dnspod/dnspod.com.json | 9 +++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 package/lean/ddns-scripts_dnspod/dnspod.cn.json create mode 100644 package/lean/ddns-scripts_dnspod/dnspod.com.json diff --git a/package/lean/ddns-scripts_dnspod/Makefile b/package/lean/ddns-scripts_dnspod/Makefile index 61cca9109..60a0c3bc7 100644 --- a/package/lean/ddns-scripts_dnspod/Makefile +++ b/package/lean/ddns-scripts_dnspod/Makefile @@ -28,7 +28,6 @@ define Build/Configure endef define Build/Compile - $(CP) ./*.sh $(PKG_BUILD_DIR) endef define Package/ddns-scripts_dnspod/preinst @@ -39,8 +38,9 @@ define Package/ddns-scripts_dnspod/preinst endef define Package/ddns-scripts_dnspod/install - $(INSTALL_DIR) $(1)/usr/lib/ddns - $(INSTALL_BIN) $(PKG_BUILD_DIR)/*.sh $(1)/usr/lib/ddns + $(INSTALL_DIR) $(1)/usr/lib/ddns $(1)/usr/share/ddns/default + $(INSTALL_BIN) $(CURDIR)/*.sh $(1)/usr/lib/ddns + $(INSTALL_DATA) $(CURDIR)/*.json $(1)/usr/share/ddns/default endef define Package/ddns-scripts_dnspod/postinst diff --git a/package/lean/ddns-scripts_dnspod/dnspod.cn.json b/package/lean/ddns-scripts_dnspod/dnspod.cn.json new file mode 100644 index 000000000..aabe28150 --- /dev/null +++ b/package/lean/ddns-scripts_dnspod/dnspod.cn.json @@ -0,0 +1,9 @@ +{ + "name": "dnspod.com", + "ipv4": { + "url": "update_dnspod_cn.sh" + }, + "ipv6": { + "url": "update_dnspod_cn.sh" + } +} \ No newline at end of file diff --git a/package/lean/ddns-scripts_dnspod/dnspod.com.json b/package/lean/ddns-scripts_dnspod/dnspod.com.json new file mode 100644 index 000000000..899c23a63 --- /dev/null +++ b/package/lean/ddns-scripts_dnspod/dnspod.com.json @@ -0,0 +1,9 @@ +{ + "name": "dnspod.com", + "ipv4": { + "url": "update_dnspod_com.sh" + }, + "ipv6": { + "url": "update_dnspod_com.sh" + } +}