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

Contents of /net-misc/tor/tor-0.1.1.24.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Dec 18 02:12:48 2006 UTC (7 years, 8 months ago) by humpback
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
bump
(Portage version: 2.1.1-r2)
 (Signed Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20