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