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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Jun 26 11:56:18 2013 UTC (14 months, 4 weeks ago) by ago
Branch: MAIN
Changes since 1.6: +2 -2 lines
Stable for arm, wrt bug #473648

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --include-arches="arm", signed Manifest commit with key 7194459F)

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

  ViewVC Help
Powered by ViewVC 1.1.20