Install this version:
emerge -a =net-proxy/snowflake-2.13.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-proxy/snowflake-2.13.1
Or alternatively:
emerge --autounmask-write -a =net-proxy/snowflake-2.13.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.13.1 | 8 | ~amd64 | 0 |
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
MY_P="${PN}-v${PV}"
JOB_ID="1471331" # Keep this in sync with the link with "other" in releases
DESCRIPTION="Pluggable Transport using WebRTC, inspired by Flashproxy"
HOMEPAGE="
https://snowflake.torproject.org
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake
"
SRC_URI="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/${PN}/-/jobs/${JOB_ID}/artifacts/file/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD Apache-2.0 BSD-2 CC0-1.0 MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND=">=dev-lang/go-1.21"
src_prepare() {
sed -i -e "s|./client|/usr/bin/snowflake-client|" \
client/{torrc,torrc.localhost} \
|| die "sed failed to fix torrc example"
default
}
src_configure() {
COMPONENTS=(
broker
client
probetest
proxy
server
)
}
src_compile() {
for component in "${COMPONENTS[@]}"; do
pushd ${component} || die
einfo "Building ${component}"
nonfatal ego build || die "${component}: build failed"
popd || die
done
}
src_test() {
ego test ./...
}
src_install() {
local component
for component in "${COMPONENTS[@]}"; do
newbin ${component}/${component} snowflake-${component}
newdoc ${component}/README.md README_${component}.md
done
systemd_dounit "${FILESDIR}"/snowflake-proxy.service
newinitd "${FILESDIR}"/snowflake-proxy.initd snowflake-proxy
einstalldocs
dodoc doc/*.txt doc/*.md
doman doc/*.1
}
Manage flags for this package:
euse -i <flag> -p net-proxy/snowflake |
euse -E <flag> -p net-proxy/snowflake |
euse -D <flag> -p net-proxy/snowflake
>=dev-lang/go-1.21
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | snowflake-v2.13.1.tar.gz | 37166 bytes | https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/jobs/1471331/artifacts/file/snowflake-v2.13.1.tar.gz |