Gentoo Archives: gentoo-commits

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