update 2024-08-10 14:12:47
This commit is contained in:
parent
c43b851af7
commit
b86af1f8c1
|
@ -1,64 +0,0 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-only
|
|
||||||
#
|
|
||||||
# Copyright (C) 2021 ImmortalWrt.org
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_NAME:=uugamebooster
|
|
||||||
PKG_VERSION:=7.6.12
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(ARCH).tar.gz
|
|
||||||
PKG_SOURCE_URL:=https://uu.gdl.netease.com/uuplugin/openwrt-$(ARCH)/v$(PKG_VERSION)/uu.tar.gz?
|
|
||||||
ifeq ($(ARCH),aarch64)
|
|
||||||
PKG_HASH:=94142285c777c43c817c686d6a2bdae3d2321d168ca095b57dc0dc298e1d2edd
|
|
||||||
else ifeq ($(ARCH),arm)
|
|
||||||
PKG_HASH:=03af56ff4e9b541378a5aa3a1cb3a691b651a3d44c3635e041a9b770e08f80b8
|
|
||||||
else ifeq ($(ARCH),mipsel)
|
|
||||||
PKG_HASH:=180370c0840f33a151c1e19d2ea01a2c6d7edc5e765b76f3432153fd7e6cdaef
|
|
||||||
else ifeq ($(ARCH),x86_64)
|
|
||||||
PKG_HASH:=cf7301d76a901da3f8410d7c908d62fde7ad0c04c39c147943b9794394867d49
|
|
||||||
endif
|
|
||||||
|
|
||||||
PKG_LICENSE:=Proprietary
|
|
||||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
|
|
||||||
STRIP:=true
|
|
||||||
|
|
||||||
TAR_CMD=$(HOST_TAR) -C $(1)/ $(TAR_OPTIONS)
|
|
||||||
|
|
||||||
define Package/uugamebooster
|
|
||||||
SECTION:=net
|
|
||||||
CATEGORY:=Network
|
|
||||||
DEPENDS:=@(aarch64||arm||mipsel||x86_64) +kmod-tun
|
|
||||||
TITLE:=NetEase UU Game Booster
|
|
||||||
URL:=https://uu.163.com
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/uugamebooster/description
|
|
||||||
NetEase's UU Game Booster Accelerates Triple-A Gameplay and Market.
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/uugamebooster/conffiles
|
|
||||||
/.uuplugin_uuid
|
|
||||||
/usr/share/uugamebooster/uu.conf
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/uugamebooster/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uuplugin $(1)/usr/bin/uugamebooster
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/share/uugamebooster
|
|
||||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/uu.conf $(1)/usr/share/uugamebooster/uu.conf
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
|
|
||||||
$(INSTALL_CONF) ./files/uugamebooster.config $(1)/etc/config/uugamebooster
|
|
||||||
$(INSTALL_BIN) ./files/uugamebooster.init $(1)/etc/init.d/uugamebooster
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,uugamebooster))
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
config uugamebooster 'config'
|
|
||||||
option enabled '0'
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
#!/bin/sh /etc/rc.common
|
|
||||||
# Copyright (C) 2021 Tianling Shen <cnsztl@immortalwrt.org>
|
|
||||||
|
|
||||||
USE_PROCD=1
|
|
||||||
START=99
|
|
||||||
|
|
||||||
CONF="uugamebooster"
|
|
||||||
PROG="/usr/bin/uugamebooster"
|
|
||||||
|
|
||||||
UU_CONF="/usr/share/uugamebooster/uu.conf"
|
|
||||||
|
|
||||||
start_service() {
|
|
||||||
config_load "$CONF"
|
|
||||||
local enabled
|
|
||||||
config_get_bool enabled "config" "enabled" "0"
|
|
||||||
[ "$enabled" -eq "1" ] || return 1
|
|
||||||
|
|
||||||
procd_open_instance "$CONF"
|
|
||||||
|
|
||||||
procd_set_param command "$PROG" "$UU_CONF"
|
|
||||||
|
|
||||||
procd_set_param limits core="unlimited"
|
|
||||||
procd_set_param respawn
|
|
||||||
procd_set_param stdout 1
|
|
||||||
procd_set_param stderr 1
|
|
||||||
|
|
||||||
procd_close_instance
|
|
||||||
}
|
|
||||||
|
|
||||||
reload_service() {
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
service_triggers() {
|
|
||||||
procd_add_reload_trigger "$CONF"
|
|
||||||
}
|
|
Loading…
Reference in New Issue