Skip to content

更新对2.8.2-7以上版本的支持 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=ddns-scripts_aliyun
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_VERSION:=1.0.3
PKG_RELEASE:=2

PKG_LICENSE:=GPLv2
PKG_MAINTAINER:=Sense <[email protected]>
Expand All @@ -26,7 +26,7 @@ define Build/Configure
endef

define Build/Compile
$(CP) ./*.sh $(PKG_BUILD_DIR)
$(CP) ./*.{sh,json} $(PKG_BUILD_DIR)
endef

define Package/$(PKG_NAME)/preinst
Expand All @@ -39,6 +39,9 @@ endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) $(PKG_BUILD_DIR)/update_aliyun_com.sh $(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_BIN) $(PKG_BUILD_DIR)/aliyun.com.json $(1)/usr/share/ddns/default

endef

define Package/$(PKG_NAME)/postinst
Expand Down
9 changes: 9 additions & 0 deletions aliyun.com.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "aliyun.com",
"ipv4": {
"url": "update_aliyun_com.sh"
},
"ipv6": {
"url": "update_aliyun_com.sh"
}
}