diff --git a/Makefile b/Makefile index 9c58fc3..500cec3 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 @@ -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 diff --git a/aliyun.com.json b/aliyun.com.json new file mode 100644 index 0000000..c1ad8a5 --- /dev/null +++ b/aliyun.com.json @@ -0,0 +1,9 @@ +{ + "name": "aliyun.com", + "ipv4": { + "url": "update_aliyun_com.sh" + }, + "ipv6": { + "url": "update_aliyun_com.sh" + } +}