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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Jan 13 20:44:12 2013 UTC (23 months ago) by nimiux
Branch: MAIN
Changes since 1.4: +2 -2 lines
Marked stable for amd64 wrt bug #450904

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key D628E536)

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 nimiux 1.5 # $Header: /var/cvsroot/gentoo-x86/net-proxy/obfsproxy/obfsproxy-0.1.4.ebuild,v 1.4 2013/01/11 20:58:58 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     >=net-misc/tor-0.2.3.12_alpha
21     sys-libs/zlib"
22     RDEPEND="${DEPEND}"
23    
24 blueness 1.4 src_prepare() {
25     sed -i -e "s:^AR = ar:AR = $(tc-getAR):" Makefile.in
26     }
27    
28 blueness 1.1 src_install() {
29     emake DESTDIR="${D}" install
30     dodoc README ChangeLog
31     dodoc -r doc/*
32     }
33    
34     pkg_postinst() {
35     einfo
36     einfo "To run ${PN} with a tor bridge, add the following to your torrc file:"
37     einfo
38     einfo " ORPort 5001"
39     einfo " BridgeRelay 1"
40     einfo " ExitPolicy reject *:*"
41     einfo " ServerTransportPlugin obfs2 exec /usr/bin/${PN} --managed"
42     einfo
43     einfo "Change your ORPort to whatever value you use. When you start tor,"
44     einfo "you should see a message similar to the following in its logs:"
45     einfo
46     einfo " Registered server transport 'obfs2' at '0.0.0.0:33578'"
47     einfo
48     einfo "Note the port number, 33578 in this case, and report it, along with"
49     einfo "your IP address, to your bridge clients."
50     einfo
51     einfo
52     einfo "To run ${PN} with a tor client, add the following to your torrc file:"
53     einfo
54     einfo " SocksPort 5000"
55     einfo " UseBridges 1"
56     einfo " Bridge obfs2 <IP>:<port>"
57     einfo " ClientTransportPlugin obfs2 exec /usr/bin/${PN} --managed"
58     einfo
59     einfo "Change your SocksPort to whatever value you use. Also, replace the"
60     einfo "<IP>:<port> pair with the values you received from the tor obfs bridge."
61     einfo
62     }

  ViewVC Help
Powered by ViewVC 1.1.20