update 2023-01-31 23:20:18

This commit is contained in:
github-actions[bot] 2023-01-31 23:20:18 +08:00
parent 8c9f4bfd5b
commit fc1f433acb
10 changed files with 270 additions and 655 deletions

View File

@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=CloudflareSpeedTest PKG_NAME:=CloudflareSpeedTest
PKG_VERSION:=2.1.0 PKG_VERSION:=2.2.0
PKG_RELEASE:=$(AUTORELEASE) PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/XIU2/CloudflareSpeedTest/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/XIU2/CloudflareSpeedTest/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=39a4e4a341330746a8bd0a07769663f08d2fcc9c216e52a8b5e40c3e03fe1b6f PKG_HASH:=89fea0443b1501331526d95b3a827d93df3da3e3cd693310627fd80b53a46ee8
PKG_LICENSE:=GPL-3.0-only PKG_LICENSE:=GPL-3.0-only
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE

View File

@ -1,128 +1,127 @@
# SPDX-License-Identifier: GPL-3.0-only # SPDX-License-Identifier: GPL-3.0-only
# #
# Copyright (C) 2021 ImmortalWrt.org # Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=naiveproxy PKG_NAME:=naiveproxy
PKG_VERSION:=109.0.5414.74-1 PKG_VERSION:=109.0.5414.74-2
PKG_RELEASE:=$(AUTORELEASE) PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=eb0b7d4ee7e34aff5bd9f7ff662a707c059e3739da47cd52e6d5edfff988123a PKG_HASH:=3c1e9e276e4ae79c8192c25a15df2f564741602ae403712565c48aa6db9d78e7
PKG_LICENSE:=BSD 3-Clause PKG_LICENSE:=BSD 3-Clause
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org> PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
ifneq ($(wildcard $(TOPDIR)/feeds/packages/devel/ninja/ninja.mk),) ifneq ($(wildcard $(TOPDIR)/feeds/packages/devel/ninja/ninja.mk),)
PKG_BUILD_DEPENDS+= ninja/host PKG_BUILD_DEPENDS+= ninja/host
endif endif
NINJA ?= ninja PKG_USE_MIPS16:=0
PKG_USE_MIPS16:=0 PKG_BUILD_PARALLEL:=1
PKG_BUILD_PARALLEL:=1
ifneq ($(CONFIG_CPU_TYPE)," ")
ifneq ($(CONFIG_CPU_TYPE)," ") CPU_TYPE:=$(word 1, $(subst +," ,$(CONFIG_CPU_TYPE)))
CPU_TYPE:=$(word 1, $(subst +," ,$(CONFIG_CPU_TYPE))) CPU_SUBTYPE:=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE)))
CPU_SUBTYPE:=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE))) ifeq ($(CPU_SUBTYPE),)
ifeq ($(CPU_SUBTYPE),) CPU_SUBTYPE:=""
CPU_SUBTYPE:="" endif
endif else
else CPU_TYPE:=""
CPU_TYPE:="" CPU_SUBTYPE:=""
CPU_SUBTYPE:="" endif
endif
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
define Package/naiveproxy
define Package/naiveproxy SECTION:=net
SECTION:=net CATEGORY:=Network
CATEGORY:=Network SUBMENU:=Web Servers/Proxies
SUBMENU:=Web Servers/Proxies TITLE:=Make a fortune quietly
TITLE:=Make a fortune quietly URL:=https://github.com/klzgrad/naiveproxy
URL:=https://github.com/klzgrad/naiveproxy DEPENDS:=@!(arc||armeb||mips||mips64||powerpc||TARGET_gemini) +libatomic
DEPENDS:=@!(arc||armeb||mips||mips64||powerpc||TARGET_gemini) +libatomic endef
endef
define Package/naiveproxy/description
define Package/naiveproxy/description NaïveProxy uses Chrome's network stack to camouflage traffic with strong
NaïveProxy uses Chrome's network stack to camouflage traffic with strong censorship resistance and low detectability. Reusing Chrome's stack also
censorship resistance and low detectability. Reusing Chrome's stack also ensures best practices in performance and security.
ensures best practices in performance and security. endef
endef
ifneq ($(CONFIG_CCACHE),)
ifneq ($(CONFIG_CCACHE),) export CCACHE_SLOPPINESS=time_macros
export CCACHE_SLOPPINESS=time_macros export CCACHE_BASEDIR=$(PKG_BUILD_DIR)/src
export CCACHE_BASEDIR=$(PKG_BUILD_DIR)/src export CCACHE_CPP2=yes
export CCACHE_CPP2=yes export naive_ccache_flags=cc_wrapper="$(CCACHE)"
export naive_ccache_flags=cc_wrapper="$(CCACHE)" endif
endif
CLANG_VER:=16-init-8697-g60809cd2-1
CLANG_VER:=16-init-8697-g60809cd2-1 CLANG_FILE:=clang-llvmorg-$(CLANG_VER).tgz
CLANG_FILE:=clang-llvmorg-$(CLANG_VER).tgz define Download/CLANG
define Download/CLANG URL:=https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64
URL:=https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64 URL_FILE:=$(CLANG_FILE)
URL_FILE:=$(CLANG_FILE) FILE:=$(CLANG_FILE)
FILE:=$(CLANG_FILE) HASH:=5ae35f85e0d32136795c6b223bf64263d46678dd4a24fea4e9039e58a32670de
HASH:=5ae35f85e0d32136795c6b223bf64263d46678dd4a24fea4e9039e58a32670de endef
endef
GN_VER:=1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41
GN_VER:=1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41 GN_FILE:=gn-git_revision-$(GN_VER).zip
GN_FILE:=gn-git_revision-$(GN_VER).zip define Download/GN_TOOL
define Download/GN_TOOL URL:=https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+
URL:=https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+ URL_FILE:=git_revision:$(GN_VER)
URL_FILE:=git_revision:$(GN_VER) FILE:=$(GN_FILE)
FILE:=$(GN_FILE) HASH:=7195291488d08f3a10e85b85d8c4816e077015f1c5f196f770003a97aa42caf8
HASH:=7195291488d08f3a10e85b85d8c4816e077015f1c5f196f770003a97aa42caf8 endef
endef
PGO_VER:=5414-1672766927-26b17aa1745606599e619feccfe46371e879e7c4
PGO_VER:=5414-1672766927-26b17aa1745606599e619feccfe46371e879e7c4 PGO_FILE:=chrome-linux-$(PGO_VER).profdata
PGO_FILE:=chrome-linux-$(PGO_VER).profdata define Download/PGO_PROF
define Download/PGO_PROF URL:=https://storage.googleapis.com/chromium-optimization-profiles/pgo_profiles
URL:=https://storage.googleapis.com/chromium-optimization-profiles/pgo_profiles URL_FILE:=$(PGO_FILE)
URL_FILE:=$(PGO_FILE) FILE:=$(PGO_FILE)
FILE:=$(PGO_FILE) HASH:=e9a52f7a60d46fd6e682b0e908b1363faeb6f96bc2e95d5d95095b33fa67e34a
HASH:=e9a52f7a60d46fd6e682b0e908b1363faeb6f96bc2e95d5d95095b33fa67e34a endef
endef
define Build/Prepare
define Build/Prepare $(call Build/Prepare/Default)
$(call Build/Prepare/Default)
( \
( \ pushd $(PKG_BUILD_DIR)/src ; \
pushd $(PKG_BUILD_DIR)/src ; \ mkdir -p "chrome/build/pgo_profiles" ; \
mkdir -p "chrome/build/pgo_profiles" ; \ $(CP) "$(DL_DIR)/$(PGO_FILE)" "chrome/build/pgo_profiles" ; \
$(CP) "$(DL_DIR)/$(PGO_FILE)" "chrome/build/pgo_profiles" ; \ mkdir -p "third_party/llvm-build/Release+Asserts" ; \
mkdir -p "third_party/llvm-build/Release+Asserts" ; \ $(TAR) -xzf "$(DL_DIR)/$(CLANG_FILE)" -C "third_party/llvm-build/Release+Asserts" ; \
$(TAR) -xzf "$(DL_DIR)/$(CLANG_FILE)" -C "third_party/llvm-build/Release+Asserts" ; \ echo -e "llvmorg-$(CLANG_VER)" > "third_party/llvm-build/Release+Asserts/cr_build_revision" ; \
echo -e "llvmorg-$(CLANG_VER)" > "third_party/llvm-build/Release+Asserts/cr_build_revision" ; \ mkdir -p "gn/out" ; \
mkdir -p "gn/out" ; \ unzip -o "$(DL_DIR)/$(GN_FILE)" -d "gn/out" ; \
unzip -o "$(DL_DIR)/$(GN_FILE)" -d "gn/out" ; \ popd ; \
popd ; \ )
) endef
endef
define Build/Configure
define Build/Configure ( \
( \ pushd "$(PKG_BUILD_DIR)/src" ; \
pushd "$(PKG_BUILD_DIR)/src" ; \ . ../init_env.sh "$(ARCH)" $(CPU_TYPE) $(CPU_SUBTYPE) "$(TOOLCHAIN_DIR)" ; \
. ../init_env.sh "$(ARCH)" $(CPU_TYPE) $(CPU_SUBTYPE) "$(TOOLCHAIN_DIR)" ; \ export naive_flags+=" $$$${naive_ccache_flags}" ; \
export naive_flags+=" $$$${naive_ccache_flags}" ; \ mkdir -p "out" ; \
mkdir -p "out" ; \ ./gn/out/gn gen "out/Release" --args="$$$${naive_flags}" --script-executable="python3" ; \
./gn/out/gn gen "out/Release" --args="$$$${naive_flags}" --script-executable="$(PYTHON)" ; \ popd ; \
popd ; \ )
) endef
endef
define Build/Compile
define Build/Compile ninja -C "$(PKG_BUILD_DIR)/src/out/Release" naive
+$(NINJA) -C "$(PKG_BUILD_DIR)/src/out/Release" naive endef
endef
define Package/naiveproxy/install
define Package/naiveproxy/install $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/out/Release/naive $(1)/usr/bin/naive
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/out/Release/naive $(1)/usr/bin/naive endef
endef
$(eval $(call Download,CLANG))
$(eval $(call Download,CLANG)) $(eval $(call Download,GN_TOOL))
$(eval $(call Download,GN_TOOL)) $(eval $(call Download,PGO_PROF))
$(eval $(call Download,PGO_PROF))
$(eval $(call BuildPackage,naiveproxy))
$(eval $(call BuildPackage,naiveproxy))

View File

@ -1,38 +1,38 @@
--- a/src/base/allocator/partition_allocator/tagging.cc --- a/src/base/allocator/partition_allocator/tagging.cc
+++ b/src/base/allocator/partition_allocator/tagging.cc +++ b/src/base/allocator/partition_allocator/tagging.cc
@@ -18,22 +18,25 @@ @@ -18,22 +18,25 @@
#define PR_GET_TAGGED_ADDR_CTRL 56 #define PR_GET_TAGGED_ADDR_CTRL 56
#define PR_TAGGED_ADDR_ENABLE (1UL << 0) #define PR_TAGGED_ADDR_ENABLE (1UL << 0)
-#if BUILDFLAG(IS_LINUX) -#if BUILDFLAG(IS_LINUX)
-#include <linux/version.h> -#include <linux/version.h>
- -
-// Linux headers already provide these since v5.10. -// Linux headers already provide these since v5.10.
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
-#define HAS_PR_MTE_MACROS -#define HAS_PR_MTE_MACROS
-#endif -#endif
-#endif -#endif
- -
-#ifndef HAS_PR_MTE_MACROS -#ifndef HAS_PR_MTE_MACROS
+#ifndef PR_MTE_TCF_SHIFT +#ifndef PR_MTE_TCF_SHIFT
#define PR_MTE_TCF_SHIFT 1 #define PR_MTE_TCF_SHIFT 1
+#endif +#endif
+#ifndef PR_MTE_TCF_NONE +#ifndef PR_MTE_TCF_NONE
#define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT) #define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT)
+#endif +#endif
+#ifndef PR_MTE_TCF_SYNC +#ifndef PR_MTE_TCF_SYNC
#define PR_MTE_TCF_SYNC (1UL << PR_MTE_TCF_SHIFT) #define PR_MTE_TCF_SYNC (1UL << PR_MTE_TCF_SHIFT)
+#endif +#endif
+#ifndef PR_MTE_TCF_ASYNC +#ifndef PR_MTE_TCF_ASYNC
#define PR_MTE_TCF_ASYNC (2UL << PR_MTE_TCF_SHIFT) #define PR_MTE_TCF_ASYNC (2UL << PR_MTE_TCF_SHIFT)
+#endif +#endif
+#ifndef PR_MTE_TCF_MASK +#ifndef PR_MTE_TCF_MASK
#define PR_MTE_TCF_MASK (3UL << PR_MTE_TCF_SHIFT) #define PR_MTE_TCF_MASK (3UL << PR_MTE_TCF_SHIFT)
+#endif +#endif
+#ifndef PR_MTE_TAG_SHIFT +#ifndef PR_MTE_TAG_SHIFT
#define PR_MTE_TAG_SHIFT 3 #define PR_MTE_TAG_SHIFT 3
+#endif +#endif
+#ifndef PR_MTE_TAG_MASK +#ifndef PR_MTE_TAG_MASK
#define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT) #define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT)
#endif #endif
#endif #endif

199
naiveproxy/src/init_env.sh Normal file → Executable file
View File

@ -1,100 +1,99 @@
#!/bin/bash #!/bin/bash
# SPDX-License-Identifier: GPL-3.0-only # SPDX-License-Identifier: GPL-3.0-only
# #
# Copyright (C) 2021 ImmortalWrt.org # Copyright (C) 2021 ImmortalWrt.org
# -------------------------------------------------------- # --------------------------------------------------------
# Init build dependencies for naiveproxy # Init build dependencies for naiveproxy
# Read args from shell # Read args from shell
target_arch="$1" target_arch="$1"
cpu_type="$2" cpu_type="$2"
cpu_subtype="$3" cpu_subtype="$3"
toolchain_dir="$4" toolchain_dir="$4"
# Set arch info # Set arch info
case "${target_arch}" in case "${target_arch}" in
"aarch64") "aarch64")
naive_arch="arm64" naive_arch="arm64"
;; ;;
"i386") "i386")
naive_arch="x86" naive_arch="x86"
;; ;;
"x86_64") "x86_64")
naive_arch="x64" naive_arch="x64"
;; ;;
*) *)
naive_arch="${target_arch}" naive_arch="${target_arch}"
;; ;;
esac esac
# OS detection # OS detection
[ "$(uname)" != "Linux" -o "$(uname -m)" != "x86_64" ] && { echo -e "Support Linux AMD64 only."; exit 1; } [ "$(uname)" != "Linux" -o "$(uname -m)" != "x86_64" ] && { echo -e "Support Linux AMD64 only."; exit 1; }
# Create TMP dir # Create TMP dir
mkdir -p "$PWD/tmp" mkdir -p "$PWD/tmp"
export TMPDIR="$PWD/tmp" export TMPDIR="$PWD/tmp"
# Set ENV # Set ENV
export DEPOT_TOOLS_WIN_TOOLCHAIN=0 export DEPOT_TOOLS_WIN_TOOLCHAIN=0
export naive_flags=" export naive_flags="
is_official_build=true is_official_build=true
exclude_unwind_tables=true exclude_unwind_tables=true
enable_resource_allowlist_generation=false enable_resource_allowlist_generation=false
symbol_level=1 symbol_level=1
is_clang=true is_clang=true
use_sysroot=false use_sysroot=false
fatal_linker_warnings=false fatal_linker_warnings=false
treat_warnings_as_errors=false treat_warnings_as_errors=false
enable_base_tracing=false enable_base_tracing=false
use_udev=false use_udev=false
use_aura=false use_aura=false
use_ozone=false use_ozone=false
use_gio=false use_gio=false
use_gtk=false use_gtk=false
use_platform_icu_alternatives=true use_platform_icu_alternatives=true
use_glib=false use_glib=false
disable_file_support=true disable_file_support=true
enable_websockets=false enable_websockets=false
use_kerberos=false use_kerberos=false
enable_mdns=false enable_mdns=false
enable_reporting=false enable_reporting=false
include_transport_security_state_preload_list=false include_transport_security_state_preload_list=false
use_nss_certs=false use_nss_certs=false
target_os=\"openwrt\" target_os=\"openwrt\"
target_cpu=\"${naive_arch}\" target_cpu=\"${naive_arch}\"
target_sysroot=\"${toolchain_dir}\"" target_sysroot=\"${toolchain_dir}\""
case "${target_arch}" in case "${target_arch}" in
"arm") "arm")
naive_flags+=" arm_version=0 arm_cpu=\"${cpu_type}\"" naive_flags+=" arm_version=0 arm_cpu=\"${cpu_type}\""
if [ -n "${cpu_subtype}" ]; then case "${cpu_type}" in "arm1176jzf-s"|"arm926ej-s"|"mpcore"|"xscale") naive_flags+=" arm_use_thumb=false" ;; esac
if grep -q "neon" <<< "${cpu_subtype}"; then if [ -n "${cpu_subtype}" ]; then
neon_flag="arm_use_neon=true" if grep -q "neon" <<< "${cpu_subtype}"; then
else neon_flag="arm_use_neon=true"
neon_flag="arm_use_neon=false" else
fi neon_flag="arm_use_neon=false"
naive_flags+=" arm_fpu=\"${cpu_subtype}\" arm_float_abi=\"hard\" ${neon_flag}" fi
else naive_flags+=" arm_fpu=\"${cpu_subtype}\" arm_float_abi=\"hard\" ${neon_flag}"
naive_flags+=" arm_float_abi=\"soft\" arm_use_neon=false" else
fi naive_flags+=" arm_float_abi=\"soft\" arm_use_neon=false"
case "${cpu_type}" in fi
"arm1176jzf-s"|"arm926ej-s"|"mpcore"|"xscale") ;;
naive_flags+=" arm_use_thumb=false" "arm64")
;; [ -n "${cpu_type}" ] && naive_flags+=" arm_cpu=\"${cpu_type}\""
esac ;;
;; "mipsel"|"mips64el")
"mipsel"|"mips64el") naive_flags+=" use_thin_lto=false chrome_pgo_phase=0 mips_arch_variant=\"r2\""
naive_flags+=" use_thin_lto=false chrome_pgo_phase=0 mips_arch_variant=\"r2\"" if [ "${target_arch}" == "mipsel" ]; then
if [ "${target_arch}" == "mipsel" ]; then if [ "${cpu_subtype}" == "24kf" ]; then
if [ "${cpu_subtype}" == "24kf" ]; then naive_flags+=" mips_float_abi=\"hard\""
naive_flags+=" mips_float_abi=\"hard\"" else
else naive_flags+=" mips_float_abi=\"soft\""
naive_flags+=" mips_float_abi=\"soft\"" fi
fi fi
fi ;;
;; esac
esac

View File

@ -1,66 +0,0 @@
#
# Copyright (C) 2017-2020
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=qBittorrent-static
PKG_VERSION:=4.4.5_v2.0.7
PKG_RELEASE=1
STRIP:=true
ifeq ($(ARCH),x86_64)
PKG_ARCH:=x86_64
endif
ifeq ($(ARCH),arm64)
PKG_ARCH:=aarch64
endif
ifeq ($(ARCH),aarch64)
PKG_ARCH:=aarch64
endif
ifeq ($(ARCH),arm)
PKG_ARCH:=armv7
endif
include $(INCLUDE_DIR)/package.mk
define Package/qBittorrent-static
SECTION:=net
CATEGORY:=Network
DEPENDS:=@(arm||aarch64||x86_64)
SUBMENU:=BitTorrent
TITLE:=bittorrent client programmed in C++ / Qt
URL:=https://www.qbittorrent.org/
endef
define Package/qBittorrent-static/description
qBittorrent is a bittorrent client programmed in C++ / Qt that uses
libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
It aims to be a good alternative to all other bittorrent clients out
there. qBittorrent is fast, stable and provides unicode support as
well as many features.
endef
define Download/qbittorrent
URL:=https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-$(PKG_VERSION)
URL_FILE:=$(PKG_ARCH)-qbittorrent-nox
FILE:=qbittorrent-nox
HASH:=skip
endef
define Build/Compile
endef
define Package/qBittorrent-static/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(DL_DIR)/qbittorrent-nox $(1)/usr/bin
endef
$(eval $(call Download,qbittorrent))
$(eval $(call BuildPackage,qBittorrent-static))

View File

@ -1,200 +0,0 @@
#
# Copyright (C) 2020 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
PKG_NAME:=qtbase
PKG_BASE:=5.15
PKG_BUGFIX:=6
PKG_VERSION:=$(PKG_BASE).$(PKG_BUGFIX)
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-everywhere-opensource-src-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:= \
http://master.qt.io/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \
http://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \
http://qt.mirror.constant.com/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules
PKG_HASH:=396bc6b0d773ac6a7c691a4c3d901999f571e3e7033d7fd6f65e4ef2b6eb7340
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-everywhere-src-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
PKG_CPE_ID:=cpe:/a:qt:qt
include $(INCLUDE_DIR)/package.mk
define Package/qtbase/Default
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=Qt5
TITLE:=qtbase
URL:=http://qt-project.org
DEPENDS:=+libgcc +libstdcpp @!LINUX_2_6_36
endef
define Package/qtbase/description
This package provides the Qt5 libraries.
Qt is a cross-platform application development framework for desktop, embedded and mobile.
Supported Platforms include Linux, OS X, Windows, VxWorks, QNX, Android, iOS, BlackBerry,
Sailfish OS and others.
Qt is not a programming language on its own. It is a framework written in C++.
This package provides the following run-time libraries:
- core
- network
- xml
endef
define Package/qtbase
$(call Package/qtbase/Default)
TITLE+=all libs
DEPENDS+=$(QTBASE_DEPENDS)
endef
define Package/qtbase/install
true
endef
define Package/qtbase/config
config QT5_INCLUDE_ATOMIC
bool "Depends on libatomic"
default y if !(arm_v7 || ARCH_64BIT || TARGET_x86)
default n
help
Check this options to add the libatomic to the dependences.
- You'd better to confirm whether your compiler need the external libatomic.
Otherwise, it is not recommended to modify this option mannually.
menu "Select Qtbase Libraries"
comment "Qtbase Libraries"
$(foreach lib,$(QTBASE_LIBS),
config PACKAGE_qt5-$(lib)
prompt "Qtbase $(lib) library."
default m if ALL
)
endmenu
endef
PKG_CONFIG_DEPENDS = CONFIG_QT5_INCLUDE_ATOMIC
EXTRA_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections -flto
EXTRA_LDFLAGS += -Wl,--gc-sections,--as-needed
CONFIGURE_ARGS = \
-sysroot $(STAGING_DIR) \
-hostprefix $(STAGING_DIR_HOSTPKG) \
-extprefix $(STAGING_DIR)/usr \
-prefix /usr \
-archdatadir /usr/share/Qt \
-datadir /usr/share/Qt \
-device linux-generic-g++ \
-device-option CROSS_COMPILE="$(TARGET_CROSS)" \
-device-option COMPILER_FLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
-device-option LINKER_FLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
-confirm-license \
-opensource \
-release \
-shared \
-strip \
-no-rpath \
-no-use-gold-linker \
-ltcg \
-mimetype-database \
-openssl-linked \
-qt-doubleconversion \
-system-pcre \
-system-zlib \
$(if $(findstring i386,$(ARCH)),-no-sse2 -no-sse4.1) \
-no-angle \
-no-cups \
-no-dbus \
-no-directfb \
-no-dtls\
-no-egl \
-no-eglfs \
-no-freetype \
-no-gbm \
-no-glib \
-no-gtk \
-no-gui \
-no-harfbuzz \
-no-iconv \
-no-icu \
-no-kms \
-no-libjpeg \
-no-libmd4c \
-no-libpng \
-no-libudev \
-no-mtdev \
-no-opengl \
-no-opengles3 \
-no-openvg \
-no-pch \
-no-slog2 \
-sql-sqlite \
-no-trace \
-no-tslib \
-no-vulkan \
-no-widgets \
-no-xcb \
-no-xkbcommon \
-no-zstd \
-no-compile-examples \
-no-feature-concurrent \
-no-feature-gssapi \
-no-feature-testlib \
-make libs \
-nomake examples \
-nomake tests \
-nomake tools \
-v
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
endef
define Build/InstallDev
$(MAKE) -C $(PKG_BUILD_DIR) install
endef
define Package/qtbase/Default/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libQt5$(shell echo $(2) | sed -e 's/\b[[:alpha:]]/\u&/g').so* $(1)/usr/lib
endef
define DefineQtbaseLibrary
QTBASE_DEPENDS+=+qt5-$(1)
QTBASE_LIBS+=$(1)
define Package/qt5-$(1)
$(call Package/qtbase/Default)
TITLE+=$(1)
DEPENDS+=$(foreach lib,$(2),+qt5-$(lib)) $(3)
HIDDEN:=1
endef
define Package/qt5-$(1)/description
This package contains the qt5 $(1) library.
endef
define Package/qt5-$(1)/install
$(call Package/qtbase/Default/install,$$(1),$(1))
endef
endef
$(eval $(call DefineQtbaseLibrary,core,,+QT5_INCLUDE_ATOMIC:libatomic +libpcre2-16 +zlib))
$(eval $(call DefineQtbaseLibrary,network,core,+libopenssl +zlib))
$(eval $(call DefineQtbaseLibrary,xml,core,))
$(eval $(call DefineQtbaseLibrary,sql,core))
$(foreach lib,$(QTBASE_LIBS),$(eval $(call BuildPackage,qt5-$(lib))))
$(eval $(call BuildPackage,qtbase))

View File

@ -1,50 +0,0 @@
#
# Copyright (C) 2019 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
PKG_NAME:=qttools
PKG_BASE:=5.15
PKG_BUGFIX:=6
PKG_VERSION:=$(PKG_BASE).$(PKG_BUGFIX)
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-everywhere-opensource-src-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:= \
http://master.qt.io/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \
http://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \
http://qt.mirror.constant.com/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules
PKG_HASH:=2c1486ab7e6dad76fb34642cd4f91d533e5dfeec0ee527129c2c2ed4ab283c3b
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-everywhere-src-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=qtbase
include $(INCLUDE_DIR)/package.mk
define Package/qttools
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=Qt5
TITLE:=qttools
URL:=http://qt-project.org
BUILDONLY:=1
endef
define Build/Configure
cd $(PKG_BUILD_DIR) && qmake -o Makefile qttools.pro
endef
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
endef
define Build/InstallDev
$(MAKE) -C $(PKG_BUILD_DIR) install
endef
$(eval $(call BuildPackage,qttools))

View File

@ -1,62 +0,0 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rblibtorrent
PKG_VERSION:=1.2.17
PKG_RELEASE=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/arvidn/libtorrent.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=2d34455ad2b828d3da23634f7de93fafded5442d
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MIRROR_HASH:=3fa86163d370584f747d34737a556a5426fd5eb4ce1ba1dc594dce3357594d90
PKG_LICENSE:=BSD
PKG_LICENSE_FILES:=COPYING
PKG_USE_MIPS16:=0
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/rblibtorrent
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Rasterbar BitTorrent library
URL:=https://www.libtorrent.org/
DEPENDS:=+libgcc +libstdcpp +libopenssl +boost +boost-system +boost-chrono +boost-random +libatomic
MAINTAINER:=Arvid Norberg <arvid@libtorrent.org>
endef
define Package/rblibtorrent/description
Rasterbar libtorrent is a C++ library that aims to be a good alternative to
all the other bittorrent implementations around. It is a library and not a
full featured client, although it comes with a working example client.
endef
TARGET_CFLAGS += $(if $(CONFIG_SOFT_FLOAT),-DBOOST_NO_FENV_H) -fPIC -ffunction-sections -fdata-sections -flto
EXTRA_CXXFLAGS += $(if $(CONFIG_GCC_VERSION_4_8),-std=gnu++11,-std=gnu++17)
TARGET_LDFLAGS += -lstdc++ -Wl,--gc-sections,--as-needed -flto
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=ON \
-Ddeprecated-functions=ON \
-Dencryption=ON \
-Diconv=ON \
-Dstatic_runtime=ON \
-Dlogging=OFF
define Build/InstallDev
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)
endef
define Package/rblibtorrent/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
endef
$(eval $(call BuildPackage,rblibtorrent))

View File

@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=v2rayA PKG_NAME:=v2rayA
PKG_VERSION:=1.5.9.1698.1 PKG_VERSION:=2.0.1
PKG_RELEASE:=2 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=247a357230c616bf48309c61d119686e4ad56939c05afef584c45051e9dc6220 PKG_HASH:=5f79a42c4a720dec778a5c03c925dbbeb8d0fedebbb38ddf90d2d9712480b6a4
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/service PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/service
PKG_LICENSE:=AGPL-3.0-only PKG_LICENSE:=AGPL-3.0-only
@ -37,8 +37,6 @@ define Package/v2raya
SUBMENU:=Web Servers/Proxies SUBMENU:=Web Servers/Proxies
DEPENDS:=$(GO_ARCH_DEPENDS) \ DEPENDS:=$(GO_ARCH_DEPENDS) \
+ca-bundle \ +ca-bundle \
+iptables \
+IPV6:ip6tables \
+iptables-mod-conntrack-extra \ +iptables-mod-conntrack-extra \
+iptables-mod-extra \ +iptables-mod-extra \
+iptables-mod-filter \ +iptables-mod-filter \

View File

@ -1,3 +0,0 @@
#!/bin/sh
v2raya --version | grep "$PKG_VERSION"