Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (fauli)" <fauli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/tor: tor-0.2.1.20.ebuild ChangeLog
Date: Wed, 02 Dec 2009 15:41:51
Message-Id: E1NFqN2-0005M5-0A@stork.gentoo.org
1 fauli 09/12/02 14:39:55
2
3 Modified: ChangeLog
4 Added: tor-0.2.1.20.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.185 net-misc/tor/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/ChangeLog?rev=1.185&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/ChangeLog?rev=1.185&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/ChangeLog?r1=1.184&r2=1.185
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
19 retrieving revision 1.184
20 retrieving revision 1.185
21 diff -u -r1.184 -r1.185
22 --- ChangeLog 25 Nov 2009 10:55:52 -0000 1.184
23 +++ ChangeLog 2 Dec 2009 14:39:55 -0000 1.185
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-misc/tor
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.184 2009/11/25 10:55:52 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.185 2009/12/02 14:39:55 fauli Exp $
29 +
30 +*tor-0.2.1.20 (02 Dec 2009)
31 +
32 + 02 Dec 2009; Christian Faulhammer <fauli@g.o> +tor-0.2.1.20.ebuild:
33 + version bump
34
35 25 Nov 2009; Markus Meier <maekke@g.o> tor-0.2.1.19-r2.ebuild:
36 amd64 stable, bug #294297
37
38
39
40 1.1 net-misc/tor/tor-0.2.1.20.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/tor-0.2.1.20.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/tor-0.2.1.20.ebuild?rev=1.1&content-type=text/plain
44
45 Index: tor-0.2.1.20.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.1.20.ebuild,v 1.1 2009/12/02 14:39:55 fauli Exp $
50
51 EAPI=2
52
53 inherit eutils
54
55 DESCRIPTION="Anonymizing overlay network for TCP"
56 HOMEPAGE="http://www.torproject.org/"
57 MY_PV=${PV/_/-}
58 SRC_URI="http://www.torproject.org/dist/${PN}-${MY_PV}.tar.gz"
59 S="${WORKDIR}/${PN}-${MY_PV}"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
64 IUSE="debug"
65
66 DEPEND="dev-libs/openssl
67 >=dev-libs/libevent-1.2"
68 RDEPEND="${DEPEND}
69 net-proxy/tsocks"
70
71 pkg_setup() {
72 enewgroup tor
73 enewuser tor -1 -1 /var/lib/tor tor
74 }
75
76 src_prepare() {
77 epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch
78 epatch "${FILESDIR}"/${PN}-0.2.1.19-logrotate.patch
79 # Normally tor uses a bundled libevent fragment to provide
80 # asynchronous DNS requests. This is generally a bad idea, but at
81 # the moment the official libevent does not have the 0x20 hack, so
82 # anonymity is higher with the bundled variant. Remove patch as
83 # soon as upstream has installed the autoconf option to use
84 # system's libevent. This hasn't happened, so we
85 # have to live with the bundled libevent for this release, as the
86 # current version in tree won't suffice for tor to build
87 # See http://bugs.noreply.org/flyspray/index.php?do=details&id=920
88 # for upstream's report
89 # Let's revisit this when libevent-2* is unmasked
90 # use bundledlibevent || epatch "${FILESDIR}"/${PN}-0.2.1.5-no-internal-libevent.patch
91 }
92
93 src_configure() {
94 econf $(use_enable debug)
95 }
96
97 src_install() {
98 newinitd "${FILESDIR}"/tor.initd-r4 tor
99 emake DESTDIR="${D}" install || die
100 keepdir /var/{lib,log,run}/tor
101
102 dodoc README ChangeLog AUTHORS ReleaseNotes \
103 doc/{HACKING,TODO} \
104 doc/spec/*.txt
105
106 fperms 750 /var/lib/tor /var/log/tor
107 fperms 755 /var/run/tor
108 fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
109
110 insinto /etc/logrotate.d
111 newins contrib/tor.logrotate tor
112
113 # allow the tor user more open files to avoid errors, see bug 251171
114 insinto /etc/security/limits.d/
115 doins "${FILESDIR}"/tor.conf
116 }
117
118 pkg_postinst() {
119 elog "You must create /etc/tor/torrc, you can use the sample that is in that directory"
120 elog "To have privoxy and tor working together you must add:"
121 elog "forward-socks4a / localhost:9050 ."
122 elog "(notice the . at the end of the line)"
123 elog "to /etc/privoxy/config"
124 }