mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 23:39:00 -04:00
net-proxy/snowflake: add 2.8.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
parent
69dde4bb67
commit
4b5618ff36
@ -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
|
||||
|
72
net-proxy/snowflake/snowflake-2.8.1.ebuild
Normal file
72
net-proxy/snowflake/snowflake-2.8.1.ebuild
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user