From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B98215803E for ; Sat, 6 Jan 2024 23:52:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 031E72BC01D; Sat, 6 Jan 2024 23:52:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D19612BC01D for ; Sat, 6 Jan 2024 23:52:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 709AE3431AE for ; Sat, 6 Jan 2024 23:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B495F1082 for ; Sat, 6 Jan 2024 23:52:52 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1704585010.4b5618ff36095faf51f30f0593129f132f11b1eb.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-proxy/snowflake/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-proxy/snowflake/Manifest net-proxy/snowflake/snowflake-2.8.1.ebuild X-VCS-Directories: net-proxy/snowflake/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 4b5618ff36095faf51f30f0593129f132f11b1eb X-VCS-Branch: dev Date: Sat, 6 Jan 2024 23:52:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f685c16b-0f60-4b18-9d3c-82f419d34101 X-Archives-Hash: 6e74673ea5674ca6042d0f8e8f89f380 commit: 4b5618ff36095faf51f30f0593129f132f11b1eb Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sat Jan 6 23:50:10 2024 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sat Jan 6 23:50:10 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b5618ff net-proxy/snowflake: add 2.8.1 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> net-proxy/snowflake/Manifest | 1 + net-proxy/snowflake/snowflake-2.8.1.ebuild | 72 ++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/net-proxy/snowflake/Manifest b/net-proxy/snowflake/Manifest index fde9990674..1f83b69632 100644 --- a/net-proxy/snowflake/Manifest +++ b/net-proxy/snowflake/Manifest @@ -1 +1,2 @@ DIST snowflake-v2.7.0.tar.gz 21617453 BLAKE2B c91835ffee5faef705fb45ddf7280cbff3016de027b790837f1ac459de108a9f5809c6fc42149332aab88750fb8f24b9e4cd0c04a2d8958d4157d487af0a76e6 SHA512 1bc65efdcc92e201df1e533fcb09c3c20803b7f97dec941f511f6d8d86597c0b4a2618edb2de9c1266d46dad26a51893f2918fcc4af161ec7032496aab76d483 +DIST snowflake-v2.8.1.tar.gz 22650711 BLAKE2B a330fd8f4c8b7858dcdf58865a84f0fda8d3c8ce6b8d2e8e9b50a041349d0e3c8de7f028275bc33344cd1e4060572d64a26b1922f94ad01adc75bacfb2caf057 SHA512 752afc7fdcbdefa19e4ef319ec7ce9f4ad8182557ce6a51caf7b24e4d08c6f755d34686ce8513f99e216ef314c437328dccfb7d6d16649b63561ed20d5891234 diff --git a/net-proxy/snowflake/snowflake-2.8.1.ebuild b/net-proxy/snowflake/snowflake-2.8.1.ebuild new file mode 100644 index 0000000000..3aa5a8a5c0 --- /dev/null +++ b/net-proxy/snowflake/snowflake-2.8.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 2023-2024 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="441747" +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/raw/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( >=dev-lang/go-1.21 )" + +src_configure() { + COMPONENTS=( + broker + probetest + proxy + ) + + if has_version -b ">=dev-lang/go-1.21"; then + COMPONENTS+=( + client + server + ) + else + ewarn "The following components have been disabled:" + ewarn " client server" + ewarn + ewarn "You need >=dev-lang/go-1.21 to build them." + fi +} + +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 +}