Gentoo Archives: gentoo-commits

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