diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2008-08-03 16:28:11 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2008-08-03 16:28:11 +0000 |
commit | cdbc06d665774bfbd11d27c09256cf202dfc721c (patch) | |
tree | 1fda3573dcfdcb9e285416ef3be65e854bd9ba85 /net-misc/tor | |
parent | removing mail-client/claws-mail-pdf-viewer for license issues, 30 days are over (diff) | |
download | gentoo-2-cdbc06d665774bfbd11d27c09256cf202dfc721c.tar.gz gentoo-2-cdbc06d665774bfbd11d27c09256cf202dfc721c.tar.bz2 gentoo-2-cdbc06d665774bfbd11d27c09256cf202dfc721c.zip |
version bump for bug 233612 by puchu <rauchwolke AT gmx DOT net>
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-misc/tor')
-rw-r--r-- | net-misc/tor/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/tor/files/tor-0.2.0.30-logrotate.patch | 10 | ||||
-rw-r--r-- | net-misc/tor/tor-0.2.0.30.ebuild | 69 |
3 files changed, 86 insertions, 1 deletions
diff --git a/net-misc/tor/ChangeLog b/net-misc/tor/ChangeLog index 091eb81cc255..6e2f2bf89001 100644 --- a/net-misc/tor/ChangeLog +++ b/net-misc/tor/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/tor # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.122 2008/05/29 10:22:36 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.123 2008/08/03 16:28:10 opfer Exp $ + +*tor-0.2.0.30 (03 Aug 2008) + + 03 Aug 2008; Christian Faulhammer <opfer@gentoo.org> + +files/tor-0.2.0.30-logrotate.patch, +tor-0.2.0.30.ebuild: + version bump for bug 233612 by puchu <rauchwolke AT gmx DOT net> 29 May 2008; Christian Faulhammer <opfer@gentoo.org> -tor-0.1.2.19.ebuild: clean up diff --git a/net-misc/tor/files/tor-0.2.0.30-logrotate.patch b/net-misc/tor/files/tor-0.2.0.30-logrotate.patch new file mode 100644 index 000000000000..d597a91fb110 --- /dev/null +++ b/net-misc/tor/files/tor-0.2.0.30-logrotate.patch @@ -0,0 +1,10 @@ +--- contrib/tor.logrotate.in.ori 2008-08-01 17:12:35.500216496 +0200 ++++ contrib/tor.logrotate.in 2008-08-01 17:12:46.352234096 +0200 +@@ -7,6 +7,6 @@ + notifempty + sharedscripts + postrotate +- /etc/init.d/tor reload > /dev/null ++ /etc/init.d/tor reload > /dev/null || true + endscript + } diff --git a/net-misc/tor/tor-0.2.0.30.ebuild b/net-misc/tor/tor-0.2.0.30.ebuild new file mode 100644 index 000000000000..ee4726c3a6ab --- /dev/null +++ b/net-misc/tor/tor-0.2.0.30.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.0.30.ebuild,v 1.1 2008/08/03 16:28:10 opfer Exp $ + +inherit eutils + +DESCRIPTION="Anonymizing overlay network for TCP" +HOMEPAGE="http://tor.eff.org" +MY_PV=${PV/_/-} +SRC_URI="http://tor.eff.org/dist/${PN}-${MY_PV}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="debug logrotate" + +DEPEND="dev-libs/openssl + >=dev-libs/libevent-1.2" +RDEPEND="${DEPEND} + net-proxy/tsocks" + +pkg_setup() { + enewgroup tor + enewuser tor -1 -1 /var/lib/tor tor +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch + epatch "${FILESDIR}"/${P}-logrotate.patch +} + +src_compile() { + econf $(use_enable debug) + emake || die +} + +src_install() { + newinitd "${FILESDIR}"/tor.initd-r3 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 + + if use logrotate; then + sed -e "s:/lib::" \ + -e "s:/rc.d::" \ + -e "s:\\*:\\*.:" \ + -e "s:sharedscripts:create 0640 tor tor\n\tsharedscripts:" -i contrib/tor.logrotate || die + insinto /etc/logrotate.d + newins contrib/tor.logrotate tor + fi +} + +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" +} |