luci-app-rclone: tidy up Makefile (#7813)

Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
This commit is contained in:
Beginner 2021-09-06 21:17:56 +08:00 committed by GitHub
parent b27f77f431
commit 3a25a30b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 26 deletions

View File

@ -9,19 +9,44 @@
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for Rclone
LUCI_DEPENDS:=+rclone \
+PACKAGE_luci-app-rclone_INCLUDE_rclone-webui:rclone-webui-react \
+PACKAGE_luci-app-rclone_INCLUDE_rclone-ng:rclone-ng \
+PACKAGE_luci-app-rclone_INCLUDE_fuse-utils:fuse-utils
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-rclone
PKG_VERSION:=1.4.1
PKG_RELEASE:=1
PKG_LICENSE:=GPLv3.0+
PKG_MAINTAINER:=ElonH <elonhhuang@gmail.com>
define Package/luci-app-rclone/description
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_rclone-webui \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_rclone-ng \
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_fuse-utils
LUCI_TITLE:=LuCI support for Rclone
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+rclone \
+PACKAGE_$(PKG_NAME)_INCLUDE_rclone-webui:rclone-webui-react \
+PACKAGE_$(PKG_NAME)_INCLUDE_rclone-ng:rclone-ng \
+PACKAGE_$(PKG_NAME)_INCLUDE_fuse-utils:fuse-utils
define Package/$(PKG_NAME)/config
config PACKAGE_$(PKG_NAME)_INCLUDE_rclone-webui
bool "Include rclone-webui"
default y
config PACKAGE_$(PKG_NAME)_INCLUDE_rclone-ng
bool "Include rclone-ng (another webui)"
default y
config PACKAGE_$(PKG_NAME)_INCLUDE_fuse-utils
bool "Include fuse-utils (mount cloud storage)"
default y
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/rclone
endef
define Package/$(PKG_NAME)/description
LuCI support for Rclone.
Rclone ("rsync for cloud storage") is a command line program to sync root/usr/bin and directories to and from different cloud storage providers.
Cloud storage providers:
@ -35,24 +60,6 @@ define Package/luci-app-rclone/description
Yandex Disk, The local root/usr/binystem.
endef
define Package/luci-app-rclone/conffiles
/etc/config/rclone
endef
define Package/luci-app-rclone/config
config PACKAGE_luci-app-rclone_INCLUDE_rclone-webui
bool "Include rclone-webui"
default y
config PACKAGE_luci-app-rclone_INCLUDE_rclone-ng
bool "Include rclone-ng (another webui)"
default y
config PACKAGE_luci-app-rclone_INCLUDE_fuse-utils
bool "Include fuse-utils (mount cloud storage)"
default y
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

View File

@ -1 +1 @@
../zh_Hans/luci-app-rclone.po
../zh_Hans/rclone.po