summaryrefslogtreecommitdiff
blob: 4f0dbe51075f951b591551f3aa1f2a0ca54cda3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vidalia/vidalia-0.0.13.ebuild,v 1.1 2007/08/19 16:06:12 humpback Exp $

inherit eutils

DESCRIPTION="Qt 4 front-end for Tor"
HOMEPAGE="http://www.vidalia-project.net/"
SRC_URI="http://www.vidalia-project.net/dist/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="debug"

DEPEND=">=x11-libs/qt-4.1.1"
RDEPEND="${DEPEND}
	>=net-misc/tor-0.1.1.20"

pkg_setup() {
	if use debug && ! built_with_use ">=x11-libs/qt-4.1.1" debug; then
		eerror "In order to have debug support for Vidalia"
		eerror "you need to compile Qt 4 with debug support too."
		die "Qt 4 built without debug support"
	fi
}

src_compile() {
	econf $(use_enable debug) || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
}

pkg_postinst() {
	ewarn "To have vidalia starting tor, you probably have to copy
	/etc/tor/torrc.sample to the users \$HOME/.tor/torrc and comment the settings
	there and change the socks. Also in vidalia change the default user under
	which tor will run"
}