Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/tor: tor-0.2.2.32-r1.ebuild ChangeLog tor-0.2.3.2_alpha-r3.ebuild
Date: Tue, 30 Aug 2011 13:57:54
Message-Id: 20110830135742.8FF3E20051@flycatcher.gentoo.org
1 blueness 11/08/30 13:57:42
2
3 Modified: ChangeLog
4 Added: tor-0.2.2.32-r1.ebuild tor-0.2.3.2_alpha-r3.ebuild
5 Log:
6 Change logging to syslog, add sanity check for /var/run/tor, bug #380117
7
8 (Portage version: 2.1.10.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.270 net-misc/tor/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.270&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.270&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?r1=1.269&r2=1.270
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
20 retrieving revision 1.269
21 retrieving revision 1.270
22 diff -u -r1.269 -r1.270
23 --- ChangeLog 28 Aug 2011 11:15:42 -0000 1.269
24 +++ ChangeLog 30 Aug 2011 13:57:42 -0000 1.270
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-misc/tor
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.269 2011/08/28 11:15:42 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.270 2011/08/30 13:57:42 blueness Exp $
30 +
31 +*tor-0.2.3.2_alpha-r3 (30 Aug 2011)
32 +*tor-0.2.2.32-r1 (30 Aug 2011)
33 +
34 + 30 Aug 2011; Anthony G. Basile <blueness@g.o> +tor-0.2.2.32-r1.ebuild,
35 + +tor-0.2.3.2_alpha-r3.ebuild, +files/tor.initd-r5, +files/torrc-r1,
36 + +files/torrc.sample.patch:
37 + Change logging to syslog, add sanity check for /var/run/tor, bug #380117
38
39 28 Aug 2011; Anthony G. Basile <blueness@g.o> -tor-0.2.2.31_rc.ebuild:
40 Removed old release candidate
41
42
43
44 1.1 net-misc/tor/tor-0.2.2.32-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.2.32-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.2.32-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: tor-0.2.2.32-r1.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.32-r1.ebuild,v 1.1 2011/08/30 13:57:42 blueness Exp $
54
55 EAPI=4
56
57 inherit autotools eutils flag-o-matic 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="doc tor-hardening +transparent-proxy threads"
70
71 DEPEND="dev-libs/openssl
72 >=dev-libs/libevent-2.0"
73 # The tordns patch for tsocks avoids some leakage of information thus raising anonymity
74 RDEPEND="${DEPEND}
75 net-proxy/tsocks[tordns]"
76
77 pkg_setup() {
78 enewgroup tor
79 enewuser tor -1 -1 /var/lib/tor tor
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}"/torrc.sample.patch
84
85 einfo "Regenerating autotools files ..."
86 epatch "${FILESDIR}"/${PN}-0.2.2.24_alpha-respect-CFLAGS.patch
87 eautoreconf || die "eautoreconf failed"
88 }
89
90 src_configure() {
91 # Upstream isn't sure of all the user provided CFLAGS that
92 # will break tor, but does recommend against -fstrict-aliasing.
93 # We'll filter-flags them here as we encounter them.
94 filter-flags -fstrict-aliasing
95 econf --docdir=/usr/share/doc/${PF} \
96 $(use_enable doc asciidoc) \
97 $(use_enable tor-hardening gcc-hardening) \
98 $(use_enable tor-hardening linker-hardening)\
99 $(use_enable transparent-proxy transparent) \
100 $(use_enable threads)
101 }
102
103 src_install() {
104 newconfd "${FILESDIR}"/tor.confd tor
105 newinitd "${FILESDIR}"/tor.initd-r5 tor
106 emake DESTDIR="${D}" install || die
107 keepdir /var/{lib,run}/tor
108
109 dodoc README ChangeLog ReleaseNotes \
110 doc/{HACKING,TODO} \
111 doc/spec/README
112
113 fperms 750 /var/lib/tor
114 fperms 755 /var/run/tor
115 fowners tor:tor /var/lib/tor /var/run/tor
116
117 insinto /etc/tor/
118 newins "${FILESDIR}"/torrc-r1 torrc
119 }
120
121 pkg_postinst() {
122 elog
123 elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
124 elog "change it according to your needs. Use the torrc.sample that is in"
125 elog "that directory as a guide. Also, to have privoxy work with tor"
126 elog "just add the following line"
127 elog
128 elog "forward-socks4a / localhost:9050 ."
129 elog
130 elog "to /etc/privoxy/config. Notice the . at the end!"
131 elog
132 }
133
134
135
136 1.1 net-misc/tor/tor-0.2.3.2_alpha-r3.ebuild
137
138 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.3.2_alpha-r3.ebuild?rev=1.1&view=markup
139 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.3.2_alpha-r3.ebuild?rev=1.1&content-type=text/plain
140
141 Index: tor-0.2.3.2_alpha-r3.ebuild
142 ===================================================================
143 # Copyright 1999-2011 Gentoo Foundation
144 # Distributed under the terms of the GNU General Public License v2
145 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.3.2_alpha-r3.ebuild,v 1.1 2011/08/30 13:57:42 blueness Exp $
146
147 EAPI=4
148
149 inherit autotools eutils flag-o-matic versionator
150
151 MY_PV="$(replace_version_separator 4 -)"
152 MY_PF="${PN}-${MY_PV}"
153 DESCRIPTION="Anonymizing overlay network for TCP"
154 HOMEPAGE="http://www.torproject.org/"
155 SRC_URI="http://www.torproject.org/dist/${MY_PF}.tar.gz"
156 S="${WORKDIR}/${MY_PF}"
157
158 LICENSE="BSD"
159 SLOT="0"
160 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
161 IUSE="+bufferevents doc nat-pmp tor-hardening transparent-proxy threads upnp"
162 DEPEND="dev-libs/openssl
163 >=dev-libs/libevent-2.0
164 nat-pmp? ( net-libs/libnatpmp )
165 upnp? ( <net-libs/miniupnpc-1.6 )"
166
167 # The tordns patch for tsocks avoids some leakage of information thus raising anonymity
168 RDEPEND="${DEPEND}
169 net-proxy/tsocks[tordns]"
170
171 pkg_setup() {
172 enewgroup tor
173 enewuser tor -1 -1 /var/lib/tor tor
174 }
175
176 src_prepare() {
177 epatch "${FILESDIR}"/torrc.sample.patch
178 epatch "${FILESDIR}"/${PN}-0.2.3.2_alpha-fix-asneeded.patch
179
180 einfo "Regenerating autotools files ..."
181 epatch "${FILESDIR}"/${PN}-0.2.2.24_alpha-respect-CFLAGS.patch
182 eautoreconf || die "eautoreconf failed"
183 }
184
185 src_configure() {
186 # Upstream isn't sure of all the user provided CFLAGS that
187 # will break tor, but does recommend against -fstrict-aliasing.
188 # We'll filter-flags them here as we encounter them.
189 filter-flags -fstrict-aliasing
190 econf --docdir=/usr/share/doc/${PF} \
191 $(use_enable bufferevents) \
192 $(use_enable doc asciidoc) \
193 $(use_enable nat-pmp) \
194 $(use_enable tor-hardening gcc-hardening) \
195 $(use_enable tor-hardening linker-hardening)\
196 $(use_enable transparent-proxy transparent) \
197 $(use_enable threads) \
198 $(use_enable upnp)
199 }
200
201 src_install() {
202 newconfd "${FILESDIR}"/tor.confd tor
203 newinitd "${FILESDIR}"/tor.initd-r5 tor
204 emake DESTDIR="${D}" install || die
205 keepdir /var/{lib,run}/tor
206
207 dodoc README ChangeLog ReleaseNotes \
208 doc/{HACKING,TODO} \
209 doc/spec/README
210
211 fperms 750 /var/lib/tor
212 fperms 755 /var/run/tor
213 fowners tor:tor /var/lib/tor /var/run/tor
214
215 insinto /etc/tor/
216 newins "${FILESDIR}"/torrc-r1 torrc
217 }
218
219 pkg_postinst() {
220 elog
221 elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
222 elog "change it according to your needs. Use the torrc.sample that is in"
223 elog "that directory as a guide. Also, to have privoxy work with tor"
224 elog "just add the following line"
225 elog
226 elog "forward-socks4a / localhost:9050 ."
227 elog
228 elog "to /etc/privoxy/config. Notice the . at the end!"
229 elog
230 }