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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu May 31 09:50:14 2007 UTC (7 years, 1 month ago) by humpback
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
bumped, fixed bug and cleaned older versions
(Portage version: 2.1.2.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.2.13.ebuild,v 1.2 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 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="debug"
17
18 DEPEND="dev-libs/openssl
19 >=dev-libs/libevent-1.2"
20 RDEPEND="${DEPEND}
21 net-proxy/tsocks"
22
23 pkg_setup() {
24 enewgroup tor
25 enewuser tor -1 -1 /var/lib/tor tor
26 }
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch
32 }
33
34 src_compile() {
35 econf $(use_enable debug)
36 emake || die "emake failed"
37 }
38
39 src_install() {
40 newinitd "${FILESDIR}"/tor.initd-r2 tor
41 emake DESTDIR="${D}" install || die
42 keepdir /var/{lib,log,run}/tor
43
44 dodoc README ChangeLog AUTHORS ReleaseNotes \
45 doc/{HACKING,TODO} \
46 doc/spec/*.txt
47
48 fperms 750 /var/lib/tor /var/log/tor
49 fperms 755 /var/run/tor
50 fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
51
52 sed -i -e "s:/lib::" \
53 -e "s:/rc.d::" \
54 -e "s:\\*:\\*.:" contrib/tor.logrotate
55 insinto /etc/logrotate.d
56 newins contrib/tor.logrotate tor
57 }
58
59 pkg_postinst() {
60 elog "You must create /etc/tor/torrc, you can use the sample that is in that directory"
61 elog "To have privoxy and tor working together you must add:"
62 elog "forward-socks4a / localhost:9050 ."
63 elog "(notice the . at the end of the line)"
64 elog "to /etc/privoxy/config"
65 }

  ViewVC Help
Powered by ViewVC 1.1.20