mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 19:35:13 +08:00
🐤 Sync 2026-09-18 23:02:02
This commit is contained in:
1 parent
875e486081
commit
a0befc3e6d
5 files changed
+363
-385
No files matched your search
+12
-14
@@ -1,17 +1,18 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=webd
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_VERSION:=20240223
|
||||
PKG_VERSION_MEDIATEK_FILO:=20240710
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=A Lightweight self-hosted netdisk application
|
||||
URL:=https://webd90kb.github.io/webd/
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=A Lightweight self-hosted netdisk application
|
||||
URL:=https://webd.cf
|
||||
endef
|
||||
|
||||
TARGET_LIBC:=musl
|
||||
@@ -79,12 +80,14 @@ endif
|
||||
|
||||
ifeq ($(ARCH),aarch64)
|
||||
TARGET_ARCH:=aarch64
|
||||
|
||||
ifeq ($(BOARD),rockchip)
|
||||
TARGET_BOARD:=musl.rockchip-armv8
|
||||
endif
|
||||
ifeq ($(BOARD),brcm2708)
|
||||
TARGET_BOARD:=musl.brcm2708-bcm2710
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD),mediatek)
|
||||
ifneq (,$(filter filogic,$(SUBTARGET)))
|
||||
TARGET_BOARD:=musl.mediatek-filogic
|
||||
@@ -93,16 +96,8 @@ ifeq ($(ARCH),aarch64)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(DUMP),1)
|
||||
ifneq ($(ARCH),)
|
||||
ifeq ($(strip $(TARGET_ARCH)$(TARGET_BOARD)),)
|
||||
$(error Unsupported ARCH/BOARD combo: ARCH=$(ARCH) BOARD=$(BOARD) SUBTARGET=$(SUBTARGET))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(TARGET_ARCH)-openwrt-linux-$(TARGET_BOARD).tar.gz
|
||||
PKG_SOURCE_URL:=https://webd90kb.github.io/webd/webd/webd_dl/20240223/
|
||||
PKG_SOURCE_URL:=https://webd90kb.github.io/webd/webd/webd_dl/$(PKG_VERSION)/
|
||||
PKG_HASH:=skip
|
||||
|
||||
UNTAR_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
@@ -118,10 +113,13 @@ endef
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(UNTAR_DIR)/webd/webd $(1)/usr/bin/webd
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/share/$(PKG_NAME)/web
|
||||
$(CP) -r $(UNTAR_DIR)/webd/web/* $(1)/usr/share/$(PKG_NAME)/web/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DATA) $(UNTAR_DIR)/webd/webd.conf $(1)/etc/webd.conf.example
|
||||
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
Reference in new issue
Block a user