mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-10 20:08:43 -04:00
Merge updates from master
This commit is contained in:
commit
546889ccb9
@ -1,2 +1,4 @@
|
||||
DIST shadowsocks-rust-1.22.0-crates.tar.xz 46321660 BLAKE2B bbbc34bf545c1d32ef486fa1ab006837f856b868b9d14c59dd8e77356a42ca2b1e2bcac491327a30ad01f10c325179b03460179328c13666ca645d5328c0b521 SHA512 278536032dc9242b1698a61d16f73b74be88106982b5460d0cf24b4921e2e0e48f3bfcb43d5e1d7d2f7365001c167409e6daa22caafb42cf93cfb1ec243611f1
|
||||
DIST shadowsocks-rust-1.22.0.tar.gz 503479 BLAKE2B 657e2f69c3b846233e09ae9b3eba6b5bd6c86ade2d293ded3144c88fbe1565969a71750b74c0aa9713aa10b200fa990a8f2ca6e292485fc683e0391fd9dcfff9 SHA512 047f779d1ff991edc696a9d4c217ab1e0aed79a112c8e49eaf8dc95995f8a66beb95a651ee15edf38ad313528fb99e9420ec55b8761aef2bac672c8f5ba6c450
|
||||
DIST shadowsocks-rust-1.23.0-crates.tar.xz 59362732 BLAKE2B 3a62414e8f3d1b4ef7a95690ca3d74006e9bf194090d85736a1220cb6fc548d2ed4518d8c6933dcbe230b1b2cede302a88634d58b6293e240edf1cfa709f2d2c SHA512 db372900feaff7e48ec321276d28d3111499cad5b696d58a44b2350664ec7b99d8b5d40f60c2ddb968be3a2db99c330dc764e3ad86fb4e812786e69f0ee33539
|
||||
DIST shadowsocks-rust-1.23.0.tar.gz 506004 BLAKE2B 5acbcc0fe31e3412ae637b707c287cd4839f830b86e200b33f90323a3f08a2306e08bc6ea2e147f11316abcdd8b6b4dd553a3e870ec39673cfe838ad706e0c59 SHA512 71f4f399a79e6102a629bf75c18234a92dc5c21cd704485a10d823676315afb0c0b93484f11334e48edf8a8aea409b35ee3eb09c41f2b18f2e458145d1a616d0
|
||||
|
84
net-proxy/shadowsocks-rust/shadowsocks-rust-1.22.0.ebuild
Normal file
84
net-proxy/shadowsocks-rust/shadowsocks-rust-1.22.0.ebuild
Normal file
@ -0,0 +1,84 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.13.4
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
inherit cargo linux-info systemd
|
||||
|
||||
MY_PV=${PV/_alpha/-alpha.}
|
||||
|
||||
DESCRIPTION="shadowsocks is a fast tunnel proxy that helps you bypass firewalls."
|
||||
HOMEPAGE="https://github.com/shadowsocks/shadowsocks-rust"
|
||||
SRC_URI="
|
||||
https://github.com/shadowsocks/shadowsocks-rust/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-crates.tar.xz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
0BSD Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-3.0
|
||||
WTFPL-2
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="redir tun"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/bin/sslocal
|
||||
usr/bin/ssmanager
|
||||
usr/bin/ssurl
|
||||
usr/bin/ssservice
|
||||
usr/bin/ssserver
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if use tun; then
|
||||
CONFIG_CHECK="~TUN"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myfeatures=(
|
||||
$(usex redir local-redir "")
|
||||
$(usex tun local-tun "")
|
||||
)
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
|
||||
newconfd "${FILESDIR}/shadowsocks-rust.confd" shadowsocks-rust
|
||||
dosym shadowsocks-rust /etc/conf.d/shadowsocks-rust.server
|
||||
dosym shadowsocks-rust /etc/conf.d/shadowsocks-rust.local
|
||||
newinitd "${FILESDIR}/shadowsocks-rust.initd" shadowsocks-rust
|
||||
dosym shadowsocks-rust /etc/init.d/shadowsocks-rust.server
|
||||
dosym shadowsocks-rust /etc/init.d/shadowsocks-rust.local
|
||||
|
||||
systemd_newunit "${FILESDIR}/shadowsocks-rust_at.service" shadowsocks-rust@.service
|
||||
systemd_newunit "${FILESDIR}/shadowsocks-rust-server_at.service" shadowsocks-rust-server@.service
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins examples/*.json
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if has_version "<sys-apps/openrc-0.56[-caps]"; then
|
||||
einfo ""
|
||||
einfo "For OpenRC users using old version(<0.56):"
|
||||
einfo "Capabilities support for old version is needed."
|
||||
einfo "Enable it by set useflag [caps] for <sys-apps/openrc-0.56."
|
||||
einfo ""
|
||||
fi
|
||||
}
|
@ -8,6 +8,8 @@ EAPI=8
|
||||
CRATES="
|
||||
"
|
||||
|
||||
RUST_MAX_VER="1.86.0"
|
||||
RUST_MIN_VER="1.85.0"
|
||||
inherit cargo linux-info systemd
|
||||
|
||||
MY_PV=${PV/_alpha/-alpha.}
|
||||
|
Loading…
x
Reference in New Issue
Block a user