public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-proxy/snowflake/
Date: Sat,  6 Jan 2024 23:52:52 +0000 (UTC)	[thread overview]
Message-ID: <1704585010.4b5618ff36095faf51f30f0593129f132f11b1eb.cybertailor@gentoo> (raw)

commit:     4b5618ff36095faf51f30f0593129f132f11b1eb
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jan  6 23:50:10 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> 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 <cyber+gentoo <AT> 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
+}


             reply	other threads:[~2024-01-06 23:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-06 23:52 Anna Vyalkova [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-20  6:29 [gentoo-commits] repo/proj/guru:dev commit in: net-proxy/snowflake/ Anna Vyalkova
2024-11-17  2:17 Anna Vyalkova
2024-04-10  2:47 Anna Vyalkova
2023-11-07 15:04 Anna Vyalkova
2023-09-17  1:08 Joe Kappus
2023-04-16 19:13 Anna Vyalkova

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1704585010.4b5618ff36095faf51f30f0593129f132f11b1eb.cybertailor@gentoo \
    --to=cyber+gentoo@sysrq.in \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox