diff options
author | 2009-12-27 17:27:28 +0000 | |
---|---|---|
committer | 2009-12-27 17:27:28 +0000 | |
commit | c96742ce1239744482a9a248cc4299f99aa4d8a0 (patch) | |
tree | 62bf0b2180b108f846fa458da398c019f4f163ea /net-misc/tor | |
parent | arm stable (diff) | |
download | historical-c96742ce1239744482a9a248cc4299f99aa4d8a0.tar.gz historical-c96742ce1239744482a9a248cc4299f99aa4d8a0.tar.bz2 historical-c96742ce1239744482a9a248cc4299f99aa4d8a0.zip |
clean up
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'net-misc/tor')
-rw-r--r-- | net-misc/tor/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/tor/Manifest | 18 | ||||
-rw-r--r-- | net-misc/tor/files/tor-0.2.0.30-logrotate.patch | 10 | ||||
-rw-r--r-- | net-misc/tor/files/tor-0.2.0.33-no-internal-libevent.patch | 124 | ||||
-rw-r--r-- | net-misc/tor/tor-0.2.0.35.ebuild | 88 | ||||
-rw-r--r-- | net-misc/tor/tor-0.2.1.19-r1.ebuild | 78 | ||||
-rw-r--r-- | net-misc/tor/tor-0.2.1.19.ebuild | 82 |
7 files changed, 18 insertions, 390 deletions
diff --git a/net-misc/tor/ChangeLog b/net-misc/tor/ChangeLog index 0106fa10f550..c720cb1fbb84 100644 --- a/net-misc/tor/ChangeLog +++ b/net-misc/tor/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/tor # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.188 2009/12/26 20:32:04 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.189 2009/12/27 17:27:23 fauli Exp $ + + 27 Dec 2009; Christian Faulhammer <fauli@gentoo.org> + -files/tor-0.2.0.30-logrotate.patch, + -files/tor-0.2.0.33-no-internal-libevent.patch, -tor-0.2.0.35.ebuild, + -tor-0.2.1.19.ebuild, -tor-0.2.1.19-r1.ebuild: + clean up 26 Dec 2009; Raúl Porcel <armin76@gentoo.org> tor-0.2.1.19-r2.ebuild: sparc stable wrt #294297 diff --git a/net-misc/tor/Manifest b/net-misc/tor/Manifest index dc431993c122..66fe420e44af 100644 --- a/net-misc/tor/Manifest +++ b/net-misc/tor/Manifest @@ -1,17 +1,21 @@ -AUX tor-0.2.0.30-logrotate.patch 291 RMD160 256507536cb7629a21c855816428885b3587f14c SHA1 e1592a63df6677c8e2537ae5363eda39c4a3aeb1 SHA256 8c8c4d33d758127eedb234cda6836be625188c09e9eadfea290f6cf575516c22 -AUX tor-0.2.0.33-no-internal-libevent.patch 5026 RMD160 c263d14eaf776ba1ba90bdc86308219dc802705c SHA1 7e9b1595380a518f849901dc7419a3cb4acf5bf3 SHA256 cc57416b5b5fb8562fcf69f5b096a168bf693cd08b4bd02105d84531192f7647 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX tor-0.2.1.19-logrotate.patch 746 RMD160 34ae926877e1b388c5e1c3cf0a16feba8b3f010b SHA1 3df06da077694b2312cc33a76db4a9e27a602d78 SHA256 60370cb70e089f4e675f39610c651537d0df5e5d1066c36417f479738549bec3 AUX tor-0.2.1.19-openssl.patch 3573 RMD160 be6a0d1186e433646b0286082b75d4dd4f4cf764 SHA1 879ecc0dbdf6e0deb72e865120b75eabddfc4933 SHA256 2ff2c5655fc2c454984aebc46b26aa35537db265bdeefd5d3f0f680f730729ce AUX tor.conf 89 RMD160 3ed95351d715ed05db3baa3dd8802832cb06989f SHA1 ec2a2cb216c35e37803b29a508d0914639a7f82b SHA256 3ed15ecce5c312fb4d50e0e8f3a645d67c660e2930a9dbadf010803b8fd095a0 AUX tor.initd-r4 1566 RMD160 95692924474ad8e76dfdd60c44a9b4a618356d75 SHA1 cefe786a37b042edde03c00cb0500d6aade6cdd9 SHA256 aa5733badb87ebfe5efd0c3750a24f4589a480555f7c6ed579aa1c621ad09efc AUX torrc.sample-0.1.2.6.patch 1145 RMD160 3656774f05abe54ec22a121954a1d437fe1da520 SHA1 a0c658eafc8feb134e4ce8c7a5cdf94074ad79f5 SHA256 5b94e1d8c097626402b0b388fefb15f11b95db112b23d358e04cfe55331911f1 -DIST tor-0.2.0.35.tar.gz 2221852 RMD160 ecc98c602b5c153a8aa8f6e651166705bc05c972 SHA1 6216887e0575c4a18f46e53faea1ebdb04bf7905 SHA256 7180c56c11e13d1ca860e3773ddfb2c9f951900670224a0850766795ac94b62e DIST tor-0.2.1.19.tar.gz 2409484 RMD160 3606cc574ade12adfa8f3c7a180958865be077e8 SHA1 8a8af1354ab5b3fea58e2bbffeddc05e3dfedb17 SHA256 cb4f88ad30d6ba4c015734f3058a6e35151cff586f7708691d52d289ee78d183 DIST tor-0.2.1.20.tar.gz 2412059 RMD160 ae4a4ab22fa9eb5c011c652ddd13033407f48e5a SHA1 bfc6c7e9ccee23abc4e97ca4ba98aa3ad7784262 SHA256 0fa268ef7904dd4e4456525285d49ed3d3ac6fd6df4686de20d9077c05ae0f60 -EBUILD tor-0.2.0.35.ebuild 2633 RMD160 5ee69ef44bbc2cd20d1a14b2d3874b62a3010b83 SHA1 811da83d54e661416e076fecbdf651ed365653ae SHA256 c5a94aebd9b27c3916b4e9b111685672b87d12a107a4b07ec98ca61703f793fd -EBUILD tor-0.2.1.19-r1.ebuild 2400 RMD160 76baae922ad5d6c1e865c009ba2b3007789ea480 SHA1 4aae34035c3f4f05904191c81571129956c7835b SHA256 9091a849f234062176069c598a050f4e466c94fdd27bb654fb324314c15c5756 EBUILD tor-0.2.1.19-r2.ebuild 2438 RMD160 0671bf53f61281c85922ddaec76c3323fc14ad62 SHA1 8cb9398a93d227afa248c2675cfbbfb4339ed5de SHA256 e7abdfeb3fcfdf3617f4e53caa0d31fc898547097db963cbdaa381a2ee042550 -EBUILD tor-0.2.1.19.ebuild 2561 RMD160 e0bec510c6f8b745989dc93578a5530e8737a083 SHA1 604ed9283c2db509c823a3b0117c4d6df7561fcd SHA256 bd2decda560222e652c2f6aec87d7f2bb7dc9abd5df6551f525992cac9adac7c EBUILD tor-0.2.1.20-r1.ebuild 2461 RMD160 e21a870a04210a336e5943f5abf58afa31ca9343 SHA1 ff7311ba01776d076bac97df2d73913803660887 SHA256 8fd11448ffd1995d895b21a2d06420fb9693286909b201cf490ed309eb621464 -MISC ChangeLog 28019 RMD160 1271809238c757f713be62bebe4be3be7d7f9b19 SHA1 d202166c19d9d629ef70675a89ba6887c4da31f0 SHA256 0d2599f97f85739f8fa0b79a0bb8b489434ed9c21c38ea23757f66e1b602c2b5 +MISC ChangeLog 28244 RMD160 b25f9a45de3dae56c5471a6567465bb288056f3e SHA1 707113c3c0fe21b71ac169dc29f9aa943eb35bd0 SHA256 5521528b58bf2f0aae8af5cacf58b7e1ae79ac5c1754acd8136a8acf2e9bc616 MISC metadata.xml 482 RMD160 8dca0b35cd6e529c49031ba66a4c29fd3075a131 SHA1 909c1148521f411a17bcfd3ec97cc1ccadd4f580 SHA256 43850c54cf0ec6651bf3c4ef826b28d84e284e60891ca39c20284e2a3bbdcec9 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAks3mREACgkQNQqtfCuFneM5zACdHfHEbT/4XFNagUzaMK4x8Pe6 +bdkAn2pUrkGZwuBzUDaVs2uUiGaRKZta +=BX3M +-----END PGP SIGNATURE----- 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 deleted file mode 100644 index d597a91fb110..000000000000 --- a/net-misc/tor/files/tor-0.2.0.30-logrotate.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- 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/files/tor-0.2.0.33-no-internal-libevent.patch b/net-misc/tor/files/tor-0.2.0.33-no-internal-libevent.patch deleted file mode 100644 index 7c565358ce71..000000000000 --- a/net-misc/tor/files/tor-0.2.0.33-no-internal-libevent.patch +++ /dev/null @@ -1,124 +0,0 @@ -diff -u src/or.orig/dns.c src/or/dns.c ---- src/or.orig/dns.c 2009-01-14 20:58:15.000000000 +0100 -+++ src/or/dns.c 2009-01-29 14:51:21.000000000 +0100 -@@ -16,7 +16,7 @@ - - #include "or.h" - #include "ht.h" --#include "eventdns.h" -+#include <evdns.h> - - /** Longest hostname we're willing to resolve. */ - #define MAX_ADDRESSLEN 256 -diff -u src/or.orig/dnsserv.c src/or/dnsserv.c ---- src/or.orig/dnsserv.c 2008-02-26 20:56:28.000000000 +0100 -+++ src/or/dnsserv.c 2009-01-29 14:51:34.000000000 +0100 -@@ -12,7 +12,7 @@ - **/ - - #include "or.h" --#include "eventdns.h" -+#include <evdns.h> - - /* Helper function: called by evdns whenever the client sends a request to our - * DNSPort. We need to eventually answer the request <b>req</b>. -diff -u src/or.orig/Makefile.am src/or/Makefile.am ---- src/or.orig/Makefile.am 2008-03-11 19:57:51.000000000 +0100 -+++ src/or/Makefile.am 2009-01-29 14:50:44.000000000 +0100 -@@ -20,7 +20,6 @@ - networkstatus.c \ - onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \ - rendservice.c rephist.c router.c routerlist.c routerparse.c \ -- eventdns.c \ - tor_main.c - - AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \ -@@ -42,7 +41,6 @@ - networkstatus.c \ - onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \ - rendservice.c rephist.c router.c routerlist.c routerparse.c \ -- eventdns.c \ - test_data.c test.c - - test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ -@@ -50,7 +48,7 @@ - test_LDADD = ../common/libor.a ../common/libor-crypto.a \ - -lz -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@ - --noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i -+noinst_HEADERS = or.h micro-revision.i - - tor_main.o: micro-revision.i - -diff -u src/or.orig/Makefile.in src/or/Makefile.in ---- src/or.orig/Makefile.in 2009-01-21 18:38:07.000000000 +0100 -+++ src/or/Makefile.in 2009-01-29 14:50:29.000000000 +0100 -@@ -56,7 +56,7 @@ - dirvote.c dns.c dnsserv.c geoip.c hibernate.c main.c ntmain.c \ - networkstatus.c onion.c policies.c relay.c rendcommon.c \ - rendclient.c rendmid.c rendservice.c rephist.c router.c \ -- routerlist.c routerparse.c eventdns.c test_data.c test.c -+ routerlist.c routerparse.c test_data.c test.c - @BUILD_NT_SERVICES_TRUE@am__objects_1 = ntmain.$(OBJEXT) - am_test_OBJECTS = buffers.$(OBJEXT) circuitbuild.$(OBJEXT) \ - circuitlist.$(OBJEXT) circuituse.$(OBJEXT) command.$(OBJEXT) \ -@@ -69,7 +69,7 @@ - onion.$(OBJEXT) policies.$(OBJEXT) relay.$(OBJEXT) \ - rendcommon.$(OBJEXT) rendclient.$(OBJEXT) rendmid.$(OBJEXT) \ - rendservice.$(OBJEXT) rephist.$(OBJEXT) router.$(OBJEXT) \ -- routerlist.$(OBJEXT) routerparse.$(OBJEXT) eventdns.$(OBJEXT) \ -+ routerlist.$(OBJEXT) routerparse.$(OBJEXT) \ - test_data.$(OBJEXT) test.$(OBJEXT) - test_OBJECTS = $(am_test_OBJECTS) - test_DEPENDENCIES = ../common/libor.a ../common/libor-crypto.a -@@ -81,7 +81,7 @@ - dirvote.c dns.c dnsserv.c geoip.c hibernate.c main.c ntmain.c \ - networkstatus.c onion.c policies.c relay.c rendcommon.c \ - rendclient.c rendmid.c rendservice.c rephist.c router.c \ -- routerlist.c routerparse.c eventdns.c tor_main.c -+ routerlist.c routerparse.c tor_main.c - am_tor_OBJECTS = buffers.$(OBJEXT) circuitbuild.$(OBJEXT) \ - circuitlist.$(OBJEXT) circuituse.$(OBJEXT) command.$(OBJEXT) \ - config.$(OBJEXT) connection.$(OBJEXT) \ -@@ -93,7 +93,7 @@ - onion.$(OBJEXT) policies.$(OBJEXT) relay.$(OBJEXT) \ - rendcommon.$(OBJEXT) rendclient.$(OBJEXT) rendmid.$(OBJEXT) \ - rendservice.$(OBJEXT) rephist.$(OBJEXT) router.$(OBJEXT) \ -- routerlist.$(OBJEXT) routerparse.$(OBJEXT) eventdns.$(OBJEXT) \ -+ routerlist.$(OBJEXT) routerparse.$(OBJEXT) \ - tor_main.$(OBJEXT) - tor_OBJECTS = $(am_tor_OBJECTS) - tor_DEPENDENCIES = ../common/libor.a ../common/libor-crypto.a -@@ -230,7 +230,6 @@ - networkstatus.c \ - onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \ - rendservice.c rephist.c router.c routerlist.c routerparse.c \ -- eventdns.c \ - tor_main.c - - AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \ -@@ -253,7 +252,6 @@ - networkstatus.c \ - onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \ - rendservice.c rephist.c router.c routerlist.c routerparse.c \ -- eventdns.c \ - test_data.c test.c - - test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ -@@ -262,7 +260,7 @@ - test_LDADD = ../common/libor.a ../common/libor-crypto.a \ - -lz -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@ - --noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i -+noinst_HEADERS = or.h micro-revision.i - all: all-am - - .SUFFIXES: -@@ -351,7 +349,6 @@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirvote.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsserv.Po@am__quote@ --@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventdns.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geoip.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hibernate.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ diff --git a/net-misc/tor/tor-0.2.0.35.ebuild b/net-misc/tor/tor-0.2.0.35.ebuild deleted file mode 100644 index 4cdf98a4ad83..000000000000 --- a/net-misc/tor/tor-0.2.0.35.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2009 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.35.ebuild,v 1.6 2009/07/12 00:57:38 josejx Exp $ - -EAPI=1 - -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 ppc ppc64 sparc x86 ~x86-fbsd" -IUSE="+bundledlibevent debug" - -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}"/${PN}-0.2.0.30-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 (0.2.1 or later) - # See http://bugs.noreply.org/flyspray/index.php?do=details&id=920 - # for upstream's report - use bundledlibevent || epatch "${FILESDIR}"/${PN}-0.2.0.33-no-internal-libevent.patch -} - -src_compile() { - econf $(use_enable debug) - emake || die -} - -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 - - 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 - - # 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" - - if ! use bundledlibevent; then - elog - elog "Please be aware that using the system's libevent library will lower your anonymity" - elog "a little bit. If you rely on it, please enable USE=bundledlibevent." - fi -} diff --git a/net-misc/tor/tor-0.2.1.19-r1.ebuild b/net-misc/tor/tor-0.2.1.19-r1.ebuild deleted file mode 100644 index 4ba56b60e3a2..000000000000 --- a/net-misc/tor/tor-0.2.1.19-r1.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2009 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.19-r1.ebuild,v 1.1 2009/08/17 19:42:11 fauli 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 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="debug" - -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_prepare() { - epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch - epatch "${FILESDIR}"/${P}-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" -} diff --git a/net-misc/tor/tor-0.2.1.19.ebuild b/net-misc/tor/tor-0.2.1.19.ebuild deleted file mode 100644 index 69b95481f29a..000000000000 --- a/net-misc/tor/tor-0.2.1.19.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2009 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.19.ebuild,v 1.1 2009/08/06 22:01:30 fauli 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 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="debug" - -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_prepare() { - epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch - epatch "${FILESDIR}"/${PN}-0.2.0.30-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 - - 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 - - # 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" -} |