Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild for tor-0.1.0.3-rc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Sun Apr 10, 2005 2:49 pm    Post subject: ebuild for tor-0.1.0.3-rc Reply with quote

For those who want it...
Code:
# 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.7.ebuild,v 1.2 2005/04/08 13:55:48 gustavoz Exp $

inherit eutils

S="${WORKDIR}/${P}-rc"
DESCRIPTION="Anonymizing overlay network for TCP"
HOMEPAGE="http://www.freehaven.net/tor/"
SRC_URI="http://tor.eff.org/dist/${P}-rc.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64 ~ppc64 ~sparc"
IUSE=""

DEPEND=">=dev-libs/openssl-0.9.7e >=dev-libs/libevent-1.0b"
RDEPEND=">=net-misc/tsocks-1.8_beta4"


src_unpack() {
   unpack ${A}
#   cd ${S}/src/config
#   epatch ${FILESDIR}/torrc.sample.patch-00
}

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 that is in that directory"
   einfo "To have privoxy and tor working together you must add:"
   einfo "forward-socks4a / localhost:9050 ."
   einfo "to /etc/privoxy/config"
}


Just save as tor-0.1.0.3-r1.ebuild in your PORTDIR_OVERLAY (/usr/local/portage/net-misc/tor/)
You won't believe the speed increase over the 0.0.9.x version :)
Back to top
View user's profile Send private message
w0rm
n00b
n00b


Joined: 08 May 2004
Posts: 67

PostPosted: Tue Apr 12, 2005 3:20 pm    Post subject: Reply with quote

should be moved to Unsupported software forum or bugs.gentoo.org i think :)
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Apr 12, 2005 6:32 pm    Post subject: Reply with quote

w0rm wrote:
should be moved to Unsupported software forum or bugs.gentoo.org i think :)

Moved from P&P.
Back to top
View user's profile Send private message
Houdini
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 224
Location: New Mexico Tech, Socorro, NM

PostPosted: Thu Apr 21, 2005 7:02 pm    Post subject: Reply with quote

For some reason, this didn't install a script in /etc/init.d/. Is there a reasonable one to use, or should I just roll my own?
_________________
^]:wq
Back to top
View user's profile Send private message
wiremore
n00b
n00b


Joined: 27 Jan 2005
Posts: 11
Location: Here

PostPosted: Mon May 16, 2005 10:35 am    Post subject: Reply with quote

there should be an initscripts at /usr/portage/net-misc/tor/files/tor.initd. this will work fine for the newer versions.

Nossie's ebuild works for the newer 0.1.0.6 also, just change the ebuild name approprately.
Back to top
View user's profile Send private message
Houdini
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 224
Location: New Mexico Tech, Socorro, NM

PostPosted: Fri May 20, 2005 8:19 pm    Post subject: Reply with quote

tsocks moved. Patch:

Code:
--- tor-0.1.0.3-r1.ebuild.orig  2005-05-20 20:26:10.129930376 +0000
+++ tor-0.1.0.3-r1.ebuild       2005-05-20 20:25:15.730200392 +0000
@@ -16,7 +16,7 @@
 IUSE=""
 
 DEPEND=">=dev-libs/openssl-0.9.7e >=dev-libs/libevent-1.0b"
-RDEPEND=">=net-misc/tsocks-1.8_beta4"
+RDEPEND=">=net-proxy/tsocks-1.8_beta4"
 
 src_unpack() {
        unpack ${A}

_________________
^]:wq
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum