mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-27 17:01:53 +08:00
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2017-2020 Yousong Zhou <yszhou4tech@gmail.com>
|
|
# Copyright (C) 2021-2023 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=aliyundrive-webdav
|
|
PKG_VERSION:=2.3.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/messense/aliyundrive-webdav.git
|
|
PKG_SOURCE_VERSION:=6e8eba62b4e50acf89681e3a67a3a693186dcd05
|
|
PKG_MIRROR_HASH:=b6b1099c90818c5eb322bdae105d3df8d7a954d6e9ee7798c3c2412eed528640
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_MAINTAINER:=messense <messense@icloud.com>
|
|
|
|
PKG_BUILD_DEPENDS:=rust/host
|
|
|
|
RUST_PKG_FEATURES:=rustls-tls atomic64 native-tls native-tls-vendored
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../lang/rust/rust-package.mk
|
|
|
|
define Package/aliyundrive-webdav
|
|
SECTION:=multimedia
|
|
CATEGORY:=Multimedia
|
|
TITLE:=WebDAV server for AliyunDrive
|
|
URL:=https://github.com/messense/aliyundrive-webdav
|
|
DEPENDS:=$$(RUST_ARCH_DEPENDS)
|
|
endef
|
|
|
|
define Package/aliyundrive-webdav/description
|
|
WebDAV server for AliyunDrive.
|
|
endef
|
|
|
|
define Package/aliyundrive-webdav/conffiles
|
|
/etc/config/aliyundrive-webdav
|
|
endef
|
|
|
|
define Package/aliyundrive-webdav/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/release/aliyundrive-webdav $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) $(CURDIR)/files/aliyundrive-webdav.init $(1)/etc/init.d/aliyundrive-webdav
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) $(CURDIR)/files/aliyundrive-webdav.config $(1)/etc/config/aliyundrive-webdav
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,aliyundrive-webdav))
|