1 |
fauli 09/06/03 13:02:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tor-0.2.0.34-r2.ebuild |
5 |
Removed: tor-0.2.0.34-r1.ebuild |
6 |
Log: |
7 |
revision bump to make it compatible with Baselayout 1, as reported by Stanislav Cymbalov <DummyUnit AT gmail.com> in bug 272404 |
8 |
(Portage version: 2.1.6.11/cvs/Linux i686, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.165 net-misc/tor/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/ChangeLog?rev=1.165&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/ChangeLog?rev=1.165&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/ChangeLog?r1=1.164&r2=1.165 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v |
20 |
retrieving revision 1.164 |
21 |
retrieving revision 1.165 |
22 |
diff -u -r1.164 -r1.165 |
23 |
--- ChangeLog 3 Jun 2009 08:09:04 -0000 1.164 |
24 |
+++ ChangeLog 3 Jun 2009 13:02:23 -0000 1.165 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-misc/tor |
27 |
# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.164 2009/06/03 08:09:04 fauli Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.165 2009/06/03 13:02:23 fauli Exp $ |
30 |
+ |
31 |
+*tor-0.2.0.34-r2 (03 Jun 2009) |
32 |
+ |
33 |
+ 03 Jun 2009; Christian Faulhammer <fauli@g.o> -files/tor.initd-r5, |
34 |
+ +files/tor.initd-r6, -tor-0.2.0.34-r1.ebuild, +tor-0.2.0.34-r2.ebuild: |
35 |
+ revision bump to make it compatible with Baselayout 1, as reported by |
36 |
+ Stanislav Cymbalov <DummyUnit AT gmail.com> in bug 272404 |
37 |
|
38 |
*tor-0.2.0.34-r1 (03 Jun 2009) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-misc/tor/tor-0.2.0.34-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/tor-0.2.0.34-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/tor/tor-0.2.0.34-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: tor-0.2.0.34-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.0.34-r2.ebuild,v 1.1 2009/06/03 13:02:23 fauli Exp $ |
53 |
|
54 |
EAPI=1 |
55 |
|
56 |
inherit eutils |
57 |
|
58 |
DESCRIPTION="Anonymizing overlay network for TCP" |
59 |
HOMEPAGE="http://tor.eff.org" |
60 |
MY_PV=${PV/_/-} |
61 |
SRC_URI="http://tor.eff.org/dist/${PN}-${MY_PV}.tar.gz" |
62 |
S="${WORKDIR}/${PN}-${MY_PV}" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
KEYWORDS="amd64 ppc ppc64 sparc x86 ~x86-fbsd" |
67 |
IUSE="+bundledlibevent debug" |
68 |
|
69 |
DEPEND="dev-libs/openssl |
70 |
>=dev-libs/libevent-1.2" |
71 |
RDEPEND="${DEPEND} |
72 |
net-proxy/tsocks" |
73 |
|
74 |
pkg_setup() { |
75 |
enewgroup tor |
76 |
enewuser tor -1 -1 /var/lib/tor tor |
77 |
} |
78 |
|
79 |
src_unpack() { |
80 |
unpack ${A} |
81 |
cd "${S}" |
82 |
epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch |
83 |
epatch "${FILESDIR}"/${PN}-0.2.0.30-logrotate.patch |
84 |
# Normally tor uses a bundled libevent fragment to provide |
85 |
# asynchronous DNS requests. This is generally a bad idea, but at |
86 |
# the moment the official libevent does not have the 0x20 hack, so |
87 |
# anonymity is higher with the bundled variant. Remove patch as |
88 |
# soon as upstream has installed the autoconf option to use |
89 |
# system's libevent (0.2.1 or later) |
90 |
# See http://bugs.noreply.org/flyspray/index.php?do=details&id=920 |
91 |
# for upstream's report |
92 |
use bundledlibevent || epatch "${FILESDIR}"/${PN}-0.2.0.33-no-internal-libevent.patch |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
econf $(use_enable debug) |
97 |
emake || die |
98 |
} |
99 |
|
100 |
src_install() { |
101 |
newinitd "${FILESDIR}"/tor.initd-r6 tor |
102 |
emake DESTDIR="${D}" install || die |
103 |
keepdir /var/{lib,log,run}/tor |
104 |
|
105 |
dodoc README ChangeLog AUTHORS ReleaseNotes \ |
106 |
doc/{HACKING,TODO} \ |
107 |
doc/spec/*.txt |
108 |
|
109 |
fperms 750 /var/lib/tor /var/log/tor |
110 |
fperms 755 /var/run/tor |
111 |
fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor |
112 |
|
113 |
sed -e "s:/lib::" \ |
114 |
-e "s:/rc.d::" \ |
115 |
-e "s:\\*:\\*.:" \ |
116 |
-e "s:sharedscripts:create 0640 tor tor\n\tsharedscripts:" -i contrib/tor.logrotate || die |
117 |
insinto /etc/logrotate.d |
118 |
newins contrib/tor.logrotate tor |
119 |
|
120 |
# allow the tor user more open files to avoid errors, see bug 251171 |
121 |
insinto /etc/security/limits.d/ |
122 |
doins "${FILESDIR}"/tor.conf |
123 |
} |
124 |
|
125 |
pkg_postinst() { |
126 |
elog "You must create /etc/tor/torrc, you can use the sample that is in that directory" |
127 |
elog "To have privoxy and tor working together you must add:" |
128 |
elog "forward-socks4a / localhost:9050 ." |
129 |
elog "(notice the . at the end of the line)" |
130 |
elog "to /etc/privoxy/config" |
131 |
|
132 |
if ! use bundledlibevent; then |
133 |
elog |
134 |
elog "Please be aware that using the system's libevent library will lower your anonymity" |
135 |
elog "a little bit. If you rely on it, please enable USE=bundledlibevent." |
136 |
fi |
137 |
} |