[arch-commits] Commit in sshuttle/repos (5 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 17:54:56 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:54:56
  Author: foutrelis
Revision: 202173

archrelease: copy trunk to community-staging-any

Added:
  sshuttle/repos/community-staging-any/
  sshuttle/repos/community-staging-any/PKGBUILD
    (from rev 202172, sshuttle/trunk/PKGBUILD)
  sshuttle/repos/community-staging-any/prefixes.conf
    (from rev 202172, sshuttle/trunk/prefixes.conf)
  sshuttle/repos/community-staging-any/sshuttle.service
    (from rev 202172, sshuttle/trunk/sshuttle.service)
  sshuttle/repos/community-staging-any/tunnel.conf
    (from rev 202172, sshuttle/trunk/tunnel.conf)

------------------+
 PKGBUILD         |   45 +++++++++++++++++++++++++++++++++++++++++++++
 prefixes.conf    |    5 +++++
 sshuttle.service |    8 ++++++++
 tunnel.conf      |   19 +++++++++++++++++++
 4 files changed, 77 insertions(+)

Copied: sshuttle/repos/community-staging-any/PKGBUILD (from rev 202172, sshuttle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:54:56 UTC (rev 202173)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: alphazo <alphazo at gmail.com>
+
+pkgname=sshuttle
+pkgver=0.78.1
+pkgrel=2
+pkgdesc='Transparent proxy server that forwards all TCP packets over ssh'
+arch=('any')
+url="https://github.com/sshuttle/sshuttle"
+license=('GPL2')
+depends=('python-setuptools' 'iptables' 'openssh' 'net-tools')
+makedepends=('git' 'python-sphinx' 'python-setuptools_scm')
+checkdepends=('python-pytest-runner' 'python-mock')
+backup=('etc/sshuttle/tunnel.conf' 'etc/sshuttle/prefixes.conf')
+source=("git+https://github.com/sshuttle/$pkgname.git#tag=v$pkgver"
+        'sshuttle.service' 'prefixes.conf' 'tunnel.conf')
+md5sums=('SKIP'
+         'f2cd1660dcdb4e24b45b71e589da73f3'
+         'e780f69851445f739ea76774bb3a3b17'
+         '4137f5e6d5dd92b7f7f34a1bfdbda45c')
+
+build() {
+  cd $pkgname
+  python setup.py build
+
+  cd docs
+  make man
+}
+
+check() {
+  cd $pkgname
+  python setup.py ptr
+}
+
+package() {
+  cd $pkgname
+  python setup.py install --root="$pkgdir" -O1
+
+  install -Dm644 docs/_build/man/sshuttle.1 "$pkgdir/usr/share/man/man1/sshuttle.1"
+
+  install -d "$pkgdir/etc/sshuttle"
+  install -m644 "$srcdir"/{tunnel.conf,prefixes.conf} "$pkgdir/etc/sshuttle"
+  install -Dm644 "$srcdir/sshuttle.service" "$pkgdir/usr/lib/systemd/system/sshuttle.service"
+}

Copied: sshuttle/repos/community-staging-any/prefixes.conf (from rev 202172, sshuttle/trunk/prefixes.conf)
===================================================================
--- community-staging-any/prefixes.conf	                        (rev 0)
+++ community-staging-any/prefixes.conf	2016-12-25 17:54:56 UTC (rev 202173)
@@ -0,0 +1,5 @@
+# Output prefixes here, one per line.  Prefix is in:
+# prefix/netmask format
+# Like this:
+# 192.168.0.0/16
+# 192.0.43.10/32

Copied: sshuttle/repos/community-staging-any/sshuttle.service (from rev 202172, sshuttle/trunk/sshuttle.service)
===================================================================
--- community-staging-any/sshuttle.service	                        (rev 0)
+++ community-staging-any/sshuttle.service	2016-12-25 17:54:56 UTC (rev 202173)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Create a transparent proxy over SSH
+
+[Service]
+ExecStart=/usr/bin/sshuttle --dns --listen 0.0.0.0 --remote sshuttle_tunnel -s /etc/sshuttle/prefixes.conf -e "ssh -F /etc/sshuttle/tunnel.conf"
+
+[Install]
+WantedBy=multi-user.target

Copied: sshuttle/repos/community-staging-any/tunnel.conf (from rev 202172, sshuttle/trunk/tunnel.conf)
===================================================================
--- community-staging-any/tunnel.conf	                        (rev 0)
+++ community-staging-any/tunnel.conf	2016-12-25 17:54:56 UTC (rev 202173)
@@ -0,0 +1,19 @@
+# Here is where you can specify any SSH tunnel options See ssh_config(5) for
+# details.  You need to leave the Host line intact, but everything else can
+# specify whatever you want
+Host sshuttle_tunnel
+
+# REQUIRED: Set this to be the host to which you would like to connect your
+# tunnel
+#Hostname localhost
+
+# REQUIRED: Set this to be the target SSH user on the remote system
+#User foo
+
+# ---------------------------------------------------------------------------
+# The rest are all optional; see ssh_config(5) for the full list of what can
+# be specified.  Some very commonly needed ones are below.
+# ---------------------------------------------------------------------------
+
+# SSH key used for connecting
+#IdentityFile /path/to/key



More information about the arch-commits mailing list