Poncho authored and David Roman committed 2026-07-30 12:58:15 +02:00
1 parent dbd0b78937
commit 73a7273d44
2 files changed
+61

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
DIST snowflake-v2.11.0.tar.gz 24974351 BLAKE2B 9d9876cd98e2346dde99be2fe134057743a68e9b4cb1480fa477839386188acc8c9ba789f80360ea17bdb2c995c07f76bb6782e36610bcb09cb88424fd36dc8c SHA512 801a78845cbd65967f4995b98015ddf2b2518f280beb179da6cf233d51c3dc16d0384255771f8f4e768d1c21bc8924299b541299c28eea510dcb14cdc0cb7356
DIST snowflake-v2.12.1.tar.gz 26018920 BLAKE2B abc00c5232da56d8a19104c75211aa71360cd3f01d8b66888b435027323c8c724183e64520c1cec08ba3075a934967e294f415c62fd41812b76ab3f2d558f602 SHA512 5d39fb61223d92625bc6cff960c5ef4f6ac77f44207c4e958c23e9e4bfe86cb46c9c9312f4b10ee05ed94a7841a590e37ab2b371df5da290667a38a6167f5a30
DIST snowflake-v2.14.1.tar.gz 25449744 BLAKE2B 8f39d0465703f617daf65d1140abe47b2c93a65741ff0f00ec2852e4ad74f8241c6eccd81a1cce052e17c933f719f4add31b60392f0bd43933f3e70a03b3deb3 SHA512 48c0f762fd19d3aef29c896ecf8811394d166a1841141600a687269e23a72d9777a2ca42f4a9f63b322f3fd8e854be5e3b4a3a42f0fb56b58e9b384ba2b36eb4
@@ -0,0 +1,60 @@
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
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://dist.torproject.org/snowflake/${PV}/snowflake-v${PV}.tar.gz"
S=${WORKDIR}/snowflake-v${PV}
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_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
}