diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-28 01:36:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-28 01:36:25 +0100 |
commit | dab47ccc26a61cb1fa68f2ab787233a1d12af4d1 (patch) | |
tree | a62738c03c7054c5e9671a2f1d43542b84db1bfa /net-proxy/lyrebird/lyrebird-0.1.0.ebuild | |
parent | f2381eb1a950bcf1b75077ca00e589b06a905cc7 (diff) |
gentoo auto-resync : 28:06:2023 - 01:36:25
Diffstat (limited to 'net-proxy/lyrebird/lyrebird-0.1.0.ebuild')
-rw-r--r-- | net-proxy/lyrebird/lyrebird-0.1.0.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-proxy/lyrebird/lyrebird-0.1.0.ebuild b/net-proxy/lyrebird/lyrebird-0.1.0.ebuild new file mode 100644 index 000000000000..34cb1326cb3f --- /dev/null +++ b/net-proxy/lyrebird/lyrebird-0.1.0.ebuild @@ -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 +} |