You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-proxy/sshuttle/sshuttle-0.60.ebuild

44 lines
1.0 KiB

# 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.60.ebuild,v 1.4 2012/02/24 14:14:21 phajdan.jr 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/distfiles/${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
}