summaryrefslogtreecommitdiff
blob: 8b7d1c66766ba094170842ef40bbac116e1c878b (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
43
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/sshuttle/sshuttle-0.61.ebuild,v 1.1 2012/07/19 07:01:52 radhermit Exp $

EAPI="4"
PYTHON_DEPEND="2"

inherit python linux-info

DESCRIPTION="Transparent proxy server that works as a poor man's VPN using ssh"
HOMEPAGE="https://github.com/apenwarr/sshuttle/"
SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.tar.xz"

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

DEPEND="app-arch/xz-utils"
RDEPEND="net-firewall/iptables
	|| ( app-admin/sudo sys-apps/shadow )"

CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~NF_NAT"

pkg_setup() {
	linux-info_pkg_setup
	python_pkg_setup
}

src_compile() { :; }

src_install() {
	rm stresstest.py || die
	insinto "$(python_get_sitedir)"/${PN}
	doins -r *.py compat

	exeinto "$(python_get_sitedir)"/${PN}
	doexe ${PN}
	dosym "$(python_get_sitedir)"/${PN}/${PN} /usr/bin/${PN}

	dodoc README.md
	doman Documentation/${PN}.8
}