update 2026-07-05 01:02:55

This commit is contained in:
action committed 2026-07-05 01:02:55 +08:00
1 parent 37125b3bbc
commit 76aa39b679
46 files changed
+667 -2545

No files matched your search

+14 -16
View File
@@ -6,32 +6,27 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=CloudDrive2
PKG_VERSION:=0.8.16
PKG_NAME:=clouddrive2
PKG_VERSION:=1.0.4
PKG_RELEASE=1
ifeq ($(ARCH),x86_64)
PKG_ARCH:=x86_64
endif
ifeq ($(ARCH),aarch64)
PKG_ARCH:=aarch64
endif
ifeq ($(ARCH),arm)
PKG_HASH:=dc9088789e75a6b17f55ea7756d841c7e660951f1195cd858c04d3d5b33ea7e0
else ifeq ($(ARCH),arm)
PKG_ARCH:=armv7
PKG_HASH:=26e15f9a97bba7344f39c06e54e42232b1518293d71570f3a2a01187044cb7b5
else ifeq ($(ARCH),x86_64)
PKG_ARCH:=x86_64
PKG_HASH:=84385139ff87a038677e016d78df43669f4a07c616f0e26d90c2c9df66467af4
endif
PKG_SOURCE:=clouddrive-2-linux-$(PKG_ARCH)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://github.com/cloud-fs/cloud-fs.github.io/releases/download/v$(PKG_VERSION)
PKG_HASH:=skip
include $(INCLUDE_DIR)/package.mk
define Package/clouddrive2
SECTION:=net
CATEGORY:=Network
DEPENDS:=@(arm||aarch64||x86_64) +fuse3-utils
DEPENDS:=@(arm||aarch64||x86_64) +fuse-utils
TITLE:=CloudDrive2
endef
@@ -39,6 +34,9 @@ define Package/clouddrive2/description
CloudDrive2 is a cloud storage mounting tool for OpenWrt.
endef
PKG_SOURCE:=clouddrive-2-linux-$(PKG_ARCH)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://github.com/cloud-fs/cloud-fs.github.io/releases/download/v$(PKG_VERSION)
define Build/Prepare
$(call Build/Prepare/Default)
tar -xzvf $(DL_DIR)/clouddrive-2-linux-$(PKG_ARCH)-$(PKG_VERSION).tgz -C $(PKG_BUILD_DIR)/ --strip-components=1
@@ -49,9 +47,9 @@ endef
define Package/clouddrive2/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/clouddrive2.init $(1)/etc/init.d/clouddrive2
$(INSTALL_BIN) $(CURDIR)/files/clouddrive2.init $(1)/etc/init.d/clouddrive2
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/clouddrive2.config $(1)/etc/config/clouddrive2
$(INSTALL_CONF) $(CURDIR)/files/clouddrive2.config $(1)/etc/config/clouddrive2
$(INSTALL_DIR) $(1)/usr/share/clouddrive2
$(INSTALL_BIN) $(PKG_BUILD_DIR)/clouddrive-2-linux-$(PKG_ARCH)-$(PKG_VERSION)/clouddrive $(1)/usr/share/clouddrive2/
cp -rf $(PKG_BUILD_DIR)/clouddrive-2-linux-$(PKG_ARCH)-$(PKG_VERSION)/wwwroot $(1)/usr/share/clouddrive2/
+1 -1
View File
@@ -37,5 +37,5 @@ stop_service() {
load_config
echo "Stopping $SERVICE"
killall -q clouddrive
[ -d "$mount_point" ] && fusermount3 -u "$mount_point"
[ -d "$mount_point" ] && fusermount -u "$mount_point"
}