1
0

22 Commits

Author SHA256 Message Date
36ebb3dd0f Accepting request 1285517 from server:proxy
- Update version to 1.24.4
  * online-config: SIP008 online configuration supports adding plugin whitelist
    (see README for details)
  * Fix bugs (forwarded request 1285516 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1285517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=15
2025-06-13 16:48:47 +00:00
412d0467e6 Accepting request 1285516 from home:hillwood:branches:server:proxy
- Update version to 1.24.4
  * online-config: SIP008 online configuration supports adding plugin whitelist
    (see README for details)
  * Fix bugs

OBS-URL: https://build.opensuse.org/request/show/1285516
OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=42
2025-06-13 13:21:50 +00:00
f3d9fa433d Accepting request 1284827 from home:hillwood:branches:server:proxy
OBS-URL: https://build.opensuse.org/request/show/1284827
OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=41
2025-06-11 12:35:16 +00:00
34111013f4 Accepting request 1276083 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1276083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=14
2025-05-09 16:51:30 +00:00
f1f26e271e - 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

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=39
2025-05-09 07:17:47 +00:00
b542db4238 Accepting request 1270212 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1270212
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=13
2025-04-17 14:09:48 +00:00
0aaeda781d - 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

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=37
2025-04-17 08:19:06 +00:00
449ba6130d Accepting request 1235195 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1235195
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=12
2025-01-07 19:52:05 +00:00
36a443f444 - Fix start failure by systemd
* Make sure /etc/shadowsocks can be read by shadowsocks user
  * Create the PID file under /run/shadowsocks

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=35
2025-01-06 13:25:35 +00:00
f5d2582c84 Accepting request 1225828 from server:proxy
- Update version to 1.21.2
  * supports generic I/O socket type
  * Support OpenBSD Packet-Filter (pf)
  * Fix bugs (forwarded request 1225827 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1225828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=11
2024-11-22 22:53:17 +00:00
f6e74eb0f9 - Update version to 1.21.2
* supports generic I/O socket type
  * Support OpenBSD Packet-Filter (pf)
  * Fix bugs

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=33
2024-11-22 13:08:37 +00:00
845a630375 Accepting request 1224081 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1224081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=10
2024-11-14 15:09:40 +00:00
e30c94678a Add reproducible.patch to override build date (boo#1047218)
OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=31
2024-11-14 07:24:07 +00:00
6bdc2b785a Accepting request 1200819 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1200819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=9
2024-09-15 10:35:48 +00:00
d4ed296189 - 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

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=29
2024-09-13 11:54:38 +00:00
6d1a500466 Accepting request 1181168 from server:proxy
(forwarded request 1181166 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1181168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=8
2024-06-17 17:29:46 +00:00
3d8877546a Accepting request 1169688 from server:proxy
(forwarded request 1169687 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1169688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=7
2024-04-23 16:56:10 +00:00
1e5b82fa5c Accepting request 1132889 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1132889
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=6
2023-12-13 17:36:44 +00:00
69e4759f79 Accepting request 1130558 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1130558
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=5
2023-12-03 19:49:32 +00:00
70aa2a0e41 Accepting request 1120484 from server:proxy
- Fix boo#1216372 and boo#1216373, run systemd service as a dedicated user and group

OBS-URL: https://build.opensuse.org/request/show/1120484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=4
2023-10-26 15:14:51 +00:00
b29e7c6475 Accepting request 1116316 from server:proxy
(forwarded request 1116315 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1116316
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=3
2023-10-10 18:58:47 +00:00
987e2e53b0 Accepting request 1094656 from server:proxy
OBS-URL: https://build.opensuse.org/request/show/1094656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=2
2023-06-22 21:26:55 +00:00
9 changed files with 129 additions and 11 deletions

48
reproducible.patch Normal file
View 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.
///

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c818124252528886dd2a26c0f4730a34cdeb5764c3812cae0d98e9fc9c1d8ce9
size 451311

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8a91836256989e3a56409d0e83da6549ecf727e2d6642cd4e707993d9c8a23d3
size 509530

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f9ea72699b8e813c755be6067826151782aed5dcf9d9b27fdc66f6c1db594b0
size 93151494
oid sha256:5813facbcea9d72c29dccfe02688bfbe0c21825d6081f4c6834d002a05ac149a
size 105217295