diff --git a/package/ctcgfw/luci-app-baidupcs-web/Makefile b/package/ctcgfw/luci-app-baidupcs-web/Makefile index 34202f98d1..ee408191d1 100644 --- a/package/ctcgfw/luci-app-baidupcs-web/Makefile +++ b/package/ctcgfw/luci-app-baidupcs-web/Makefile @@ -1,65 +1,16 @@ -# -# This is free software, licensed under the GNU General Public License v3. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=luci-app-baidupcs-web -PKG_VERSION:=1.0.0 -PKG_RELEASE:=1 - -PKG_LICENSE:=GPLv3 -PKG_LICENSE_FILES:=LICENSE -PKG_MAINTAINER:=[CTCGFW] Project OpenWRT - -include $(INCLUDE_DIR)/package.mk - -define Package/$(PKG_NAME) - SECTION:=luci - CATEGORY:=LuCI - SUBMENU:=3. Applications - TITLE:=LuCI Support for BaiduPCS-Web. - PKGARCH:=all - DEPENDS:=+BaiduPCS-Web +wget +openssl-util -endef - -define Package/$(PKG_NAME)/description -LuCI Support for BaiduPCS-Web. -endef - -define Build/Prepare -endef - -define Build/Configure -endef - -define Build/Compile -endef - -define Package/$(PKG_NAME)/postinst -#!/bin/sh -if [ -z "$${IPKG_INSTROOT}" ]; then - ( . /etc/uci-defaults/luci-baidupcs-web ) && rm -f /etc/uci-defaults/luci-baidupcs-web -fi -exit 0 -endef - -define Package/$(PKG_NAME)/conffiles - /etc/config/baidupcs-web -endef - -define Package/$(PKG_NAME)/install - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller - $(INSTALL_DATA) ./files/luci/controller/baidupcs-web.lua $(1)/usr/lib/lua/luci/controller/baidupcs-web.lua - $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi - $(INSTALL_DATA) ./files/luci/model/cbi/baidupcs-web.lua $(1)/usr/lib/lua/luci/model/cbi/baidupcs-web.lua - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_CONF) ./files/etc/config/baidupcs-web $(1)/etc/config/baidupcs-web - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) ./files/etc/init.d/baidupcs-web $(1)/etc/init.d/baidupcs-web - $(INSTALL_DIR) $(1)/etc/uci-defaults - $(INSTALL_BIN) ./files/etc/uci-defaults/luci-baidupcs-web $(1)/etc/uci-defaults/luci-baidupcs-web -endef - -$(eval $(call BuildPackage,$(PKG_NAME))) +# Copyright (C) 2016 Openwrt.org +# +# This is free software, licensed under the Apache License, Version 2.0 . +# + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:=LuCI Support for BaiduPCS-Web +LUCI_DEPENDS:=+BaiduPCS-Web +wget +openssl-util +LUCI_PKGARCH:=all +PKG_VERSION:=1.0 +PKG_RELEASE:=1 + +include $(TOPDIR)/feeds/luci/luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/package/ctcgfw/luci-app-baidupcs-web/files/luci/controller/baidupcs-web.lua b/package/ctcgfw/luci-app-baidupcs-web/luasrc/controller/baidupcs-web.lua similarity index 100% rename from package/ctcgfw/luci-app-baidupcs-web/files/luci/controller/baidupcs-web.lua rename to package/ctcgfw/luci-app-baidupcs-web/luasrc/controller/baidupcs-web.lua diff --git a/package/ctcgfw/luci-app-baidupcs-web/files/luci/model/cbi/baidupcs-web.lua b/package/ctcgfw/luci-app-baidupcs-web/luasrc/model/cbi/baidupcs-web.lua similarity index 100% rename from package/ctcgfw/luci-app-baidupcs-web/files/luci/model/cbi/baidupcs-web.lua rename to package/ctcgfw/luci-app-baidupcs-web/luasrc/model/cbi/baidupcs-web.lua diff --git a/package/ctcgfw/luci-app-baidupcs-web/files/etc/config/baidupcs-web b/package/ctcgfw/luci-app-baidupcs-web/root/etc/config/baidupcs-web similarity index 100% rename from package/ctcgfw/luci-app-baidupcs-web/files/etc/config/baidupcs-web rename to package/ctcgfw/luci-app-baidupcs-web/root/etc/config/baidupcs-web diff --git a/package/ctcgfw/luci-app-baidupcs-web/files/etc/init.d/baidupcs-web b/package/ctcgfw/luci-app-baidupcs-web/root/etc/init.d/baidupcs-web similarity index 100% rename from package/ctcgfw/luci-app-baidupcs-web/files/etc/init.d/baidupcs-web rename to package/ctcgfw/luci-app-baidupcs-web/root/etc/init.d/baidupcs-web diff --git a/package/ctcgfw/luci-app-baidupcs-web/files/etc/uci-defaults/luci-baidupcs-web b/package/ctcgfw/luci-app-baidupcs-web/root/etc/uci-defaults/luci-baidupcs-web similarity index 100% rename from package/ctcgfw/luci-app-baidupcs-web/files/etc/uci-defaults/luci-baidupcs-web rename to package/ctcgfw/luci-app-baidupcs-web/root/etc/uci-defaults/luci-baidupcs-web