blob: c00da50c43d12b415440632f2f0a8a6f6e7725f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
RUST_MIN_VER="1.88.0"
inherit cargo
DESCRIPTION="Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI"
HOMEPAGE="https://github.com/erebe/wstunnel/"
SRC_URI="https://github.com/erebe/wstunnel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://raw.githubusercontent.com/PPN-SD/vendor/refs/tags/${P}/${P}-crates.tar.xz"
LICENSE="BSD"
# Autogenerated by pycargoebuild
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD CC0-1.0 ISC MIT openssl Unicode-3.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}"/${P}-fix_tests.patch
)
QA_FLAGS_IGNORED="usr/bin/wstunnel"
pkg_setup() {
# see bug #965963
export CARGO_PROFILE_RELEASE_LTO=off
rust_pkg_setup
}
src_compile() {
cargo_src_compile --package wstunnel-cli
}
src_test() {
local CARGO_SKIP_TESTS=(
# needs docker
tests::test_proxy_connection
)
cargo_src_test --no-fail-fast
}
src_install() {
cargo_src_install --path wstunnel-cli
local DOCS+=( README.md docs/*.md )
einstalldocs
}
|