mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-proxy/lyrebird: add 0.1.0
Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST lyrebird-0.1.0-deps.tar.xz 88991580 BLAKE2B ba9113d847bc900ad3001e91a67ac939a7fbd8f7423f256be92a5fb2461604c00e05edd581a28f456f493997d31a40fa1673fead1cd15ae192e02ca480b9db5b SHA512 af6e245ac333de1c14ba1f648548123f11ceaffb894d4057e2e7ed5c1fa8cd0f023e308ccf20d74696b2ef0b8a0489fe2f73c868dc23e087f8ae04ea6688db4d
|
||||
DIST lyrebird-0.1.0.tar.bz2 76753 BLAKE2B af168a25093b68b10b489adc282f1ee65b70193602f79d9cc352c78e2a9c71205191dc6487ea58584f76ce1cbbf653d3fd0e1f645d7972d3e73173a90ae39361 SHA512 f9b8686d1c5f9ddb41a255a1a8954e05cefd50523ada7360432b456c62475ba606872df407ba8ebd7714d4f185eef0efae63e3e53c5c1c18fd323a97912f951e
|
||||
DIST obfs4proxy-0.0.14-deps.tar.xz 23134868 BLAKE2B befa45afeb9566dbf46be07ae469dca305d91584b04f6cb8529c50c2d1b3fb94e0adc6434ffa069b8fa1af6be2a29ffc550a7bcf1aa45eac0ed66252e37a31f8 SHA512 81f4bb778230c2f040dd1682ffaff3a635d4a57a5cef42b9d4ff7df486476cb037d7851d6e8ce5bb021c6a9a5116355e963eccfc2d1fd94cbc24df21bff7ff2e
|
||||
DIST obfs4proxy-0.0.14.tar.gz 88649 BLAKE2B 6d2198dee67998b1793c28d77dbfd8f922248e8acba481ea9496567652e132fe45c09061b3052dcdebe0dbc356744ea454641789dc688ed333ede73186b8c69a SHA512 2e28516ab888485d14d7f60fc0bee9a8268faf681803c71faff49185b7870cc0c5a6df3dbbb2a4d446307997812092ca64070be978997bc82cc89ee435698feb
|
||||
|
||||
43
net-proxy/lyrebird/lyrebird-0.1.0.ebuild
Normal file
43
net-proxy/lyrebird/lyrebird-0.1.0.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit 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
|
||||
https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="BSD CC0-1.0 BZIP2 GPL-3+ MIT public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~riscv ~x86"
|
||||
|
||||
S="${WORKDIR}"/${PN}-${P}
|
||||
|
||||
DOCS=( README.md ChangeLog doc/obfs4-spec.txt )
|
||||
|
||||
src_compile() {
|
||||
go build ./cmd/${PN} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobin ${PN}
|
||||
newman doc/obfs4proxy.1 ${PN}.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -z "${REPLACING_VERSIONS}" ]]; then
|
||||
local oldver
|
||||
for oldver in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${oldver}" -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
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user