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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Aug 28 23:31:14 2007 UTC (7 years, 1 month ago) by humpback
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
fixed init issue close 189724
(Portage version: 2.1.3.7)

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.1.23.ebuild,v 1.9 2007/05/15 16:08:36 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 ${DEPEND}"
20
21 pkg_setup() {
22 enewgroup tor
23 enewuser tor -1 -1 /var/lib/tor tor
24 }
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 epatch ${FILESDIR}/torrc.sample-0.1.1.23.patch
30 }
31
32 src_install() {
33 newinitd ${FILESDIR}/tor.initd tor
34 make DESTDIR=${D} install || die
35 keepdir /var/{lib,log,run}/tor
36
37 dodoc README ChangeLog AUTHORS INSTALL \
38 doc/{HACKING,TODO} \
39 doc/{control-spec.txt,dir-spec.txt,rend-spec.txt,socks-extensions.txt,tor-spec.txt}
40
41 dodir /var/lib/tor
42 dodir /var/log/tor
43 dodir /var/run/tor
44 fperms 750 /var/lib/tor /var/log/tor
45 fperms 755 /var/run/tor
46 fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
47 }
48
49 pkg_postinst() {
50 einfo "You must create /etc/tor/torrc, you can use the sample that is in that directory"
51 einfo "To have privoxy and tor working together you must add:"
52 einfo "forward-socks4a / localhost:9050 ."
53 ewarn "(notice the . at the end of the line)"
54 einfo "to /etc/privoxy/config"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20