commit:     01901d534e0a2b6e4b61714b1c49c50795c403dd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  5 01:44:26 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr  5 01:44:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01901d53

net-proxy/lyrebird: add 0.6.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-proxy/lyrebird/Manifest              |  2 ++
 net-proxy/lyrebird/lyrebird-0.6.0.ebuild | 41 ++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/net-proxy/lyrebird/Manifest b/net-proxy/lyrebird/Manifest
index 49c0d2d89e9f..22163f66cded 100644
--- a/net-proxy/lyrebird/Manifest
+++ b/net-proxy/lyrebird/Manifest
@@ -1,2 +1,4 @@
 DIST lyrebird-0.5.0-deps.tar.xz 49717604 BLAKE2B 
cb490f3c5b13512f2c9238c8ea47121627d1b77c33e637096cd466d1f59fc71b6113bb10ba2ac3cee16bf9f8c8885a8f4587384bfe6f09ff8b2bbcef087e819c
 SHA512 
33b8ab0e4850c06720430df90ca0a174925b2c03366b1dc2b71480ed3c7c8344dee4c12145654e757d9c8c2dc583a5d44b952ed021b570b86878edfa57b1cfa5
 DIST lyrebird-0.5.0.tar.bz2 111189 BLAKE2B 
d534074f6db7ad190b12010ddc44889c15ae2c3dc594e30dea41ae1f092ca83481ecb51611d763b63a8b3d8d97f887fdc4e216b41dab3b219d7c2df2f7b5d84f
 SHA512 
8059583ae6ebc121cb853600d635382c9d85b6a98a71be0f7f71bfd780d4278804b89cdaa083233dcdb47ec64ebf00a32a57b84f5cd46d42c94e6a7ff74887a8
+DIST lyrebird-0.6.0-deps.tar.xz 57712612 BLAKE2B 
0fa65aff919ba783be44039652979d82c06ffb86ab14c688cbff2e30091b2e2f88c072b4d0c277777394a1cfa068a351d619dcbeac5c822b87e360a50a770519
 SHA512 
405a590c932af9eef73d1b7c0a72e4b81e7ef8ce9367db134d0b3c08c3dd3ec0c6c03dacabbea9f336d607b4655b9dfe3b2666cc94432c46ed4d5df0bf3217f0
+DIST lyrebird-0.6.0.tar.bz2 96527 BLAKE2B 
09ef8f7acd9874e46e431030fbda4733a2400b5e437ee86e81ccc9f4e60f56ec767018f2687087a79e7e2f89d2860cdd5746d9b678e4a81f95aa174ba9716547
 SHA512 
e3433b9e4e4939a60e7b387ee08619e739cedb63db02c5897ad8d82e3a16646342be88ef52f184cc221cce2c26527a75a02a83b23e2e6f8ff4e19d5d6cb1a9a2

diff --git a/net-proxy/lyrebird/lyrebird-0.6.0.ebuild 
b/net-proxy/lyrebird/lyrebird-0.6.0.ebuild
new file mode 100644
index 000000000000..b2103c68bcf4
--- /dev/null
+++ b/net-proxy/lyrebird/lyrebird-0.6.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit eapi9-ver go-module
+
+DESCRIPTION="An obfuscating proxy supporting Tor's pluggable transport 
protocol obfs4"
+HOMEPAGE="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird";
+SRC_URI="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/${PN}/-/archive/${P}/${PN}-${P}.tar.bz2
 -> ${P}.tar.bz2"
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz";
+S="${WORKDIR}"/${PN}-${P}
+
+LICENSE="BSD CC0-1.0 BZIP2 GPL-3+ MIT public-domain"
+# Dependent licenses
+LICENSE+="  0BSD Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-obfs4proxy )"
+BDEPEND=">=dev-lang/go-1.21"
+
+DOCS=( README.md ChangeLog doc/obfs4-spec.txt )
+
+src_compile() {
+       ego build ./cmd/${PN}
+}
+
+src_install() {
+       dobin ${PN}
+       doman doc/${PN}.1
+}
+
+pkg_postinst() {
+       if ver_replacing -lt 0.1.0; then
+               ewarn "Since version 0.1.0 the proxy executable is called 
'${PN}' rather than 'obfs4proxy'."
+               ewarn "Please update your Tor configuration accordingly."
+               ewarn
+       fi
+}

Reply via email to