| 1 |
blueness |
1.3 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
blueness |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
blueness |
1.7 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/obfsproxy/obfsproxy-0.1.4.ebuild,v 1.6 2013/01/15 18:03:48 blueness Exp $
|
| 4 |
blueness |
1.1 |
|
| 5 |
|
|
EAPI="4"
|
| 6 |
|
|
|
| 7 |
blueness |
1.4 |
inherit toolchain-funcs
|
| 8 |
|
|
|
| 9 |
blueness |
1.1 |
DESCRIPTION="A tor-compliant pluggable transports proxy to obfuscate tor traffic"
|
| 10 |
|
|
HOMEPAGE="https://www.torproject.org/projects/obfsproxy.html"
|
| 11 |
blueness |
1.2 |
SRC_URI="https://archive.torproject.org/tor-package-archive/${PN}/${P}.tar.gz"
|
| 12 |
blueness |
1.1 |
|
| 13 |
|
|
LICENSE="GPL-2"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
nimiux |
1.5 |
KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
|
| 16 |
blueness |
1.1 |
IUSE=""
|
| 17 |
|
|
|
| 18 |
|
|
DEPEND="dev-libs/openssl
|
| 19 |
|
|
>=dev-libs/libevent-2
|
| 20 |
|
|
sys-libs/zlib"
|
| 21 |
|
|
RDEPEND="${DEPEND}"
|
| 22 |
|
|
|
| 23 |
blueness |
1.4 |
src_prepare() {
|
| 24 |
blueness |
1.7 |
sed -i -e "s:^AR = ar:AR = $(tc-getAR):" Makefile.in || die
|
| 25 |
blueness |
1.4 |
}
|
| 26 |
|
|
|
| 27 |
blueness |
1.1 |
src_install() {
|
| 28 |
|
|
emake DESTDIR="${D}" install
|
| 29 |
|
|
dodoc README ChangeLog
|
| 30 |
|
|
dodoc -r doc/*
|
| 31 |
|
|
}
|
| 32 |
|
|
|
| 33 |
|
|
pkg_postinst() {
|
| 34 |
|
|
einfo
|
| 35 |
|
|
einfo "To run ${PN} with a tor bridge, add the following to your torrc file:"
|
| 36 |
|
|
einfo
|
| 37 |
|
|
einfo " ORPort 5001"
|
| 38 |
|
|
einfo " BridgeRelay 1"
|
| 39 |
|
|
einfo " ExitPolicy reject *:*"
|
| 40 |
|
|
einfo " ServerTransportPlugin obfs2 exec /usr/bin/${PN} --managed"
|
| 41 |
|
|
einfo
|
| 42 |
|
|
einfo "Change your ORPort to whatever value you use. When you start tor,"
|
| 43 |
|
|
einfo "you should see a message similar to the following in its logs:"
|
| 44 |
|
|
einfo
|
| 45 |
|
|
einfo " Registered server transport 'obfs2' at '0.0.0.0:33578'"
|
| 46 |
|
|
einfo
|
| 47 |
|
|
einfo "Note the port number, 33578 in this case, and report it, along with"
|
| 48 |
|
|
einfo "your IP address, to your bridge clients."
|
| 49 |
|
|
einfo
|
| 50 |
|
|
einfo
|
| 51 |
|
|
einfo "To run ${PN} with a tor client, add the following to your torrc file:"
|
| 52 |
|
|
einfo
|
| 53 |
|
|
einfo " SocksPort 5000"
|
| 54 |
|
|
einfo " UseBridges 1"
|
| 55 |
|
|
einfo " Bridge obfs2 <IP>:<port>"
|
| 56 |
|
|
einfo " ClientTransportPlugin obfs2 exec /usr/bin/${PN} --managed"
|
| 57 |
|
|
einfo
|
| 58 |
|
|
einfo "Change your SocksPort to whatever value you use. Also, replace the"
|
| 59 |
|
|
einfo "<IP>:<port> pair with the values you received from the tor obfs bridge."
|
| 60 |
|
|
einfo
|
| 61 |
|
|
}
|