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