Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/blueness:master commit in: net-misc/tor/files/, net-misc/tor/
Date: Sat, 26 Nov 2011 15:19:54
Message-Id: 8b4712ad2dbf7b5faee3d56a4832cfe487f9c700.blueness@gentoo
1 commit: 8b4712ad2dbf7b5faee3d56a4832cfe487f9c700
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 26 15:19:38 2011 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 26 15:19:38 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=8b4712ad
7
8 net-misc/tor: link error fixed, moved to tree
9
10 (Portage version: 2.1.10.11/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 ---
13 net-misc/tor/ChangeLog | 10 ---
14 net-misc/tor/Manifest | 19 -----
15 .../files/tor-0.2.2.24_alpha-respect-CFLAGS.patch | 24 ------
16 net-misc/tor/files/tor.confd | 3 -
17 net-misc/tor/files/tor.initd-r6 | 58 --------------
18 net-misc/tor/files/torrc-r1 | 7 --
19 net-misc/tor/files/torrc.sample.patch | 30 -------
20 net-misc/tor/metadata.xml | 19 -----
21 net-misc/tor/tor-0.2.3.8_alpha.ebuild | 84 --------------------
22 9 files changed, 0 insertions(+), 254 deletions(-)
23
24 diff --git a/net-misc/tor/ChangeLog b/net-misc/tor/ChangeLog
25 deleted file mode 100644
26 index 26927a3..0000000
27 --- a/net-misc/tor/ChangeLog
28 +++ /dev/null
29 @@ -1,10 +0,0 @@
30 -
31 -
32 -*tor-0.2.3.8_alpha (25 Nov 2011)
33 -
34 - 25 Nov 2011; Anthony G. Basile <blueness@g.o>
35 - +files/tor-0.2.2.24_alpha-respect-CFLAGS.patch, +tor-0.2.3.8_alpha.ebuild,
36 - +files/tor.confd, +files/tor.initd-r6, +files/torrc-r1,
37 - +files/torrc.sample.patch, +metadata.xml:
38 - testing because of link failure
39 -
40
41 diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest
42 deleted file mode 100644
43 index bb62441..0000000
44 --- a/net-misc/tor/Manifest
45 +++ /dev/null
46 @@ -1,19 +0,0 @@
47 ------BEGIN PGP SIGNED MESSAGE-----
48 -Hash: SHA256
49 -
50 -AUX tor-0.2.2.24_alpha-respect-CFLAGS.patch 1001 RMD160 f623fd1f40cd2175c0c5b6bea3441fc87f7e8d0a SHA1 c8634481cd8273f98945f17f297f2506331d3b8d SHA256 2107434c7e7243d24043cf87eeccf60643e0cf94e8a883ebd725c23e13e667e8
51 -AUX tor.confd 44 RMD160 d19946be72538d0826667730e9e9a1736b0385ff SHA1 f9a40fadd018794e537282344f01c609e4dbeac7 SHA256 41d780f291847e19f632428bbf27c3f289414afd237546d2974da1b75384c25c
52 -AUX tor.initd-r6 1601 RMD160 f1ef0dd197f051a826e3785348a2a8cc490c04eb SHA1 ee9f5116c3a69a7adb2be15ce14e3904261e84c4 SHA256 67d5bb618cfbc4d4c05e5589bfd2e24f6563c4e3c6ba1d6c472b285b4480e20d
53 -AUX torrc-r1 140 RMD160 4949b9c875ee65d876381015eb7f00a2c611494c SHA1 52e5bc3cfb19f8c912697e5489cc1b7527f8059e SHA256 6766943a69e4784d02f173b5d74b8eb9345f878ef4eb36edab34bbf649ef2738
54 -AUX torrc.sample.patch 1281 RMD160 dfc56376c636acbf965ae80237873489659d46a2 SHA1 01ebc6c28b4d1753266bf34ef72de92937865c4f SHA256 b60b3f454eb0d475c6746ee18b70f1681f8653a4b2e032889135f8939dd13e14
55 -DIST tor-0.2.3.8-alpha.tar.gz 2909997 RMD160 eec1f3b549b1513d2c39791c79a18496d97a4809 SHA1 7ca5c1cfa5a1a3d1c923298a47fe2430495bedcc SHA256 b7c40f5f4fbd0a42b6863c29a69cc7b06d9e1cc9609f934a550f2019426d8dc4
56 -EBUILD tor-0.2.3.8_alpha.ebuild 2364 RMD160 ffb1a886a8f3afd50448da52899ab29e4a3a8150 SHA1 010227d454fe0ff6691447ebbddf25fee097a9a4 SHA256 43cfd7470c48c1232556b1fcac24f029356643a66e930c7948bb45aacabab923
57 -MISC ChangeLog 305 RMD160 1946e00c0b3eba0f187616b56b2588f8982b0bd3 SHA1 e6e7591a5ee45a288ac4f313942c5973506b77d0 SHA256 6c5edbd4f0db80cf5a3b06ea533187f9df1596ff2d86774a61280d16a2ff476e
58 -MISC metadata.xml 690 RMD160 1ae6238c81555b6b4bf2f11479e18a5acdb7b418 SHA1 920cafba2dacb7a034e32f782467c96532465434 SHA256 117ed70261e343abf65a93351f6ba7a5bca941c183bf79168953a3efc5afb0b5
59 ------BEGIN PGP SIGNATURE-----
60 -Version: GnuPG v2.0.17 (GNU/Linux)
61 -
62 -iEYEAREIAAYFAk7PkZ8ACgkQl5yvQNBFVTVY8QCcC0Z4VgYfJA2CB4b2c3GEpv+Z
63 -sewAnjC4Sp1NHnMKMZdAXta+bPkNcHkB
64 -=Swca
65 ------END PGP SIGNATURE-----
66
67 diff --git a/net-misc/tor/files/tor-0.2.2.24_alpha-respect-CFLAGS.patch b/net-misc/tor/files/tor-0.2.2.24_alpha-respect-CFLAGS.patch
68 deleted file mode 100644
69 index 86b797b..0000000
70 --- a/net-misc/tor/files/tor-0.2.2.24_alpha-respect-CFLAGS.patch
71 +++ /dev/null
72 @@ -1,24 +0,0 @@
73 -diff -Naur tor-0.2.2.24-alpha.orig/configure.in tor-0.2.2.24-alpha/configure.in
74 ---- tor-0.2.2.24-alpha.orig/configure.in 2011-04-08 16:32:17.000000000 -0400
75 -+++ tor-0.2.2.24-alpha/configure.in 2011-04-18 07:10:57.000000000 -0400
76 -@@ -9,6 +9,11 @@
77 -
78 - AC_CANONICAL_HOST
79 -
80 -+GENTOO_CFLAGS="$CFLAGS"
81 -+GENTOO_LDFLAGS="$LDFLAGS"
82 -+CFLAGS=
83 -+LDFLAGS=
84 -+
85 - if test -f /etc/redhat-release ; then
86 - if test -f /usr/kerberos/include ; then
87 - CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
88 -@@ -971,6 +976,8 @@
89 -
90 -
91 - CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent $TOR_CPPFLAGS_openssl $TOR_CPPFLAGS_zlib"
92 -+CFLAGS="$CFLAGS $GENTOO_CFLAGS"
93 -+LDFLAGS="$LDFLAGS $GENTOO_LDFLAGS"
94 -
95 - AC_CONFIG_FILES([Makefile tor.spec Doxyfile contrib/tor.sh contrib/torctl contrib/torify contrib/tor.logrotate contrib/Makefile src/config/torrc.sample src/Makefile doc/Makefile src/config/Makefile src/common/Makefile src/or/Makefile src/test/Makefile src/win32/Makefile src/tools/Makefile contrib/suse/Makefile contrib/suse/tor.sh])
96 - AC_OUTPUT
97
98 diff --git a/net-misc/tor/files/tor.confd b/net-misc/tor/files/tor.confd
99 deleted file mode 100644
100 index 4195bf3..0000000
101 --- a/net-misc/tor/files/tor.confd
102 +++ /dev/null
103 @@ -1,3 +0,0 @@
104 -#
105 -# Set the file limit
106 -rc_ulimit="-n 30000"
107
108 diff --git a/net-misc/tor/files/tor.initd-r6 b/net-misc/tor/files/tor.initd-r6
109 deleted file mode 100644
110 index 55204cc..0000000
111 --- a/net-misc/tor/files/tor.initd-r6
112 +++ /dev/null
113 @@ -1,58 +0,0 @@
114 -#!/sbin/runscript
115 -# Copyright 1999-2011 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/tor.initd-r6,v 1.5 2011/09/14 10:53:02 blueness Exp $
118 -
119 -extra_commands="checkconfig reload"
120 -PIDFILE=/var/run/tor/tor.pid
121 -CONFFILE=/etc/tor/torrc
122 -
123 -depend() {
124 - need net
125 -}
126 -
127 -checkconfig() {
128 - # first check that it exists
129 - if [ ! -f ${CONFFILE} ] ; then
130 - eerror "You need to setup ${CONFFILE} first"
131 - eerror "Example is in ${CONFFILE}.sample"
132 - return 1
133 - fi
134 -
135 - # now verify whether the configuration is valid
136 - /usr/bin/tor --verify-config -f ${CONFFILE} > /dev/null 2>&1
137 - if [ $? -eq 0 ] ; then
138 - einfo "Tor configuration (${CONFFILE}) is valid."
139 - return 0
140 - else
141 - eerror "Tor configuration (${CONFFILE}) not valid."
142 - /usr/bin/tor --verify-config -f ${CONFFILE}
143 - return 1
144 - fi
145 -}
146 -
147 -start() {
148 - checkconfig || return 1
149 - checkpath -d -m 0755 -o tor:tor /var/run/tor
150 - ebegin "Starting Tor"
151 - HOME=/var/lib/tor
152 - start-stop-daemon --start --pidfile "${PIDFILE}" --quiet --exec /usr/bin/tor -- -f "${CONFFILE}" --runasdaemon 1 --PidFile "${PIDFILE}" > /dev/null 2>&1
153 - eend $?
154 -}
155 -
156 -stop() {
157 - ebegin "Stopping Tor"
158 - start-stop-daemon --stop --pidfile "${PIDFILE}" --exec /usr/bin/tor -- --PidFile "${PIDFILE}"
159 - eend $?
160 -}
161 -
162 -reload() {
163 - if [ ! -f ${PIDFILE} ]; then
164 - eerror "${SVCNAME} isn't running"
165 - return 1
166 - fi
167 - checkconfig || return 1
168 - ebegin "Reloading Tor configuration"
169 - start-stop-daemon --signal HUP --pidfile ${PIDFILE}
170 - eend $?
171 -}
172
173 diff --git a/net-misc/tor/files/torrc-r1 b/net-misc/tor/files/torrc-r1
174 deleted file mode 100644
175 index 322a794..0000000
176 --- a/net-misc/tor/files/torrc-r1
177 +++ /dev/null
178 @@ -1,7 +0,0 @@
179 -#
180 -# Minimal torrc so tor will work out of the box
181 -#
182 -User tor
183 -PIDFile /var/run/tor/tor.pid
184 -Log notice syslog
185 -DataDirectory /var/lib/tor/data
186
187 diff --git a/net-misc/tor/files/torrc.sample.patch b/net-misc/tor/files/torrc.sample.patch
188 deleted file mode 100644
189 index 4a1592a..0000000
190 --- a/net-misc/tor/files/torrc.sample.patch
191 +++ /dev/null
192 @@ -1,30 +0,0 @@
193 -diff -Nuar tor-0.2.2.32.orig/src/config/torrc.sample.in tor-0.2.2.32/src/config/torrc.sample.in
194 ---- tor-0.2.2.32.orig/src/config/torrc.sample.in 2011-08-29 23:13:09.000000000 -0400
195 -+++ tor-0.2.2.32/src/config/torrc.sample.in 2011-08-29 23:14:19.000000000 -0400
196 -@@ -12,6 +12,10 @@
197 - ## Tor will look for this file in various places based on your platform:
198 - ## https://wiki.torproject.org/noreply/TheOnionRouter/TorFAQ#torrc
199 -
200 -+## Default username and group the server will run as
201 -+User tor
202 -+
203 -+PIDFile /var/run/tor/tor.pid
204 -
205 - ## Replace this with "SocksPort 0" if you plan to run Tor only as a
206 - ## relay, and not make any local application connections yourself.
207 -@@ -40,6 +44,7 @@
208 - #Log notice syslog
209 - ## To send all messages to stderr:
210 - #Log debug stderr
211 -+Log notice syslog
212 -
213 - ## Uncomment this to start the process in the background... or use
214 - ## --runasdaemon 1 on the command line. This is ignored on Windows;
215 -@@ -49,6 +54,7 @@
216 - ## The directory for keeping all the keys/etc. By default, we store
217 - ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
218 - #DataDirectory @LOCALSTATEDIR@/lib/tor
219 -+DataDirectory /var/lib/tor/data
220 -
221 - ## The port on which Tor will listen for local connections from Tor
222 - ## controller applications, as documented in control-spec.txt.
223
224 diff --git a/net-misc/tor/metadata.xml b/net-misc/tor/metadata.xml
225 deleted file mode 100644
226 index 9381df6..0000000
227 --- a/net-misc/tor/metadata.xml
228 +++ /dev/null
229 @@ -1,19 +0,0 @@
230 -<?xml version="1.0" encoding="UTF-8"?>
231 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
232 -<pkgmetadata>
233 - <maintainer>
234 - <email>blueness@g.o</email>
235 - <name>Anthony G. Basile</name>
236 - </maintainer>
237 - <maintainer>
238 - <email>chiiph@g.o</email>
239 - <name>Tomás Touceda</name>
240 - </maintainer>
241 - <use>
242 - <flag name='tor-hardening'>Compile tor with hardening on vanilla compilers/linkers</flag>
243 - <flag name='transparent-proxy'>Enable transparent proxying</flag>
244 - <flag name='bufferevents'>Use Libevent's buffered IO</flag>
245 - <flag name='nat-pmp'>Enable NAT Port Mapping Protocol</flag>
246 - <flag name='upnp'>Enable Universal Plug and Play</flag>
247 - </use>
248 -</pkgmetadata>
249
250 diff --git a/net-misc/tor/tor-0.2.3.8_alpha.ebuild b/net-misc/tor/tor-0.2.3.8_alpha.ebuild
251 deleted file mode 100644
252 index 3d77e62..0000000
253 --- a/net-misc/tor/tor-0.2.3.8_alpha.ebuild
254 +++ /dev/null
255 @@ -1,84 +0,0 @@
256 -# Copyright 1999-2011 Gentoo Foundation
257 -# Distributed under the terms of the GNU General Public License v2
258 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.3.7_alpha.ebuild,v 1.1 2011/10/31 10:16:33 blueness Exp $
259 -
260 -EAPI=4
261 -
262 -inherit autotools eutils flag-o-matic versionator
263 -
264 -MY_PV="$(replace_version_separator 4 -)"
265 -MY_PF="${PN}-${MY_PV}"
266 -DESCRIPTION="Anonymizing overlay network for TCP"
267 -HOMEPAGE="http://www.torproject.org/"
268 -SRC_URI="http://www.torproject.org/dist/${MY_PF}.tar.gz"
269 -S="${WORKDIR}/${MY_PF}"
270 -
271 -LICENSE="BSD"
272 -SLOT="0"
273 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
274 -IUSE="+bufferevents doc nat-pmp tor-hardening transparent-proxy threads upnp"
275 -
276 -DEPEND="dev-libs/openssl
277 - >=dev-libs/libevent-2.0.14
278 - nat-pmp? ( net-libs/libnatpmp )
279 - upnp? ( <net-libs/miniupnpc-1.6 )"
280 -RDEPEND="${DEPEND}"
281 -
282 -pkg_setup() {
283 - enewgroup tor
284 - enewuser tor -1 -1 /var/lib/tor tor
285 -}
286 -
287 -src_prepare() {
288 - epatch "${FILESDIR}"/torrc.sample.patch
289 -
290 - einfo "Regenerating autotools files ..."
291 - epatch "${FILESDIR}"/${PN}-0.2.2.24_alpha-respect-CFLAGS.patch
292 - eautoreconf
293 -}
294 -
295 -src_configure() {
296 - # Upstream isn't sure of all the user provided CFLAGS that
297 - # will break tor, but does recommend against -fstrict-aliasing.
298 - # We'll filter-flags them here as we encounter them.
299 - filter-flags -fstrict-aliasing
300 - econf --docdir=/usr/share/doc/${PF} \
301 - $(use_enable bufferevents) \
302 - $(use_enable doc asciidoc) \
303 - $(use_enable nat-pmp) \
304 - $(use_enable tor-hardening gcc-hardening) \
305 - $(use_enable tor-hardening linker-hardening) \
306 - $(use_enable transparent-proxy transparent) \
307 - $(use_enable threads) \
308 - $(use_enable upnp)
309 -}
310 -
311 -src_install() {
312 - newconfd "${FILESDIR}"/tor.confd tor
313 - newinitd "${FILESDIR}"/tor.initd-r6 tor
314 - emake DESTDIR="${D}" install
315 - keepdir /var/lib/tor
316 -
317 - dodoc README ChangeLog ReleaseNotes \
318 - doc/{HACKING,TODO} \
319 - doc/spec/README
320 -
321 - fperms 750 /var/lib/tor
322 - fowners tor:tor /var/lib/tor
323 -
324 - insinto /etc/tor/
325 - newins "${FILESDIR}"/torrc-r1 torrc
326 -}
327 -
328 -pkg_postinst() {
329 - elog
330 - elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
331 - elog "change it according to your needs. Use the torrc.sample that is in"
332 - elog "that directory as a guide. Also, to have privoxy work with tor"
333 - elog "just add the following line"
334 - elog
335 - elog "forward-socks4a / localhost:9050 ."
336 - elog
337 - elog "to /etc/privoxy/config. Notice the . at the end!"
338 - elog
339 -}