diff --git a/package/lean/luci-app-dnspod/Makefile b/package/lean/luci-app-dnspod/Makefile index 6d55ff6c6a..3f24b25aac 100644 --- a/package/lean/luci-app-dnspod/Makefile +++ b/package/lean/luci-app-dnspod/Makefile @@ -3,49 +3,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-dnspod PKG_VERSION=1.0 PKG_RELEASE:=1 +LUCI_TITLE:=Auto DNS for dnspod +LUCI_DEPENDS:=+curl +libcurl +LUCI_PKGARCH:=all +LUCI_DESCRIPTION=auto get pub ip,dnspod ddns,must include curl with ssl -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) - -include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/host-build.mk - -define Package/luci-app-dnspod - SECTION:=luci - CATEGORY:=LuCI - SUBMENU:=3. Applications - TITLE:=Auto DNS for dnspod - PKGARCH:=all - DEPENDS:= +curl +libcurl -endef - -define Package/luci-app-dnspod/description - auto get pub ip,dnspod ddns,must include curl with ssl -endef - -define Build/Prepare -endef - -define Build/Configure -endef - -define Build/Compile -endef - -define Package/luci-app-dnspod/install - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller - - $(INSTALL_CONF) ./files/root/etc/config/dnspod $(1)/etc/config/dnspod - $(INSTALL_BIN) ./files/root/etc/init.d/dnspod $(1)/etc/init.d/dnspod - $(INSTALL_DATA) ./files/root/usr/lib/lua/luci/model/cbi/dnspod.lua $(1)/usr/lib/lua/luci/model/cbi/dnspod.lua - $(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/dnspod.lua $(1)/usr/lib/lua/luci/controller/dnspod.lua - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) ./files/dnspod.sh $(1)/usr/sbin -endef - -$(eval $(call BuildPackage,luci-app-dnspod)) - - +include $(TOPDIR)/feeds/luci/luci.mk +# call BuildPackage - OpenWrt buildroot signature diff --git a/package/lean/luci-app-dnspod/files/root/usr/lib/lua/luci/controller/dnspod.lua b/package/lean/luci-app-dnspod/luasrc/controller/dnspod.lua similarity index 100% rename from package/lean/luci-app-dnspod/files/root/usr/lib/lua/luci/controller/dnspod.lua rename to package/lean/luci-app-dnspod/luasrc/controller/dnspod.lua diff --git a/package/lean/luci-app-dnspod/files/root/usr/lib/lua/luci/model/cbi/dnspod.lua b/package/lean/luci-app-dnspod/luasrc/model/cbi/dnspod.lua similarity index 100% rename from package/lean/luci-app-dnspod/files/root/usr/lib/lua/luci/model/cbi/dnspod.lua rename to package/lean/luci-app-dnspod/luasrc/model/cbi/dnspod.lua diff --git a/package/lean/luci-app-dnspod/po/zh_Hans/luci-app-dnspod.po b/package/lean/luci-app-dnspod/po/zh_Hans/luci-app-dnspod.po new file mode 100644 index 0000000000..02dc06719b --- /dev/null +++ b/package/lean/luci-app-dnspod/po/zh_Hans/luci-app-dnspod.po @@ -0,0 +1,37 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: PACKAGE VERSION\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh-Hans\n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" + +#: luasrc/model/cbi/dnspod.lua:21 +msgid "DNSPOD Token" +msgstr "" + +#: luasrc/model/cbi/dnspod.lua:22 +msgid "主域名" +msgstr "" + +#: luasrc/controller/dnspod.lua:4 luasrc/model/cbi/dnspod.lua:15 +msgid "动态DNSPOD" +msgstr "" + +#: luasrc/model/cbi/dnspod.lua:25 +msgid "外网ip获取命令" +msgstr "" + +#: luasrc/model/cbi/dnspod.lua:23 +msgid "子域名" +msgstr "" + +#: luasrc/model/cbi/dnspod.lua:24 +msgid "更新周期(s)" +msgstr "" + +#: luasrc/model/cbi/dnspod.lua:15 +msgid "配置动态DNSPOD" +msgstr "" diff --git a/package/lean/luci-app-dnspod/files/root/etc/config/dnspod b/package/lean/luci-app-dnspod/root/etc/config/dnspod similarity index 100% rename from package/lean/luci-app-dnspod/files/root/etc/config/dnspod rename to package/lean/luci-app-dnspod/root/etc/config/dnspod diff --git a/package/lean/luci-app-dnspod/files/root/etc/init.d/dnspod b/package/lean/luci-app-dnspod/root/etc/init.d/dnspod similarity index 100% rename from package/lean/luci-app-dnspod/files/root/etc/init.d/dnspod rename to package/lean/luci-app-dnspod/root/etc/init.d/dnspod diff --git a/package/lean/luci-app-dnspod/files/dnspod.sh b/package/lean/luci-app-dnspod/root/user/sbin/dnspod.sh similarity index 100% rename from package/lean/luci-app-dnspod/files/dnspod.sh rename to package/lean/luci-app-dnspod/root/user/sbin/dnspod.sh