remove shadowsocks-rust

This commit is contained in:
bgme 2023-11-05 07:11:41 +08:00
parent 9421a3c0ef
commit 3b39e3c5e7
4 changed files with 0 additions and 86 deletions

View file

@ -1,43 +0,0 @@
# Maintainer: BigmenPixel <bigmen dot pixel at tuta dot io>
# Contributor: rustemb <rustemb at systemli dot org>
pkgname=shadowsocks-rust
pkgver=1.17.0
pkgrel=1
pkgdesc='A Rust port of shadowsocks https://shadowsocks.org/'
arch=(x86_64)
url='https://github.com/shadowsocks/shadowsocks-rust'
license=('MIT')
makedepends=('cargo')
options=('!lto')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
'shadowsocks-rust@.service'
'shadowsocks-rust-server@.service')
sha512sums=('3eac6fe91fb1848567553798d800c6bc6579dbf6aaa0fcca7b082710443f96dc49dea2994e0e59e6f7865848483088f590a0baabcd9e88324c8621416c2ebfba'
'90ee8735104795b5c50bc855ad11ee9c741fa1695409d72de7c69b89b0aa80c9596459edbb3a2c1d49e9414e3d06bc55328126c0062f1e28cac141ea202e455d'
'ef5a348dfbbfd0bad733da217824dd55851aff3490c63685e9f1bc2b393998fea1bdad864c16a98b8af07264851bb0a11326959529a669008c5e62e94b26b209')
build() {
[[ "$CARCH" == "riscv64" ]] && CARCH="riscv64gc"
cd "${srcdir}/${pkgname}-${pkgver}"
export CARGO_TARGET_DIR=target
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
cargo build --frozen --release --features local-redir,local-tun,local-dns,local-http-native-tls
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "target/release/sslocal" "${pkgdir}/usr/bin/sslocal"
install -Dm755 "target/release/ssserver" "${pkgdir}/usr/bin/ssserver"
install -Dm755 "target/release/ssurl" "${pkgdir}/usr/bin/ssurl"
install -Dm755 "target/release/ssmanager" "${pkgdir}/usr/bin/ssmanager"
install -Dm755 "target/release/ssservice" "${pkgdir}/usr/bin/ssservice"
install -Dm644 "${srcdir}/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service"
install -Dm644 "${srcdir}/${pkgname}-server@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}-server@.service"
install -Dm644 "examples/config_ext.json" "${pkgdir}/etc/${pkgname}/config_ext_rust.json.example"
install -Dm644 "examples/config.json" "${pkgdir}/etc/${pkgname}/config_rust.json.example"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

View file

@ -1,13 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: aur_pre_build
post_build: aur_post_build
update_on:
- source: aur
aur: shadowsocks-rust

View file

@ -1,15 +0,0 @@
[Unit]
Description=Shadowsocks-Rust Server Service
After=network.target
Wants=network-online.target
[Service]
Type=simple
DynamicUser=yes
NoNewPrivileges=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_ADMIN
ExecStart=/usr/bin/ssservice server --log-without-time -c /etc/shadowsocks-rust/%i.json
[Install]
WantedBy=multi-user.target

View file

@ -1,15 +0,0 @@
[Unit]
Description=Shadowsocks-Rust Client Service
After=network.target
Wants=network-online.target
[Service]
Type=simple
DynamicUser=yes
NoNewPrivileges=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_ADMIN
ExecStart=/usr/bin/ssservice local --log-without-time -c /etc/shadowsocks-rust/%i.json
[Install]
WantedBy=multi-user.target