forked from pool/shadowsocks-rust
Compare commits
22 Commits
Author | SHA256 | Date | |
---|---|---|---|
36ebb3dd0f | |||
412d0467e6 | |||
f3d9fa433d | |||
34111013f4 | |||
f1f26e271e | |||
b542db4238 | |||
0aaeda781d | |||
449ba6130d | |||
36a443f444 | |||
f5d2582c84 | |||
f6e74eb0f9 | |||
845a630375 | |||
e30c94678a | |||
6bdc2b785a | |||
d4ed296189 | |||
6d1a500466 | |||
3d8877546a | |||
1e5b82fa5c | |||
69e4759f79 | |||
70aa2a0e41 | |||
b29e7c6475 | |||
987e2e53b0 |
48
reproducible.patch
Normal file
48
reproducible.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
From 853a860dd9095b7ed2f95d5aac62f8f1dcc0d229 Mon Sep 17 00:00:00 2001
|
||||
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
||||
Date: Wed, 28 Jun 2023 16:48:35 +0200
|
||||
Subject: [PATCH] Allow to override build date with SOURCE_DATE_EPOCH
|
||||
|
||||
in order to make builds reproducible.
|
||||
See https://reproducible-builds.org/ for why this is good
|
||||
and https://reproducible-builds.org/specs/source-date-epoch/
|
||||
for the definition of this variable.
|
||||
|
||||
This patch was done while working on reproducible builds for openSUSE.
|
||||
|
||||
Index: shadowsocks-rust-1.20.4/Cargo.toml
|
||||
===================================================================
|
||||
--- shadowsocks-rust-1.20.4.orig/Cargo.toml
|
||||
+++ shadowsocks-rust-1.20.4/Cargo.toml
|
||||
@@ -281,3 +281,6 @@ byteorder = "1.5"
|
||||
env_logger = "0.11"
|
||||
byte_string = "1.0"
|
||||
tokio = { version = "1", features = ["net", "time", "macros", "io-util"] }
|
||||
+
|
||||
+[patch.crates-io]
|
||||
+build-time = { path="vendor/build-time" }
|
||||
diff --git a/build-time/src/lib.rs b/build-time/src/lib.rs
|
||||
index c3484307..7ae9e03e 100644
|
||||
--- a/vendor/build-time/src/lib.rs
|
||||
+++ b/vendor/build-time/src/lib.rs
|
||||
@@ -28,14 +28,18 @@ let local_build_time = build_time_local!("%Y-%m-%dT%H:%M:%S%.f%:z");
|
||||
```
|
||||
*/
|
||||
|
||||
-use chrono::{DateTime, Local, Utc};
|
||||
+use chrono::{DateTime, Local, TimeZone, Utc};
|
||||
use once_cell::sync::Lazy;
|
||||
use proc_macro::TokenStream;
|
||||
use proc_macro2::Span;
|
||||
use quote::quote;
|
||||
+use std::env;
|
||||
use syn::{parse_macro_input, LitStr};
|
||||
|
||||
-static BUILD_TIME: Lazy<DateTime<Utc>> = Lazy::new(Utc::now);
|
||||
+static BUILD_TIME: Lazy<DateTime<Utc>> = Lazy::new(|| match env::var("SOURCE_DATE_EPOCH") {
|
||||
+ Ok(val) => { Utc.timestamp_opt(val.parse::<i64>().unwrap(), 0).unwrap() }
|
||||
+ Err(_) => Utc::now(),
|
||||
+ });
|
||||
|
||||
/// Build time in UTC.
|
||||
///
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c818124252528886dd2a26c0f4730a34cdeb5764c3812cae0d98e9fc9c1d8ce9
|
||||
size 451311
|
3
shadowsocks-rust-1.23.4.tar.gz
Normal file
3
shadowsocks-rust-1.23.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8a91836256989e3a56409d0e83da6549ecf727e2d6642cd4e707993d9c8a23d3
|
||||
size 509530
|
@@ -18,7 +18,7 @@ ProtectControlGroups=true
|
||||
RestrictRealtime=true
|
||||
# end of automatic additions
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-rust-client.pid
|
||||
PIDFile=/run/shadowsocks/shadowsocks-rust-client.pid
|
||||
ExecStart=/usr/bin/sslocal --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
|
||||
Restart=on-failure
|
||||
User=shadowsocks
|
||||
|
@@ -18,7 +18,7 @@ ProtectControlGroups=true
|
||||
RestrictRealtime=true
|
||||
# end of automatic additions
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-rust-manager.pid
|
||||
PIDFile=/run/shadowsocks/shadowsocks-rust-manager.pid
|
||||
ExecStart=/usr/bin/ssmanager --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
|
||||
Restart=on-failure
|
||||
User=shadowsocks
|
||||
|
@@ -18,7 +18,7 @@ ProtectControlGroups=true
|
||||
RestrictRealtime=true
|
||||
# end of automatic additions
|
||||
Type=forking
|
||||
PIDFile=/var/run/shadowsocks-rust-server.pid
|
||||
PIDFile=/run/shadowsocks/shadowsocks-rust-server.pid
|
||||
ExecStart=/usr/bin/ssserver --log-without-time -c /etc/shadowsocks/shadowsocks-rust.json --tcp-fast-open
|
||||
Restart=on-failure
|
||||
User=shadowsocks
|
||||
|
@@ -1,3 +1,70 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 13:20:04 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Update version to 1.24.4
|
||||
* online-config: SIP008 online configuration supports adding plugin whitelist
|
||||
(see README for details)
|
||||
* Fix bugs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 4 12:59:48 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Update version to 1.23.2
|
||||
* local-tun: Fixes panic when resizing cached buffers
|
||||
* local-tun: Enable congestion control algorithm for TCP connections
|
||||
* local-tun: Disable TCP package receive checksum for improving performance
|
||||
* local-tun: Buffer for receiving/sending packets from/to tun device are
|
||||
cached globally
|
||||
* Fix some issues
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 7 09:33:03 UTC 2025 - Marguerite Su <i@marguerite.su>
|
||||
|
||||
- Update version to 1.23.0
|
||||
* local-fake-dns switched storage engine from sled to rocksdb,
|
||||
users should delete the old database file and let sslocal
|
||||
recreate it ageain
|
||||
* refactor: change error handling to be strongly-typed
|
||||
* fix: mips-* reenabled, moka automatically switches to a
|
||||
fallback impl for AtomicU64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 6 08:27:53 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Fix start failure by systemd
|
||||
* Make sure /etc/shadowsocks can be read by shadowsocks user
|
||||
* Create the PID file under /run/shadowsocks
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 13:00:48 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Update version to 1.21.2
|
||||
* supports generic I/O socket type
|
||||
* Support OpenBSD Packet-Filter (pf)
|
||||
* Fix bugs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 13 06:18:54 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add reproducible.patch to override build date (boo#1047218)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 12 13:19:28 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Update version to 1.20.4
|
||||
* Updated rustls to v0.23 with ring backend
|
||||
* local-redir, server: Better approach to check current platform IP stack
|
||||
capabilities like Go (IPv4, IPv6, IPv4-mapped-IPv6 supports)
|
||||
* Explicitly enable dual-stack if listen addresses (server, local_address)
|
||||
are IPv4-mapped-IPv6, by setting IPV6_V6ONLY=0
|
||||
* PingBalancer check Firefox portal allowing 200 HTTP status
|
||||
* Ping Balancer scores replaced standard deviation with median absolute
|
||||
deviation, which should help focusing less on outlying observations in
|
||||
latency samples
|
||||
* local: Allow configuring SOCKS5 UDP_ASSOCIATE address
|
||||
* ProxyServerStream::from_stream made public
|
||||
* Fix bugs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 16 09:07:43 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package shadowsocks-rust
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: shadowsocks-rust
|
||||
Version: 1.20.0
|
||||
Version: 1.23.4
|
||||
Release: 0
|
||||
Summary: Rust port of Shadowsocks
|
||||
License: MIT
|
||||
@@ -29,6 +29,8 @@ Source2: %{name}.json
|
||||
Source3: %{name}-client.service
|
||||
Source4: %{name}-server.service
|
||||
Source5: %{name}-manager.service
|
||||
# PATCH-FIX-UPSTREAM https://github.com/AlephAlpha/build-time/pull/5
|
||||
Patch0: reproducible.patch
|
||||
BuildRequires: cargo
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: systemd-rpm-macros
|
||||
@@ -87,7 +89,8 @@ getent passwd shadowsocks >/dev/null || %{_sbindir}/useradd --system -c "shadows
|
||||
%service_add_post %{name}-server.service
|
||||
%service_add_post %{name}-manager.service
|
||||
chown root:shadowsocks %{_sysconfdir}/shadowsocks -R
|
||||
chmod 640 %{_sysconfdir}/shadowsocks -R
|
||||
chmod 750 %{_sysconfdir}/shadowsocks
|
||||
chmod 640 %{_sysconfdir}/shadowsocks/*
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}-client.service
|
||||
|
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2f9ea72699b8e813c755be6067826151782aed5dcf9d9b27fdc66f6c1db594b0
|
||||
size 93151494
|
||||
oid sha256:5813facbcea9d72c29dccfe02688bfbe0c21825d6081f4c6834d002a05ac149a
|
||||
size 105217295
|
||||
|
Reference in New Issue
Block a user