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: ChangeLog tor-0.2.1.27.ebuild
Date: Thu, 25 Nov 2010 14:21:29
Message-Id: 20101125142120.1F91F20051@flycatcher.gentoo.org
1 fauli 10/11/25 14:21:20
2
3 Modified: ChangeLog
4 Added: tor-0.2.1.27.ebuild
5 Log:
6 version bump, fixes OpenSSL issues, see bug 346715
7 (Portage version: 2.1.8.3/cvs/Linux i686, RepoMan options: --force)
8
9 Revision Changes Path
10 1.213 net-misc/tor/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.213&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.213&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?r1=1.212&r2=1.213
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
19 retrieving revision 1.212
20 retrieving revision 1.213
21 diff -u -r1.212 -r1.213
22 --- ChangeLog 14 Oct 2010 16:58:05 -0000 1.212
23 +++ ChangeLog 25 Nov 2010 14:21:19 -0000 1.213
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-misc/tor
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.212 2010/10/14 16:58:05 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.213 2010/11/25 14:21:19 fauli Exp $
29 +
30 +*tor-0.2.1.27 (25 Nov 2010)
31 +
32 + 25 Nov 2010; Christian Faulhammer <fauli@g.o> +tor-0.2.1.27.ebuild:
33 + version bump, fixes OpenSSL issues, see bug 346715
34
35 14 Oct 2010; Brent Baude <ranger@g.o> tor-0.2.1.26.ebuild:
36 stable ppc, bug 329879
37
38
39
40 1.1 net-misc/tor/tor-0.2.1.27.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.1.27.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.1.27.ebuild?rev=1.1&content-type=text/plain
44
45 Index: tor-0.2.1.27.ebuild
46 ===================================================================
47 # Copyright 1999-2010 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.27.ebuild,v 1.1 2010/11/25 14:21:20 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 ~arm ~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 }