naiveproxy: bump to 85.0.4183.83-4
This commit is contained in:
parent
1ab1a7890a
commit
ed0bdd09be
@ -7,12 +7,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=naiveproxy
|
||||
PKG_VERSION:=85.0.4183.83-3
|
||||
PKG_VERSION:=85.0.4183.83-4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=66a8f275a9aa0fa04649062fb141a10add9bd76855f32ee65e6ee60a7fc4649c
|
||||
PKG_HASH:=68b3ec22aba04a671ddb14a1f55dc7425c73adf781cbe87a95097c782f269a07
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=BSD 3-Clause
|
||||
@ -36,13 +36,17 @@ endif
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/naiveproxy/config
|
||||
depends on !(arc||armeb||mips||mips64||powerpc)
|
||||
endef
|
||||
|
||||
define Package/naiveproxy
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
URL:=https://github.com/klzgrad/naiveproxy
|
||||
TITLE:=Make a fortune quietly
|
||||
DEPENDS:=@!(arc||armeb||powerpc) +libatomic +libnss
|
||||
DEPENDS:=+libatomic +libnss
|
||||
endef
|
||||
|
||||
define Package/naiveproxy/description
|
||||
|
||||
@ -0,0 +1,44 @@
|
||||
From f1a49736010170a70123db07ca41256ba92c0002 Mon Sep 17 00:00:00 2001
|
||||
From: klzgrad <kizdiv@gmail.com>
|
||||
Date: Sat, 3 Oct 2020 08:54:59 +0800
|
||||
Subject: [PATCH] Remove concurrency limit
|
||||
|
||||
---
|
||||
src/net/tools/naive/naive_proxy.cc | 3 +--
|
||||
src/net/tools/naive/naive_proxy_bin.cc | 2 +-
|
||||
2 files changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/net/tools/naive/naive_proxy.cc b/src/net/tools/naive/naive_proxy.cc
|
||||
index b4d5feee6..a38f79124 100644
|
||||
--- a/src/net/tools/naive/naive_proxy.cc
|
||||
+++ b/src/net/tools/naive/naive_proxy.cc
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
#include "net/tools/naive/naive_proxy.h"
|
||||
|
||||
-#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#include "base/bind.h"
|
||||
@@ -35,7 +34,7 @@ NaiveProxy::NaiveProxy(std::unique_ptr<ServerSocket> listen_socket,
|
||||
const NetworkTrafficAnnotationTag& traffic_annotation)
|
||||
: listen_socket_(std::move(listen_socket)),
|
||||
protocol_(protocol),
|
||||
- concurrency_(std::min(4, std::max(1, concurrency))),
|
||||
+ concurrency_(concurrency),
|
||||
resolver_(resolver),
|
||||
session_(session),
|
||||
net_log_(
|
||||
diff --git a/src/net/tools/naive/naive_proxy_bin.cc b/src/net/tools/naive/naive_proxy_bin.cc
|
||||
index 4ba08712d..00acd7756 100644
|
||||
--- a/src/net/tools/naive/naive_proxy_bin.cc
|
||||
+++ b/src/net/tools/naive/naive_proxy_bin.cc
|
||||
@@ -289,7 +289,7 @@ bool ParseCommandLine(const CommandLine& cmdline, Params* params) {
|
||||
|
||||
if (!cmdline.concurrency.empty()) {
|
||||
if (!base::StringToInt(cmdline.concurrency, ¶ms->concurrency) ||
|
||||
- params->concurrency < 1 || params->concurrency > 4) {
|
||||
+ params->concurrency < 1) {
|
||||
std::cerr << "Invalid concurrency" << std::endl;
|
||||
return false;
|
||||
}
|
||||
@ -1,79 +0,0 @@
|
||||
From fd4f8c65ecbbdd15d71a04d213314de056107a31 Mon Sep 17 00:00:00 2001
|
||||
From: CN_SZTL <cnsztl@project-openwrt.eu.org>
|
||||
Date: Tue, 18 Aug 2020 20:47:40 +0000
|
||||
Subject: [PATCH 2/3] build: add mips & x86 OpenWrt toolchain definitions
|
||||
|
||||
---
|
||||
src/build/toolchain/linux/BUILD.gn | 42 ++++++++++++++++++++++++++++++
|
||||
1 file changed, 42 insertions(+)
|
||||
|
||||
diff --git a/src/build/toolchain/linux/BUILD.gn b/src/build/toolchain/linux/BUILD.gn
|
||||
index 2e7913a4f..cc8084eac 100644
|
||||
--- a/src/build/toolchain/linux/BUILD.gn
|
||||
+++ b/src/build/toolchain/linux/BUILD.gn
|
||||
@@ -95,6 +95,18 @@ clang_toolchain("clang_x86") {
|
||||
}
|
||||
}
|
||||
|
||||
+clang_toolchain("clang_x86_openwrt") {
|
||||
+ # Output linker map files for binary size analysis.
|
||||
+ enable_linker_map = true
|
||||
+ extra_cppflags = "--target=i386-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||
+ extra_ldflags = "--target=i386-openwrt-linux-musl"
|
||||
+
|
||||
+ toolchain_args = {
|
||||
+ current_cpu = "x86"
|
||||
+ current_os = "linux"
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
clang_toolchain("clang_x86_v8_arm") {
|
||||
toolchain_args = {
|
||||
current_cpu = "x86"
|
||||
@@ -203,6 +215,26 @@ gcc_toolchain("x64") {
|
||||
}
|
||||
}
|
||||
|
||||
+clang_toolchain("clang_mips_openwrt") {
|
||||
+ extra_cppflags = "--target=mips-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||
+ extra_ldflags = "--target=mips-openwrt-linux-musl"
|
||||
+
|
||||
+ toolchain_args = {
|
||||
+ current_cpu = "mips"
|
||||
+ current_os = "linux"
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+clang_toolchain("clang_mips64_openwrt") {
|
||||
+ extra_cppflags = "--target=mips64-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||
+ extra_ldflags = "--target=mips64-openwrt-linux-musl"
|
||||
+
|
||||
+ toolchain_args = {
|
||||
+ current_cpu = "mips64"
|
||||
+ current_os = "linux"
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
clang_toolchain("clang_mipsel") {
|
||||
toolchain_args = {
|
||||
current_cpu = "mipsel"
|
||||
@@ -227,6 +259,16 @@ clang_toolchain("clang_mips64el") {
|
||||
}
|
||||
}
|
||||
|
||||
+clang_toolchain("clang_mips64el_openwrt") {
|
||||
+ extra_cppflags = "--target=mips64el-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||
+ extra_ldflags = "--target=mips64el-openwrt-linux-musl"
|
||||
+
|
||||
+ toolchain_args = {
|
||||
+ current_cpu = "mips64el"
|
||||
+ current_os = "linux"
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
gcc_toolchain("mipsel") {
|
||||
toolprefix = "mipsel-linux-gnu-"
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
From 5b476d92f8dbee8b83061faa8cd18a46e5ab4aae Mon Sep 17 00:00:00 2001
|
||||
From: CN_SZTL <cnsztl@project-openwrt.eu.org>
|
||||
Date: Tue, 18 Aug 2020 20:36:39 +0000
|
||||
Subject: [PATCH 1/3] build: add OpenWrt staging libraries
|
||||
Subject: [PATCH] build: add OpenWrt staging libraries
|
||||
|
||||
---
|
||||
src/build/config/posix/BUILD.gn | 4 ++++
|
||||
@ -1,7 +1,7 @@
|
||||
From dd07b78f561914ccc6cbe076ae66c380304bf92c Mon Sep 17 00:00:00 2001
|
||||
From: CN_SZTL <cnsztl@project-openwrt.eu.org>
|
||||
Date: Wed, 19 Aug 2020 12:42:45 +0000
|
||||
Subject: [PATCH 3/3] build: drop useless deps simd_asm
|
||||
Subject: [PATCH] build: drop useless deps simd_asm
|
||||
|
||||
libjpeg_turbo itself has alreadly set the dependency "simd_asm",
|
||||
and this will cause cross-compile failed:
|
||||
@ -21,7 +21,7 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy
|
||||
bool "Include NaiveProxy"
|
||||
default y if i386||x86_64||arm||aarch64
|
||||
depends on !(arc||armeb||mips||mips64||powerpc)
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2
|
||||
bool "Include Redsocks2"
|
||||
@ -60,4 +60,4 @@ LUCI_DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsm
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
||||
Loading…
Reference in New Issue
Block a user