/[gentoo-x86]/net-misc/tor/tor-0.2.1.32.ebuild
Gentoo

Contents of /net-misc/tor/tor-0.2.1.32.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu May 24 11:54:58 2012 UTC (2 years, 3 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Upstream informs me its unmaintained and has issues, thanks Sebastian

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tor/tor-0.2.1.32.ebuild,v 1.6 2012/05/21 21:37:15 blueness Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils flag-o-matic
8
9 DESCRIPTION="Anonymizing overlay network for TCP"
10 HOMEPAGE="http://www.torproject.org/"
11 SRC_URI="https://archive.torproject.org/tor-package-archive/${PN}-${PV}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16 IUSE="debug selinux"
17
18 DEPEND="dev-libs/openssl
19 >=dev-libs/libevent-2.0
20 selinux? ( sec-policy/selinux-tor )"
21 RDEPEND="${DEPEND}"
22
23 pkg_setup() {
24 enewgroup tor
25 enewuser tor -1 -1 /var/lib/tor tor
26 }
27
28 src_prepare() {
29 epatch "${FILESDIR}"/torrc.sample.patch
30
31 einfo "Regenerating autotools files ..."
32 epatch "${FILESDIR}"/${PN}-0.2.1.30-respect-CFLAGS.patch
33 eautoreconf
34 }
35
36 src_configure() {
37 # Upstream isn't sure of all the user provided CFLAGS that
38 # will break tor, but does recommend against -fstrict-aliasing.
39 # We'll filter-flags them here as we encounter them.
40 filter-flags -fstrict-aliasing
41 econf $(use_enable debug)
42 }
43
44 src_install() {
45 newinitd "${FILESDIR}"/tor.initd-r6 tor
46 emake DESTDIR="${D}" install
47 keepdir /var/{lib,run}/tor
48
49 dodoc README ChangeLog AUTHORS ReleaseNotes \
50 doc/{HACKING,TODO}
51
52 fperms 750 /var/lib/tor
53 fperms 755 /var/run/tor
54 fowners tor:tor /var/lib/tor /var/run/tor
55
56 insinto /etc/tor/
57 newins "${FILESDIR}"/torrc-r1 torrc
58 }
59
60 pkg_postinst() {
61 elog
62 elog "We created a configuration file for tor, /etc/tor/torrc, but you can"
63 elog "change it according to your needs. Use the torrc.sample that is in"
64 elog "that directory as a guide. Also, to have privoxy work with tor"
65 elog "just add the following line"
66 elog
67 elog "forward-socks4a / localhost:9050 ."
68 elog
69 elog "to /etc/privoxy/config. Notice the . at the end!"
70 elog
71 }

  ViewVC Help
Powered by ViewVC 1.1.20