View previous topic :: View next topic |
Author |
Message |
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Sun Apr 10, 2005 2:49 pm Post subject: ebuild for tor-0.1.0.3-rc |
|
|
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 |
|
|
w0rm n00b
Joined: 08 May 2004 Posts: 67
|
Posted: Tue Apr 12, 2005 3:20 pm Post subject: |
|
|
should be moved to Unsupported software forum or bugs.gentoo.org i think |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Tue Apr 12, 2005 6:32 pm Post subject: |
|
|
w0rm wrote: | should be moved to Unsupported software forum or bugs.gentoo.org i think |
Moved from P&P. |
|
Back to top |
|
|
Houdini Apprentice
Joined: 14 Jun 2002 Posts: 224 Location: New Mexico Tech, Socorro, NM
|
Posted: Thu Apr 21, 2005 7:02 pm Post subject: |
|
|
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 |
|
|
wiremore n00b
Joined: 27 Jan 2005 Posts: 11 Location: Here
|
Posted: Mon May 16, 2005 10:35 am Post subject: |
|
|
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 |
|
|
Houdini Apprentice
Joined: 14 Jun 2002 Posts: 224 Location: New Mexico Tech, Socorro, NM
|
Posted: Fri May 20, 2005 8:19 pm Post subject: |
|
|
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 |
|
|
|