summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2005-02-10 21:12:02 +0000
committerGustavo Felisberto <humpback@gentoo.org>2005-02-10 21:12:02 +0000
commit215c03b7f939b36261a2d0a51c11a2d2a4b708d1 (patch)
tree5b3abd3852d5cdc3aea152f33f129af11b8c4823 /net-misc
parentStable on ppc. (diff)
downloadgentoo-2-215c03b7f939b36261a2d0a51c11a2d2a4b708d1.tar.gz
gentoo-2-215c03b7f939b36261a2d0a51c11a2d2a4b708d1.tar.bz2
gentoo-2-215c03b7f939b36261a2d0a51c11a2d2a4b708d1.zip
added -r1 that can use init.d script
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/tor/ChangeLog10
-rw-r--r--net-misc/tor/Manifest9
-rw-r--r--net-misc/tor/files/digest-tor-0.0.9.4-r11
-rw-r--r--net-misc/tor/files/tor.initd34
-rw-r--r--net-misc/tor/tor-0.0.9.4-r1.ebuild43
5 files changed, 93 insertions, 4 deletions
diff --git a/net-misc/tor/ChangeLog b/net-misc/tor/ChangeLog
index c49ff906d734..e885306b41ad 100644
--- a/net-misc/tor/ChangeLog
+++ b/net-misc/tor/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-misc/tor
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.26 2005/02/04 16:32:40 latexer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.27 2005/02/10 21:12:02 humpback Exp $
+
+*tor-0.0.9.4-r1 (10 Feb 2005)
+
+ 10 Feb 2005; Gustavo Felisberto <humpback@gentoo.org>; +files/tor.initd,
+ +tor-0.0.9.4-r1.ebuild:
+ Using ideas in bug #75381 from Faustus <orlovm@cs.bgu.ac.il> and after talking
+ to latexer i'm commiting this version that can use a init.d script for easier
+ usage.
*tor-0.0.9.4 (04 Feb 2005)
diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest
index febf6fe29b32..9a07cf9c382a 100644
--- a/net-misc/tor/Manifest
+++ b/net-misc/tor/Manifest
@@ -1,10 +1,13 @@
-MD5 38895f540946b4eb54ec8d057a756634 tor-0.0.8.1.ebuild 668
-MD5 53f9537e997679f73928328731c2d753 tor-0.0.9.4.ebuild 649
-MD5 745b12e968ec391563269494b605d01f tor-0.0.9.1.ebuild 642
MD5 ffe46d7dfae1f977b2e595054e80cc84 ChangeLog 3972
MD5 b5865f551fa6dd21658e0f8349638c9f metadata.xml 223
+MD5 38895f540946b4eb54ec8d057a756634 tor-0.0.8.1.ebuild 668
+MD5 745b12e968ec391563269494b605d01f tor-0.0.9.1.ebuild 642
MD5 f5c7bfadb9ef2707896da811543f07a0 tor-0.0.9.2.ebuild 647
+MD5 74551ee859e8803f323dbc53a111203e tor-0.0.9.4-r1.ebuild 1288
+MD5 53f9537e997679f73928328731c2d753 tor-0.0.9.4.ebuild 649
MD5 362a9474c51233cada80f970f45d67fa files/digest-tor-0.0.8.1 63
MD5 4be2cfc0de3dfbaf2afd6fa845201334 files/digest-tor-0.0.9.1 63
MD5 85bb8fc46ff4ad9f1ae8b6929e72e789 files/digest-tor-0.0.9.2 63
MD5 599eb69429f64d9001e57f8341fe150f files/digest-tor-0.0.9.4 63
+MD5 599eb69429f64d9001e57f8341fe150f files/digest-tor-0.0.9.4-r1 63
+MD5 b8c75dbed2f60d12eaa57c94147becc1 files/tor.initd 802
diff --git a/net-misc/tor/files/digest-tor-0.0.9.4-r1 b/net-misc/tor/files/digest-tor-0.0.9.4-r1
new file mode 100644
index 000000000000..6ede64b3f96e
--- /dev/null
+++ b/net-misc/tor/files/digest-tor-0.0.9.4-r1
@@ -0,0 +1 @@
+MD5 8917ea39485f18f35b8761790f5c6059 tor-0.0.9.4.tar.gz 542945
diff --git a/net-misc/tor/files/tor.initd b/net-misc/tor/files/tor.initd
new file mode 100644
index 000000000000..b714ee56fde8
--- /dev/null
+++ b/net-misc/tor/files/tor.initd
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/tor.initd,v 1.1 2005/02/10 21:12:02 humpback Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ # first check that it exists
+ if [ ! -f /etc/tor/torrc ] ; then
+ eerror "You need to setup /etc/tor/torrc first"
+ eerror "Example is in /etc/tor"
+ eerror "for info: info sockd.conf"
+ return 1
+ fi
+}
+
+
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting Tor"
+ HOME=/var/lib/tor
+ start-stop-daemon --start --quiet --chuid tor --exec /usr/bin/tor -- --runasdaemon 1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Tor"
+ start-stop-daemon --stop --quiet --chuid tor --exec /usr/bin/tor
+ eend $?
+}
diff --git a/net-misc/tor/tor-0.0.9.4-r1.ebuild b/net-misc/tor/tor-0.0.9.4-r1.ebuild
new file mode 100644
index 000000000000..96e6aa1b017d
--- /dev/null
+++ b/net-misc/tor/tor-0.0.9.4-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.0.9.4-r1.ebuild,v 1.1 2005/02/10 21:12:02 humpback Exp $
+
+inherit eutils
+
+DESCRIPTION="Anonymizing overlay network for TCP"
+HOMEPAGE="http://www.freehaven.net/tor/"
+SRC_URI="http://www.freehaven.net/tor/dist/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/openssl"
+RDEPEND="net-misc/tsocks"
+
+src_install() {
+ exeinto /etc/init.d ; newexe ${FILESDIR}/tor.initd tor
+ make DESTDIR=${D} install || die
+
+ dodoc README ChangeLog AUTHORS INSTALL \
+ doc/{CLIENTS,FAQ,HACKING,TODO} \
+ doc/{control-spec.txt,rend-spec.txt,tor-doc.css,tor-doc.html,tor-spec.txt}
+
+ enewgroup tor
+ enewuser tor -1 /bin/false /var/lib/tor tor
+ dodir /var/lib/tor
+ dodir /var/log/tor
+ fperms 750 /var/lib/tor /var/log/tor
+ fowners tor:tor /var/lib/tor /var/log/tor
+}
+
+pkg_postinst() {
+
+ einfo "You must create /etc/tor/torrc, you can use the sample but must add"
+ einfo "User tor, Group tor, DataDirectory /var/lib/tor/data and"
+ einfo "Log notice file /var/log/tor/tor.log"
+ einfo "If you use privoxy probably it is a good idea to add:"
+ einfo "forward-socks4a / localhost:9050 ."
+ einfo "to /etc/privoxy/config"
+}