From owner-svn-ports-head@freebsd.org Mon Oct 10 05:13:56 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89612C0B9C2; Mon, 10 Oct 2016 05:13:56 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 41A95DDD; Mon, 10 Oct 2016 05:13:56 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9A5Dth9000638; Mon, 10 Oct 2016 05:13:55 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9A5Dsso000633; Mon, 10 Oct 2016 05:13:54 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201610100513.u9A5Dsso000633@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Mon, 10 Oct 2016 05:13:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423637 - in head/net: . py-sshuttle py-sshuttle/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2016 05:13:56 -0000 Author: koobs Date: Mon Oct 10 05:13:54 2016 New Revision: 423637 URL: https://svnweb.freebsd.org/changeset/ports/423637 Log: [NEW] net/py-sshuttle: Full-featured VPN over an SSH tunnel As far as I (the author) knows, sshuttle is the only program that solves the following common case: * Your client machine (or router) is Linux, FreeBSD, or MacOS. * You have access to a remote network via ssh. * You don't necessarily have admin access on the remote network. * The remote network has no VPN, or only stupid/complex VPN protocols (IPsec, PPTP, etc). Or maybe you are the admin and you just got frustrated with the awful state of VPN tools. * You don't want to create an ssh port forward for every single host/port on the remote network. * You hate openssh's port forwarding because it's randomly slow and/or stupid. * You can't use openssh's PermitTunnel feature because it's disabled by default on openssh servers; plus it does TCP-over-TCP, which has terrible performance WWW: https://github.com/sshuttle/sshuttle While I'm here, patch out pytest-runner from setup_requires and add it to tests_require. It's a test dependency, and pytest upstream shouldn't 'recommend' otherwise in its 'Usage:' docs. [1] https://github.com/sshuttle/sshuttle/issues/115 Requested by: John Kozubik (rsync.net, Inc) via freebsd-jobs Added: head/net/py-sshuttle/ head/net/py-sshuttle/Makefile (contents, props changed) head/net/py-sshuttle/distinfo (contents, props changed) head/net/py-sshuttle/files/ head/net/py-sshuttle/files/patch-setup.py (contents, props changed) head/net/py-sshuttle/pkg-descr (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Mon Oct 10 04:40:10 2016 (r423636) +++ head/net/Makefile Mon Oct 10 05:13:54 2016 (r423637) @@ -1026,6 +1026,7 @@ SUBDIR += py-soappy SUBDIR += py-socketio-client SUBDIR += py-speedtest-cli + SUBDIR += py-sshuttle SUBDIR += py-suds SUBDIR += py-terminado SUBDIR += py-tofu Added: head/net/py-sshuttle/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-sshuttle/Makefile Mon Oct 10 05:13:54 2016 (r423637) @@ -0,0 +1,28 @@ +# Created by: Kubilay Kocak +# $FreeBSD$ + +PORTNAME= sshuttle +PORTVERSION= 0.78.1 +CATEGORIES= net python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= Full-featured VPN over an SSH tunnel + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest + +.include Added: head/net/py-sshuttle/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-sshuttle/distinfo Mon Oct 10 05:13:54 2016 (r423637) @@ -0,0 +1,3 @@ +TIMESTAMP = 1476071476 +SHA256 (sshuttle-0.78.1.tar.gz) = 03a71648ce476de06a075bd9a972492d494b414ae51304bf535b80ff22be2d3c +SIZE (sshuttle-0.78.1.tar.gz) = 67173 Added: head/net/py-sshuttle/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-sshuttle/files/patch-setup.py Mon Oct 10 05:13:54 2016 (r423637) @@ -0,0 +1,19 @@ +--- setup.py.orig 2016-10-10 04:57:26 UTC ++++ setup.py +@@ -36,7 +36,7 @@ setup( + 'write_to': "sshuttle/version.py", + 'version_scheme': version_scheme, + }, +- setup_requires=['setuptools_scm', 'pytest-runner'], ++ setup_requires=['setuptools_scm'], + # version=version, + url='https://github.com/sshuttle/sshuttle', + author='Brian May', +@@ -61,6 +61,6 @@ setup( + 'sshuttle = sshuttle.cmdline:main', + ], + }, +- tests_require=['pytest', 'mock'], ++ tests_require=['pytest', 'pytest-runner', 'mock'], + keywords="ssh vpn", + ) Added: head/net/py-sshuttle/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/py-sshuttle/pkg-descr Mon Oct 10 05:13:54 2016 (r423637) @@ -0,0 +1,18 @@ +As far as I (the author) knows, sshuttle is the only program that solves +the following common case: + + * Your client machine (or router) is Linux, FreeBSD, or MacOS. + * You have access to a remote network via ssh. + * You don't necessarily have admin access on the remote network. + * The remote network has no VPN, or only stupid/complex VPN protocols + (IPsec, PPTP, etc). Or maybe you are the admin and you just got + frustrated with the awful state of VPN tools. + * You don't want to create an ssh port forward for every single host/port + on the remote network. + * You hate openssh's port forwarding because it's randomly slow and/or + stupid. + * You can't use openssh's PermitTunnel feature because it's disabled by + default on openssh servers; plus it does TCP-over-TCP, which has + terrible performance + +WWW: https://github.com/sshuttle/sshuttle