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.2.21_alpha.ebuild ChangeLog tor-0.2.1.29.ebuild tor-0.2.2.20_alpha.ebuild
Date: Mon, 17 Jan 2011 13:46:27
Message-Id: 20110117134616.BF01920054@flycatcher.gentoo.org
1 chiiph 11/01/17 13:46:16
2
3 Modified: ChangeLog
4 Added: tor-0.2.2.21_alpha.ebuild tor-0.2.1.29.ebuild
5 Removed: tor-0.2.2.20_alpha.ebuild
6 Log:
7 Version bump. Clean old alpha
8
9 (Portage version: 2.2.0_alpha9/cvs/Linux i686)
10
11 Revision Changes Path
12 1.227 net-misc/tor/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.227&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.227&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?r1=1.226&r2=1.227
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
21 retrieving revision 1.226
22 retrieving revision 1.227
23 diff -u -r1.226 -r1.227
24 --- ChangeLog 10 Jan 2011 17:47:00 -0000 1.226
25 +++ ChangeLog 17 Jan 2011 13:46:16 -0000 1.227
26 @@ -1,6 +1,13 @@
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.226 2011/01/10 17:47:00 blueness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.227 2011/01/17 13:46:16 chiiph Exp $
31 +
32 +*tor-0.2.2.21_alpha (17 Jan 2011)
33 +*tor-0.2.1.29 (17 Jan 2011)
34 +
35 + 17 Jan 2011; Tomas Touceda <chiiph@g.o> +tor-0.2.1.29.ebuild,
36 + -tor-0.2.2.20_alpha.ebuild, +tor-0.2.2.21_alpha.ebuild:
37 + Versiom bump. Clean old alpha.
38
39 *tor-0.2.2.20_alpha (10 Jan 2011)
40
41
42
43
44 1.1 net-misc/tor/tor-0.2.2.21_alpha.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.2.21_alpha.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.2.21_alpha.ebuild?rev=1.1&content-type=text/plain
48
49 Index: tor-0.2.2.21_alpha.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.2.21_alpha.ebuild,v 1.1 2011/01/17 13:46:16 chiiph Exp $
54
55 EAPI=3
56
57 inherit eutils versionator
58
59 MY_PV="$(replace_version_separator 4 -)"
60 MY_PF="${PN}-${MY_PV}"
61 DESCRIPTION="Anonymizing overlay network for TCP"
62 HOMEPAGE="http://www.torproject.org/"
63 SRC_URI="http://www.torproject.org/dist/${MY_PF}.tar.gz"
64 S="${WORKDIR}/${MY_PF}"
65
66 LICENSE="BSD"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
69 IUSE="debug"
70
71 # libevent-2.0 is masked but we still depend on it
72 # See: bug #206969 and https://trac.torproject.org/projects/tor/ticket/920
73 DEPEND="dev-libs/openssl
74 >=dev-libs/libevent-2.0"
75 # The tordns patch for tsocks avoids some leakage of information thus raising anonymity
76 RDEPEND="${DEPEND}
77 net-proxy/tsocks[tordns]"
78
79 pkg_setup() {
80 enewgroup tor
81 enewuser tor -1 -1 /var/lib/tor tor
82 }
83
84 src_prepare() {
85 epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch
86 epatch "${FILESDIR}"/${PN}-0.2.1.19-logrotate.patch
87 }
88
89 src_configure() {
90 econf $(use_enable debug)
91 }
92
93 src_install() {
94 newinitd "${FILESDIR}"/tor.initd-r4 tor
95 emake DESTDIR="${D}" install || die
96 keepdir /var/{lib,log,run}/tor
97
98 dodoc README ChangeLog ReleaseNotes \
99 doc/{HACKING,TODO} \
100 doc/spec/*.txt
101
102 fperms 750 /var/lib/tor /var/log/tor
103 fperms 755 /var/run/tor
104 fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
105
106 insinto /etc/logrotate.d
107 newins contrib/tor.logrotate tor
108
109 # allow the tor user more open files to avoid errors, see bug 251171
110 insinto /etc/security/limits.d/
111 doins "${FILESDIR}"/tor.conf
112 }
113
114 pkg_postinst() {
115 elog "You must create /etc/tor/torrc, you can use the sample that is in that directory"
116 elog "To have privoxy and tor working together you must add:"
117 elog "forward-socks4a / localhost:9050 ."
118 elog "(notice the . at the end of the line)"
119 elog "to /etc/privoxy/config"
120 }
121
122
123
124 1.1 net-misc/tor/tor-0.2.1.29.ebuild
125
126 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.1.29.ebuild?rev=1.1&view=markup
127 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.1.29.ebuild?rev=1.1&content-type=text/plain
128
129 Index: tor-0.2.1.29.ebuild
130 ===================================================================
131 # Copyright 1999-2011 Gentoo Foundation
132 # Distributed under the terms of the GNU General Public License v2
133 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.1.29.ebuild,v 1.1 2011/01/17 13:46:16 chiiph Exp $
134
135 EAPI=2
136
137 inherit eutils
138
139 DESCRIPTION="Anonymizing overlay network for TCP"
140 HOMEPAGE="http://www.torproject.org/"
141 MY_PV=${PV/_/-}
142 SRC_URI="http://www.torproject.org/dist/${PN}-${MY_PV}.tar.gz"
143 S="${WORKDIR}/${PN}-${MY_PV}"
144
145 LICENSE="BSD"
146 SLOT="0"
147 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
148 IUSE="debug"
149
150 DEPEND="dev-libs/openssl
151 >=dev-libs/libevent-1.2"
152 # The tordns patch for tsocks avoids some leakage of information thus raising anonymity
153 RDEPEND="${DEPEND}
154 net-proxy/tsocks[tordns]"
155
156 pkg_setup() {
157 enewgroup tor
158 enewuser tor -1 -1 /var/lib/tor tor
159 }
160
161 src_prepare() {
162 epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch
163 epatch "${FILESDIR}"/${PN}-0.2.1.19-logrotate.patch
164 # Normally tor uses a bundled libevent fragment to provide
165 # asynchronous DNS requests. This is generally a bad idea, but at
166 # the moment the official libevent does not have the 0x20 hack, so
167 # anonymity is higher with the bundled variant. Remove patch as
168 # soon as upstream has installed the autoconf option to use
169 # system's libevent. This hasn't happened, so we
170 # have to live with the bundled libevent for this release, as the
171 # current version in tree won't suffice for tor to build
172 # See http://bugs.noreply.org/flyspray/index.php?do=details&id=920
173 # for upstream's report
174 # Let's revisit this when libevent-2* is unmasked
175 # use bundledlibevent || epatch "${FILESDIR}"/${PN}-0.2.1.5-no-internal-libevent.patch
176 }
177
178 src_configure() {
179 econf $(use_enable debug)
180 }
181
182 src_install() {
183 newinitd "${FILESDIR}"/tor.initd-r4 tor
184 emake DESTDIR="${D}" install || die
185 keepdir /var/{lib,log,run}/tor
186
187 dodoc README ChangeLog AUTHORS ReleaseNotes \
188 doc/{HACKING,TODO} \
189 doc/spec/*.txt
190
191 fperms 750 /var/lib/tor /var/log/tor
192 fperms 755 /var/run/tor
193 fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
194
195 insinto /etc/logrotate.d
196 newins contrib/tor.logrotate tor
197
198 # allow the tor user more open files to avoid errors, see bug 251171
199 insinto /etc/security/limits.d/
200 doins "${FILESDIR}"/tor.conf
201 }
202
203 pkg_postinst() {
204 elog "You must create /etc/tor/torrc, you can use the sample that is in that directory"
205 elog "To have privoxy and tor working together you must add:"
206 elog "forward-socks4a / localhost:9050 ."
207 elog "(notice the . at the end of the line)"
208 elog "to /etc/privoxy/config"
209 }