Skip to content
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 <sensec@gmail.com>
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"
}
}