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