Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/tor: tor-0.2.5.1_alpha-r1.ebuild ChangeLog
Date: Mon, 28 Oct 2013 19:41:33
Message-Id: 20131028194127.4B06120047@flycatcher.gentoo.org
1 pacho 13/10/28 19:41:27
2
3 Modified: ChangeLog
4 Added: tor-0.2.5.1_alpha-r1.ebuild
5 Log:
6 Add unit file (#488426 by Emery Hemingway)
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.387 net-misc/tor/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.387&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?rev=1.387&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/ChangeLog?r1=1.386&r2=1.387
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v
20 retrieving revision 1.386
21 retrieving revision 1.387
22 diff -u -r1.386 -r1.387
23 --- ChangeLog 2 Oct 2013 10:15:52 -0000 1.386
24 +++ ChangeLog 28 Oct 2013 19:41:27 -0000 1.387
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.386 2013/10/02 10:15:52 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/ChangeLog,v 1.387 2013/10/28 19:41:27 pacho Exp $
30 +
31 +*tor-0.2.5.1_alpha-r1 (28 Oct 2013)
32 +
33 + 28 Oct 2013; Pacho Ramos <pacho@g.o> +files/tor.service,
34 + +tor-0.2.5.1_alpha-r1.ebuild:
35 + Add unit file (#488426 by Emery Hemingway)
36
37 *tor-0.2.5.1_alpha (02 Oct 2013)
38
39
40
41
42 1.1 net-misc/tor/tor-0.2.5.1_alpha-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/tor/tor-0.2.5.1_alpha-r1.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-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: tor-0.2.5.1_alpha-r1.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-r1.ebuild,v 1.1 2013/10/28 19:41:27 pacho Exp $
52
53 EAPI="4"
54
55 inherit eutils flag-o-matic systemd 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 systemd_dounit "${FILESDIR}/${PN}.service"
119
120 emake DESTDIR="${D}" install
121
122 keepdir /var/lib/tor
123
124 dodoc README ChangeLog ReleaseNotes doc/HACKING
125
126 fperms 750 /var/lib/tor
127 fowners tor:tor /var/lib/tor
128
129 insinto /etc/tor/
130 newins "${FILESDIR}"/torrc-r1 torrc
131 }
132
133 pkg_postinst() {
134 elog
135 elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
136 elog "change it according to your needs. Use the torrc.sample that is in"
137 elog "that directory as a guide. Also, to have privoxy work with tor"
138 elog "just add the following line"
139 elog
140 elog "forward-socks4a / localhost:9050 ."
141 elog
142 elog "to /etc/privoxy/config. Notice the . at the end!"
143 elog
144 }