12
0

15 Commits

Author SHA256 Message Date
8042de18fa Accepting request 1303372 from server:proxy
- Update version to 1.23.5
  * Updated once_cell::sync::Lazy to std::sync::LazyLock
  * ACL supported outbound_allow_list
  * Allow customizable SocketProtect trait for Android VpnService
  * Fix bugs

- Update version to 1.23.4 (forwarded request 1303370 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1303372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadowsocks-rust?expand=0&rev=16
2025-09-09 18:30:51 +00:00
a4f8a9cd5c - Update version to 1.23.5
* Updated once_cell::sync::Lazy to std::sync::LazyLock
  * ACL supported outbound_allow_list
  * Allow customizable SocketProtect trait for Android VpnService
  * Fix bugs

- Update version to 1.23.4

OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=44
2025-09-09 14:56:09 +00:00
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
9 changed files with 108 additions and 12 deletions

34
reproducible.patch Normal file
View File

@@ -0,0 +1,34 @@
diff -Nurp shadowsocks-rust-1.23.5/Cargo.toml shadowsocks-rust-1.23.5-new/Cargo.toml
--- shadowsocks-rust-1.23.5/Cargo.toml 2025-07-04 22:57:36.000000000 +0800
+++ shadowsocks-rust-1.23.5-new/Cargo.toml 2025-09-09 22:18:05.233776424 +0800
@@ -265,3 +265,6 @@ tokio = { version = "1", features = ["ne
[lints.clippy]
uninlined_format_args = "allow"
+
+[patch.crates-io]
+build-time = { path="vendor/build-time" }
diff -Nurp shadowsocks-rust-1.23.5/vendor/build-time/src/lib.rs shadowsocks-rust-1.23.5-new/vendor/build-time/src/lib.rs
--- shadowsocks-rust-1.23.5/vendor/build-time/src/lib.rs 2025-09-09 22:03:02.973957942 +0800
+++ shadowsocks-rust-1.23.5-new/vendor/build-time/src/lib.rs 2025-09-09 22:21:42.603517133 +0800
@@ -28,14 +28,18 @@ let local_build_time = build_time_local!
```
*/
-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:cf064ad157974b3e396aab3bb60aab380dbc4e11b736603bfbc8e7a138f6bb26
size 453391

View File

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

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,62 @@
-------------------------------------------------------------------
Tue Sep 9 14:04:47 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
- Update version to 1.23.5
* Updated once_cell::sync::Lazy to std::sync::LazyLock
* ACL supported outbound_allow_list
* Allow customizable SocketProtect trait for Android VpnService
* Fix bugs
-------------------------------------------------------------------
Fri Jun 13 13:20:04 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
- Update version to 1.23.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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package shadowsocks-rust
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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.4
Version: 1.23.5
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
@@ -56,7 +58,7 @@ directory = './vendor'
EOF
%build
%cargo_build
cargo auditable build -j12 --offline --release
%install
%cargo_install
@@ -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:e199a4cc1b03625deea230f9f890b12b498af274250891031727c6dfc2ecfb27
size 84349967
oid sha256:921e1dcb1bd34d38b2bb5073db288a2b52ef77a0f0599249e8a0dda524a6a07f
size 107762205