/[gentoo-x86]/net-misc/tor/tor-0.1.2.6_alpha.ebuild
Gentoo

Contents of /net-misc/tor/tor-0.1.2.6_alpha.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 15 15:57:21 2007 UTC (7 years, 2 months ago) by humpback
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
bump and close #176018
(Portage version: 2.1.2.2)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.1.2.6_alpha.ebuild,v 1.2 2007/04/29 17:48:03 tove Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Anonymizing overlay network for TCP"
8 HOMEPAGE="http://tor.eff.org"
9 MY_PV=${PV/_/-}
10 SRC_URI="http://tor.eff.org/dist/${PN}-${MY_PV}.tar.gz"
11 S="${WORKDIR}/${PN}-${MY_PV}"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16 IUSE=""
17
18 DEPEND="dev-libs/openssl
19 dev-libs/libevent"
20 RDEPEND="net-proxy/tsocks"
21
22 pkg_setup() {
23 enewgroup tor
24 enewuser tor -1 -1 /var/lib/tor tor
25 }
26
27 src_unpack() {
28 unpack ${A}
29 echo ${P}
30 cd ${S}
31 epatch ${FILESDIR}/torrc.sample-0.1.2.6.patch
32 }
33
34 src_install() {
35 newinitd ${FILESDIR}/tor.initd tor
36 make DESTDIR=${D} install || die
37
38 dodoc README ChangeLog AUTHORS INSTALL \
39 doc/{HACKING,TODO} \
40 doc/{control-spec.txt,dir-spec.txt,rend-spec.txt,socks-extensions.txt,tor-spec.txt}
41
42 dodir /var/lib/tor
43 dodir /var/log/tor
44 dodir /var/run/tor
45 fperms 750 /var/lib/tor /var/log/tor
46 fperms 755 /var/run/tor
47 fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
48 }
49
50 pkg_postinst() {
51 einfo "You must create /etc/tor/torrc, you can use the sample that is in that directory"
52 einfo "To have privoxy and tor working together you must add:"
53 einfo "forward-socks4a / localhost:9050 ."
54 ewarn "(notice the . at the end of the line)"
55 einfo "to /etc/privoxy/config"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20