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: ChangeLog tor-0.2.3.17_beta.ebuild
Date: Sat, 16 Jun 2012 08:07:34
Message-Id: 20120616080724.CCE312004B@flycatcher.gentoo.org
1 blueness 12/06/16 08:07:24
2
3 Modified: ChangeLog
4 Added: tor-0.2.3.17_beta.ebuild
5 Log:
6 Version bump beta
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.335 net-misc/tor/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.335&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.335&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?r1=1.334&r2=1.335
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
20 retrieving revision 1.334
21 retrieving revision 1.335
22 diff -u -r1.334 -r1.335
23 --- ChangeLog 13 Jun 2012 15:00:27 -0000 1.334
24 +++ ChangeLog 16 Jun 2012 08:07:24 -0000 1.335
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/tor
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.334 2012/06/13 15:00:27 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.335 2012/06/16 08:07:24 blueness Exp $
30 +
31 +*tor-0.2.3.17_beta (16 Jun 2012)
32 +
33 + 16 Jun 2012; Anthony G. Basile <blueness@g.o>
34 + +tor-0.2.3.17_beta.ebuild:
35 + Version bump beta
36
37 *tor-0.2.2.37 (13 Jun 2012)
38
39
40
41
42 1.1 net-misc/tor/tor-0.2.3.17_beta.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.3.17_beta.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.3.17_beta.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tor-0.2.3.17_beta.ebuild
48 ===================================================================
49 # Copyright 1999-2012 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.3.17_beta.ebuild,v 1.1 2012/06/16 08:07:24 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://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz"
62 S="${WORKDIR}/${MY_PF}"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
67 IUSE="+bufferevents nat-pmp tor-hardening transparent-proxy threads upnp selinux web"
68
69 DEPEND="dev-libs/openssl
70 sys-libs/zlib
71 >=dev-libs/libevent-2.0.14
72 nat-pmp? ( net-libs/libnatpmp )
73 upnp? ( net-libs/miniupnpc )
74 selinux? ( sec-policy/selinux-tor )"
75 RDEPEND="${DEPEND}"
76
77 pkg_setup() {
78 enewgroup tor
79 enewuser tor -1 -1 /var/lib/tor tor
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}"/${PN}-0.2.3.14_alpha-torrc.sample.patch
84 }
85
86 src_configure() {
87 # Upstream isn't sure of all the user provided CFLAGS that
88 # will break tor, but does recommend against -fstrict-aliasing.
89 # We'll filter-flags them here as we encounter them.
90 filter-flags -fstrict-aliasing
91 econf \
92 --enable-asciidoc \
93 --docdir=/usr/share/doc/${PF} \
94 $(use_enable bufferevents) \
95 $(use_enable nat-pmp) \
96 $(use_enable tor-hardening gcc-hardening) \
97 $(use_enable tor-hardening linker-hardening) \
98 $(use_enable transparent-proxy transparent) \
99 $(use_enable threads) \
100 $(use_enable upnp) \
101 $(use_enable web tor2web-mode)
102 }
103
104 src_install() {
105 newconfd "${FILESDIR}"/tor.confd tor
106 newinitd "${FILESDIR}"/tor.initd-r6 tor
107
108 emake DESTDIR="${D}" install
109
110 keepdir /var/lib/tor
111
112 dodoc README ChangeLog ReleaseNotes \
113 doc/{HACKING,TODO} \
114 doc/spec/README
115
116 fperms 750 /var/lib/tor
117 fowners tor:tor /var/lib/tor
118
119 insinto /etc/tor/
120 newins "${FILESDIR}"/torrc-r1 torrc
121 }
122
123 pkg_postinst() {
124 elog
125 elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
126 elog "change it according to your needs. Use the torrc.sample that is in"
127 elog "that directory as a guide. Also, to have privoxy work with tor"
128 elog "just add the following line"
129 elog
130 elog "forward-socks4a / localhost:9050 ."
131 elog
132 elog "to /etc/privoxy/config. Notice the . at the end!"
133 elog
134 }