/[gentoo-x86]/net-proxy/obfsproxy/obfsproxy-0.2.4.ebuild
Gentoo

Contents of /net-proxy/obfsproxy/obfsproxy-0.2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Oct 6 16:47:24 2013 UTC (10 months, 1 week ago) by blueness
Branch: MAIN
Initial commit of 0.2.x branch, a complete rewrite in python

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/yenc/yenc-0.4.0-r1.ebuild,v 1.3 2013/01/04 01:15:59 floppym Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit distutils-r1
9
10 DESCRIPTION="An obfuscating proxy using Tor's pluggable transport protocol"
11 HOMEPAGE="https://www.torproject.org/projects/obfsproxy.html"
12 SRC_URI="mirror://pypi/o/${PN}/${P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17
18 PATCHES=( "${FILESDIR}"/${PN}-remove-argparse.patch )
19 DOCS=( ChangeLog INSTALL README TODO doc/HOWTO.txt )
20
21 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
22
23 RDEPEND=">=dev-python/pyptlib-0.0.5[${PYTHON_USEDEP}]
24 >=dev-python/pycrypto-2.6-r2[${PYTHON_USEDEP}]
25 dev-python/twisted-core[${PYTHON_USEDEP}]"
26
27 pkg_postinst() {
28 einfo
29 einfo "To run ${PN} with a tor bridge, add the following to your torrc file:"
30 einfo
31 einfo " SocksPort 0"
32 einfo " ORPort 443 # or some other port if you already run a webserver/skype"
33 einfo " BridgeRelay 1"
34 einfo " ExitPolicy reject *:*"
35 einfo " Nickname CHANGEME_1"
36 einfo " ContactInfo CHANGEME_2"
37 einfo " ServerTransportPlugin obfs2,obfs3 exec /usr/bin/${PN} managed"
38 einfo
39 einfo "Obviously, change CHANGEME_1 and CHANGEME_2 to appropriate values. When you"
40 einfo "start tor, you should see a message similar to the following in its logs:"
41 einfo
42 einfo " Oct 05 20:00:41.000 [notice] Registered server transport 'obfs2' at '0.0.0.0:26821"
43 einfo " Oct 05 20:00:42.000 [notice] Registered server transport 'obfs3' at '0.0.0.0:40172"
44 einfo
45 einfo "Note the port numbers, 26821 and 40172 in this case, and report it, along with"
46 einfo "your IP address, to your bridge clients. If you are behind a NAT firewall, you"
47 einfo "you need to do port forwarding on those ports."
48 einfo
49 }

  ViewVC Help
Powered by ViewVC 1.1.20