blob: 7f374634965ff7e6cd4378012c30bc0efae2e585 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/sshuttle/sshuttle-0.61-r1.ebuild,v 1.3 2014/03/04 20:14:39 ago 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"
DEPEND="app-arch/xz-utils"
RDEPEND="net-firewall/iptables"
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
}
|