I'm not sure if archlinux has an "arm" architecture, but my 32 bit Raspberry Pi has an "armv7h" architecture.
In addition, the two lines of configuration in the service file are removed. This configuration will cause the startup to fail due to permission issues.
The configuration after removing sensitive information is as follows:
{
"server": "xxx.xxx.xxx.xxx",
"server_port": xxx,
"local_address": "0.0.0.0",
"local_port": 1080,
"password": "XXXXXXXXX",
"timeout": 300,
"mode": "udp_only",
"method": "aes-256-gcm",
"protocol": "redir"
}
diff --git a/PKGBUILD b/PKGBUILD
index 6228335..9d67d3c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ _pkgname=shadowsocks-rust
pkgver=1.15.3
pkgrel=2
pkgdesc='A Rust port of shadowsocks https://shadowsocks.org/ (binary version)'
-arch=('x86_64' 'arm' 'aarch64')
+arch=('x86_64' 'arm' 'armv7h' 'aarch64')
url='https://github.com/shadowsocks/shadowsocks-rust'
license=('MIT')
depends=('gcc-libs')
@@ -22,15 +22,17 @@ source=(
)
source_x86_64=("${url}/releases/download/v${pkgver}/shadowsocks-v${pkgver}.x86_64-unknown-linux-gnu.tar.xz")
source_arm=("${url}/releases/download/v${pkgver}/shadowsocks-v${pkgver}.arm-unknown-linux-gnueabi.tar.xz")
+source_armv7h=("${url}/releases/download/v${pkgver}/shadowsocks-v${pkgver}.armv7-unknown-linux-gnueabihf.tar.xz")
source_aarch64=("${url}/releases/download/v${pkgver}/shadowsocks-v${pkgver}.aarch64-unknown-linux-gnu.tar.xz")
sha512sums=('6d7014061bf4014faec823aa1da91f990d034c21005cbee30de7ee62744201fba7d09d58a9e536d8e63bfa6fe951107ee68482b583d887b6e358f3c3eec89b85'
- '3a79d6958e61e891d208cea17b02ed5fe0318bbecc8d1bda7b8297e6ffdad186a86cf0fc55cb2904ed67bd460856f7136b6550ab493de31435df97285279d47d'
+ '7d759a42e7c2ecff377d19578d384fce4f4361201cb09556b88e661816901c5b70f1f3f7aa4c3daa9cf4cb92247308795eb3bca0fcf7a8f3d2b6f294e691c592'
'23a33b6e43ac5e91866c0aab8b0166790559ebdb49b3ea91393a977d2636a0c75f99544f559e0a248be1eb54e6bf8ad1cda8887a85d773a9214de16c4f223f1f'
'9a0b81d82bf897c5461d75d941cd604cbd7f32d00c2bf775f17b37b77fcf5734903d2ec666ba9a6a340e77f31018b5dbbb8ea597797c6a00c6b1f3e2f47127e6'
'4ac52e6fe04e02543f54d57fccfd863f18b157fd28fb61c9a56ba46269b9dff410a80960943d911afa55b45c3fc42e98d91f8bb75e9103abf3f3dbfffb73a6e0')
sha512sums_x86_64=('e0a44815ed884f09df337fce30ba2ff85dcede138dfce7e49623fe8766452f7cdb24f4be528fd0eba9d0a761d6cc8843bdf8531854a8273d078b8900f7008712')
sha512sums_arm=('ad8f6f56378e24789dcba10b02d28d5d0955ca6dc615e1f65b59caabc59c9098a34315c2296e61a2c2f63c679d80b6f44e704f8b5f96152a83c200b1009328b7')
+sha512sums_armv7h=('f42c4e72b6a9ad7ece5067b059d8793fe52701e417c433a550c38f609cc1e1246d1515058d0eea56e3f975e69cf1695e971521681191c2eb693e3a171bc60399')
sha512sums_aarch64=('67e68e97867e66620d197d75e4224680e9f393092041e56789264ec471394ab029f008e2337e7e68e884a08036265d02fbf130387a961b9b1663af3a5e5ade0d')
package() {
diff --git a/shadowsocks-rust@.service b/shadowsocks-rust@.service
index e4485af..42d6efd 100644
--- a/shadowsocks-rust@.service
+++ b/shadowsocks-rust@.service
@@ -5,8 +5,6 @@ Wants=network-online.target
[Service]
Type=simple
-DynamicUser=yes
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/ssservice local --log-without-time -c /etc/shadowsocks-rust/%i.json
[Install]
Pinned Comments
spyophobia commented on 2023-03-04 06:07 (UTC)
After some user feedback regarding the the specialised unit files this package came with, I have come to agree that using the same unit files as the other two AUR packages (
shadowsocks-rust
andshadowsocks-rust-git
) provides a better UX. Therefore I have reverted the breaking systemd unit changes. Sorry for the inconvenience.For those who wish to continue using the
shadowsocks-rust-local@.service
units, you can installshadowsocks-rust-multiprofile-daemon-git
alongside any one ofshadowsocks-rust
,shadowsocks-rust-bin
, orshadowsocks-rust-git
. The unit names have been slightly changed to prevent conflict with these packages, but everything else remains the same.