summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-02-27 22:59:09 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-02-27 22:59:09 +0000
commitf24f50f0f56229cafdfd0973738a244bf038d39d (patch)
treec8346db61c69e379a574208c042e9f34687a40de /net-misc/tor
parentFix tests. Bug #356029. Thanks to Diego Elio Pettenò <flameeyes@gentoo.org> (diff)
downloadhistorical-f24f50f0f56229cafdfd0973738a244bf038d39d.tar.gz
historical-f24f50f0f56229cafdfd0973738a244bf038d39d.tar.bz2
historical-f24f50f0f56229cafdfd0973738a244bf038d39d.zip
Reverted removal of only stable ebuild on most arches.
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64 RepoMan-Options: --force
Diffstat (limited to 'net-misc/tor')
-rw-r--r--net-misc/tor/ChangeLog5
-rw-r--r--net-misc/tor/Manifest3
-rw-r--r--net-misc/tor/tor-0.2.1.29.ebuild79
3 files changed, 85 insertions, 2 deletions
diff --git a/net-misc/tor/ChangeLog b/net-misc/tor/ChangeLog
index f485662c5989..2f498ac5d077 100644
--- a/net-misc/tor/ChangeLog
+++ b/net-misc/tor/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/tor
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.238 2011/02/27 17:00:49 chiiph Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.239 2011/02/27 22:59:09 blueness Exp $
+
+ 27 Feb 2011; Anthony G. Basile <blueness@gentoo.org> +tor-0.2.1.29.ebuild:
+ Reverted removal of only stable ebuild on most arches.
*tor-0.2.1.30 (27 Feb 2011)
diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest
index 6b7b3ed2f03b..5eb0e847df8e 100644
--- a/net-misc/tor/Manifest
+++ b/net-misc/tor/Manifest
@@ -7,7 +7,8 @@ DIST tor-0.2.1.29.tar.gz 2521399 RMD160 2587fc9162852434a395ec796ebdcee1972d9aa9
DIST tor-0.2.1.30.tar.gz 2447447 RMD160 05e4a1443a5494982ef78dc61a088da26a09e9cf SHA1 f25b89d8c677c83ee0559036d5b13d49b272b3b0 SHA256 f352a1a8ffa469ae251324f89386074074bcffef1a7c6a72caa7e4c2d12ce109
DIST tor-0.2.2.22-alpha.tar.gz 2645384 RMD160 97ea57ac0eb060442ae83d145a4f477692d403c2 SHA1 196a6602fdcba9350b3d7099f68cee404f9e5485 SHA256 8ff8be912fcacdb58746852a54ca89d7b1fb09883510fb5303fba2ba5f357db0
EBUILD tor-0.2.1.29-r1.ebuild 2673 RMD160 829287986a7579f64ce24f1c67b2c83712331990 SHA1 c63edd67a02b42e238089da23565bf09f99a56c3 SHA256 a30242e1bb1318991ba2ed174b16a128b795d8bc3844c1c17663cdbff5b09ff3
+EBUILD tor-0.2.1.29.ebuild 2505 RMD160 1fa43d7e06fbc0d6d4ebe1a3896c2989016ac54c SHA1 55b0286b353911e8d91f1e01c1d01a22f323cf67 SHA256 4429817f8634c9cdbb129d8509e99381f181d2329be007f4050f6399eb6c8f5e
EBUILD tor-0.2.1.30.ebuild 2651 RMD160 0139bd891e80c692d6875675643a8e10cce32888 SHA1 fb73c4e0a737837dbf5e7e80a22601f8054721c9 SHA256 e2c9371b84400d21dc87ea290caf1437c0aa5c78f879d2b5008f755979143a34
EBUILD tor-0.2.2.22_alpha-r1.ebuild 2147 RMD160 e0ab6be90fd4ed9ee984c546dfb833b86b43e445 SHA1 a61b03743b8a7168d59c11b7055b96526613eacd SHA256 bceafec5e0923cd0e7e1a0461e192b9d7d380e3e4de3956ca5e8d15f76e0ce94
-MISC ChangeLog 34294 RMD160 b22a3cec703cdf2c48782295d2f7100141629436 SHA1 14f55bcd20f737cf5c1ab9da89a86a11dd5d1d86 SHA256 21b180a7790bd1f5bbf2329a7e3486d966d90671189dbeb8f64d02b0a02e6583
+MISC ChangeLog 34431 RMD160 0d575b167a6bd495d44725ad43d3975713063e1d SHA1 b7507575c3e3bd057ae65a9afdcf8803ca898ad7 SHA256 0ccc95395e48df887a487e352152c27a9f6e7d58162b9654e1c31d00acbf56c6
MISC metadata.xml 363 RMD160 b21bb38c95a109d36b252b8e48b9c6724f75721c SHA1 6354a0d53fa168ddcd650f87872124f1edb345ef SHA256 650857d8f3d615ee0d0bcdb3d600d98eb58bae0d98c021dc6ff5ec774d77a142
diff --git a/net-misc/tor/tor-0.2.1.29.ebuild b/net-misc/tor/tor-0.2.1.29.ebuild
new file mode 100644
index 000000000000..0202e52d6289
--- /dev/null
+++ b/net-misc/tor/tor-0.2.1.29.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.1.29.ebuild,v 1.8 2011/02/27 22:59:09 blueness Exp $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="Anonymizing overlay network for TCP"
+HOMEPAGE="http://www.torproject.org/"
+MY_PV=${PV/_/-}
+SRC_URI="http://www.torproject.org/dist/${PN}-${MY_PV}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="debug"
+
+DEPEND="dev-libs/openssl
+ >=dev-libs/libevent-1.2"
+# The tordns patch for tsocks avoids some leakage of information thus raising anonymity
+RDEPEND="${DEPEND}
+ net-proxy/tsocks[tordns]"
+
+pkg_setup() {
+ enewgroup tor
+ enewuser tor -1 -1 /var/lib/tor tor
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch
+ epatch "${FILESDIR}"/${PN}-0.2.1.19-logrotate.patch
+ # Normally tor uses a bundled libevent fragment to provide
+ # asynchronous DNS requests. This is generally a bad idea, but at
+ # the moment the official libevent does not have the 0x20 hack, so
+ # anonymity is higher with the bundled variant. Remove patch as
+ # soon as upstream has installed the autoconf option to use
+ # system's libevent. This hasn't happened, so we
+ # have to live with the bundled libevent for this release, as the
+ # current version in tree won't suffice for tor to build
+ # See http://bugs.noreply.org/flyspray/index.php?do=details&id=920
+ # for upstream's report
+ # Let's revisit this when libevent-2* is unmasked
+ # use bundledlibevent || epatch "${FILESDIR}"/${PN}-0.2.1.5-no-internal-libevent.patch
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/tor.initd-r4 tor
+ emake DESTDIR="${D}" install || die
+ keepdir /var/{lib,log,run}/tor
+
+ dodoc README ChangeLog AUTHORS ReleaseNotes \
+ doc/{HACKING,TODO} \
+ doc/spec/*.txt
+
+ fperms 750 /var/lib/tor /var/log/tor
+ fperms 755 /var/run/tor
+ fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor
+
+ insinto /etc/logrotate.d
+ newins contrib/tor.logrotate tor
+
+ # allow the tor user more open files to avoid errors, see bug 251171
+ insinto /etc/security/limits.d/
+ doins "${FILESDIR}"/tor.conf
+}
+
+pkg_postinst() {
+ elog "You must create /etc/tor/torrc, you can use the sample that is in that directory"
+ elog "To have privoxy and tor working together you must add:"
+ elog "forward-socks4a / localhost:9050 ."
+ elog "(notice the . at the end of the line)"
+ elog "to /etc/privoxy/config"
+}