Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/tor: tor-0.2.5.1_alpha.ebuild ChangeLog
Date: Wed, 02 Oct 2013 10:16:00
Message-Id: 20131002101552.653612004C@flycatcher.gentoo.org
1 blueness 13/10/02 10:15:52
2
3 Modified: ChangeLog
4 Added: tor-0.2.5.1_alpha.ebuild
5 Log:
6 Version bump new alpha branch 0.2.5.x
7
8 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.386 net-misc/tor/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.386&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.386&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?r1=1.385&r2=1.386
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
20 retrieving revision 1.385
21 retrieving revision 1.386
22 diff -u -r1.385 -r1.386
23 --- ChangeLog 5 Sep 2013 20:05:02 -0000 1.385
24 +++ ChangeLog 2 Oct 2013 10:15:52 -0000 1.386
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/tor
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.385 2013/09/05 20:05:02 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.386 2013/10/02 10:15:52 blueness Exp $
30 +
31 +*tor-0.2.5.1_alpha (02 Oct 2013)
32 +
33 + 02 Oct 2013; Anthony G. Basile <blueness@g.o>
34 + +tor-0.2.5.1_alpha.ebuild:
35 + Version bump new alpha branch 0.2.5.x
36
37 *tor-0.2.4.17_rc (05 Sep 2013)
38
39
40
41
42 1.1 net-misc/tor/tor-0.2.5.1_alpha.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.5.1_alpha.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.5.1_alpha.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tor-0.2.5.1_alpha.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.5.1_alpha.ebuild,v 1.1 2013/10/02 10:15:52 blueness Exp $
52
53 EAPI="4"
54
55 inherit eutils flag-o-matic versionator
56
57 MY_PV="$(replace_version_separator 4 -)"
58 MY_PF="${PN}-${MY_PV}"
59 DESCRIPTION="Anonymizing overlay network for TCP"
60 HOMEPAGE="http://www.torproject.org/"
61 SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz
62 https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz"
63 S="${WORKDIR}/${MY_PF}"
64
65 LICENSE="BSD GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 IUSE="-bufferevents +ecc nat-pmp selinux stats tor-hardening transparent-proxy threads upnp web"
69
70 DEPEND="dev-libs/openssl
71 sys-libs/zlib
72 dev-libs/libevent
73 bufferevents? ( dev-libs/libevent[ssl] )
74 nat-pmp? ( net-libs/libnatpmp )
75 upnp? ( net-libs/miniupnpc )
76 selinux? ( sec-policy/selinux-tor )"
77 RDEPEND="${DEPEND}"
78
79 pkg_setup() {
80 enewgroup tor
81 enewuser tor -1 -1 /var/lib/tor tor
82 }
83
84 src_prepare() {
85 epatch "${FILESDIR}"/${PN}-0.2.3.14_alpha-torrc.sample.patch
86 }
87
88 src_configure() {
89 # Upstream isn't sure of all the user provided CFLAGS that
90 # will break tor, but does recommend against -fstrict-aliasing.
91 # We'll filter-flags them here as we encounter them.
92 filter-flags -fstrict-aliasing
93 econf \
94 --disable-buf-freelists \
95 --enable-asciidoc \
96 --docdir=/usr/share/doc/${PF} \
97 $(use_enable stats instrument-downloads) \
98 $(use_enable bufferevents) \
99 $(use_enable ecc curve25519) \
100 $(use_enable nat-pmp) \
101 $(use_enable tor-hardening gcc-hardening) \
102 $(use_enable tor-hardening linker-hardening) \
103 $(use_enable transparent-proxy transparent) \
104 $(use_enable threads) \
105 $(use_enable upnp) \
106 $(use_enable web tor2web-mode) \
107 $(use_enable test unittests) \
108 $(use_enable test coverage)
109 }
110
111 src_test() {
112 emake check
113 }
114
115 src_install() {
116 newconfd "${FILESDIR}"/tor.confd tor
117 newinitd "${FILESDIR}"/tor.initd-r6 tor
118
119 emake DESTDIR="${D}" install
120
121 keepdir /var/lib/tor
122
123 dodoc README ChangeLog ReleaseNotes doc/HACKING
124
125 fperms 750 /var/lib/tor
126 fowners tor:tor /var/lib/tor
127
128 insinto /etc/tor/
129 newins "${FILESDIR}"/torrc-r1 torrc
130 }
131
132 pkg_postinst() {
133 elog
134 elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
135 elog "change it according to your needs. Use the torrc.sample that is in"
136 elog "that directory as a guide. Also, to have privoxy work with tor"
137 elog "just add the following line"
138 elog
139 elog "forward-socks4a / localhost:9050 ."
140 elog
141 elog "to /etc/privoxy/config. Notice the . at the end!"
142 elog
143 }