From f70b53b549d6f8f94990797159e509687d7bc142 Mon Sep 17 00:00:00 2001 From: Filip Kobierski Date: Mon, 23 Mar 2026 11:42:50 +0100 Subject: [PATCH] net-proxy/snowflake: add 2.12.1 changed "raw" to "file" in SRC_URI since that's what upstream link to in the release page Signed-off-by: Filip Kobierski --- net-proxy/snowflake/Manifest | 1 + net-proxy/snowflake/snowflake-2.12.1.ebuild | 62 +++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 net-proxy/snowflake/snowflake-2.12.1.ebuild diff --git a/net-proxy/snowflake/Manifest b/net-proxy/snowflake/Manifest index a565f76fd6..73b8beac0b 100644 --- a/net-proxy/snowflake/Manifest +++ b/net-proxy/snowflake/Manifest @@ -1 +1,2 @@ DIST snowflake-v2.11.0.tar.gz 24974351 BLAKE2B 9d9876cd98e2346dde99be2fe134057743a68e9b4cb1480fa477839386188acc8c9ba789f80360ea17bdb2c995c07f76bb6782e36610bcb09cb88424fd36dc8c SHA512 801a78845cbd65967f4995b98015ddf2b2518f280beb179da6cf233d51c3dc16d0384255771f8f4e768d1c21bc8924299b541299c28eea510dcb14cdc0cb7356 +DIST snowflake-v2.12.1.tar.gz 26018920 BLAKE2B abc00c5232da56d8a19104c75211aa71360cd3f01d8b66888b435027323c8c724183e64520c1cec08ba3075a934967e294f415c62fd41812b76ab3f2d558f602 SHA512 5d39fb61223d92625bc6cff960c5ef4f6ac77f44207c4e958c23e9e4bfe86cb46c9c9312f4b10ee05ed94a7841a590e37ab2b371df5da290667a38a6167f5a30 diff --git a/net-proxy/snowflake/snowflake-2.12.1.ebuild b/net-proxy/snowflake/snowflake-2.12.1.ebuild new file mode 100644 index 0000000000..3b825e6501 --- /dev/null +++ b/net-proxy/snowflake/snowflake-2.12.1.ebuild @@ -0,0 +1,62 @@ +# 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="1413878" # 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_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 +}