2021-10-10 06:42:00 +00:00
|
|
|
# SPDX-Identifier-License: GPL-3.0-or-later
|
|
|
|
#
|
|
|
|
# Copyright (C) 2019 Elon Huang <elonhhuang@gmail.com>
|
|
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rclone-webui-react
|
|
|
|
PKG_VERSION:=2.0.5
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2021-10-10 06:42:00 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
|
|
|
|
PKG_SOURCE_URL:=https://github.com/rclone/rclone-webui-react/releases/download/v$(PKG_VERSION)/currentbuild.zip?
|
|
|
|
PKG_HASH:=afd6836ecc5c5a1161e25cb0633c1167eb5933bb5069545680d69fcba635f011
|
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILE:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Elon Huang <elonhhuang@gmail.com> \
|
|
|
|
Tianling Shen <cnsztl@immortalwrt.org>
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
UNZIP_CMD:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
|
|
|
|
|
|
|
|
define Package/rclone-webui-react
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Cloud Manager
|
|
|
|
TITLE:=A reactjs based web UI for rclone
|
|
|
|
URL:=https://github.com/rclone/rclone-webui-react
|
|
|
|
DEPENDS:=+rclone-config
|
|
|
|
PKGARCH:=all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rclone-webui-react/description
|
|
|
|
A full fledged UI for the rclone cloud sync tool.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rclone-webui-react/install
|
|
|
|
$(INSTALL_DIR) $(1)/www/rclone-webui-react
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/build/* $(1)/www/rclone-webui-react
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rclone-webui-react))
|