diff options
Diffstat (limited to 'net-proxy/obfs4proxy/obfs4proxy-9999.ebuild')
-rw-r--r-- | net-proxy/obfs4proxy/obfs4proxy-9999.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net-proxy/obfs4proxy/obfs4proxy-9999.ebuild b/net-proxy/obfs4proxy/obfs4proxy-9999.ebuild new file mode 100644 index 000000000000..5bc4c27b31d8 --- /dev/null +++ b/net-proxy/obfs4proxy/obfs4proxy-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit golang-build + +EGO_SRC=git.torproject.org/pluggable-transports/obfs4.git +EGO_PN=${EGO_SRC}/... + +if [[ ${PV} == "9999" ]]; +then + inherit golang-vcs +else + KEYWORDS="~amd64" + EGIT_COMMIT="${P}" + SRC_URI="https://github.com/Yawning/obfs4/archive/${P}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi + +DESCRIPTION="An obfuscating proxy supporting Tor's pluggable transport protocol obfs4" +HOMEPAGE="https://github.com/Yawning/obfs4" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +DEPEND="dev-go/ed25519 + dev-go/go-crypto + dev-go/go-net + dev-go/goptlib + dev-go/siphash" +RDEPEND="" + +src_compile() { + golang-build_src_compile + local binfile=$(find "${T}" -name a.out) + [[ -x ${binfile} ]] || die "a.out not found" + cp -a ${binfile} obfs4proxy +} + +src_install() { + default + dobin obfs4proxy || die "install failed" + cd src/${EGO_SRC} + doman doc/obfs4proxy.1 || die "install failed" + dodoc README.md ChangeLog doc/obfs4-spec.txt || die "install failed" +} |