mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
New package: shadowsocks-rust-1.23.4
This commit is contained in:
parent
fd44e4f2f8
commit
b3c5c9b929
3 changed files with 41 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
exec setpriv --reuid _shadowsocks --regid _shadowsocks --clear-groups \
|
||||
--ambient-caps -all,+net_bind_service \
|
||||
--inh-caps -all,+net_bind_service \
|
||||
--bounding-set -all,+net_bind_service \
|
||||
--no-new-privs -- ssservice local -c /etc/shadowsocks-rust/config.json
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
exec setpriv --reuid _shadowsocks --regid _shadowsocks --clear-groups \
|
||||
--ambient-caps -all,+net_bind_service \
|
||||
--inh-caps -all,+net_bind_service \
|
||||
--bounding-set -all,+net_bind_service \
|
||||
--no-new-privs -- ssservice server -c /etc/shadowsocks-rust/config.json
|
25
srcpkgs/shadowsocks-rust/template
Normal file
25
srcpkgs/shadowsocks-rust/template
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Template file for 'shadowsocks-rust'
|
||||
pkgname=shadowsocks-rust
|
||||
version=1.23.4
|
||||
revision=1
|
||||
build_style=cargo
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libzstd-devel"
|
||||
short_desc="Rust port of shadowsocks, a fast lightweight obfuscated tunnel proxy"
|
||||
maintainer="JkktBkkt <apkabikov@gmail.com>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/shadowsocks/shadowsocks-rust"
|
||||
changelog="https://github.com/shadowsocks/shadowsocks-rust/releases"
|
||||
distfiles="https://github.com/shadowsocks/shadowsocks-rust/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=8a91836256989e3a56409d0e83da6549ecf727e2d6642cd4e707993d9c8a23d3
|
||||
|
||||
system_accounts="_shadowsocks"
|
||||
make_dirs="/etc/shadowsocks-rust 0755 root root"
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
vsv shadowsocks-rust-server
|
||||
vsv shadowsocks-rust-client
|
||||
vsconf examples/config.json
|
||||
vsconf examples/config_ext.json
|
||||
}
|
Loading…
Add table
Reference in a new issue