[arch-commits] Commit in (5 files)

Felix Yan fyan at nymeria.archlinux.org
Fri May 17 02:44:29 EDT 2013


    Date: Friday, May 17, 2013 @ 08:44:28
  Author: fyan
Revision: 90990

add sshuttle

Added:
  sshuttle/
  sshuttle/repos/
  sshuttle/trunk/
  sshuttle/trunk/PKGBUILD
  sshuttle/trunk/arch-install.patch

--------------------+
 PKGBUILD           |   40 ++++++++++++++++++++++++++++++++++++++++
 arch-install.patch |   19 +++++++++++++++++++
 2 files changed, 59 insertions(+)

Added: sshuttle/trunk/PKGBUILD
===================================================================
--- sshuttle/trunk/PKGBUILD	                        (rev 0)
+++ sshuttle/trunk/PKGBUILD	2013-05-17 06:44:28 UTC (rev 90990)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: alphazo <alphazo at gmail.com>
+
+pkgname=sshuttle
+pkgver=0.61
+pkgrel=3
+pkgdesc="Transparent proxy server that works as a poor man's VPN. Forwards all TCP packets over ssh (and even DNS requests when using --dns option). Doesn't require admin privileges on the server side"
+arch=('any')
+url="https://github.com/apenwarr/sshuttle"
+license=('GPL2')
+depends=('python2' 'iptables')
+makedepends=('python2-markdown' 'python2-beautifulsoup4')
+optdepends=('openssh: Recommended and default ssh-cmd for sshuttle')
+source=("https://github.com/apenwarr/$pkgname/archive/$pkgname-$pkgver.tar.gz"
+        "arch-install.patch")
+
+build() {
+  cd "$srcdir/$pkgname-$pkgname-$pkgver"
+  patch -p1 -i "$srcdir/arch-install.patch"
+
+  sed -i 's#/usr/bin/env python#/usr/bin/env python2#' Documentation/md2man.py
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgname-$pkgver"
+  install -Dm755 sshuttle "$pkgdir/usr/bin/sshuttle"
+
+  install -d "$pkgdir/usr/share/sshuttle"
+  cp -r *.py compat "$pkgdir/usr/share/sshuttle"/
+
+  install -d "$pkgdir/usr/share/sshuttle/version"
+  cp -r version/*.py "$pkgdir/usr/share/sshuttle/version"
+
+  install -Dm644 Documentation/sshuttle.8 "$pkgdir/usr/share/man/man8/sshuttle.8"
+}
+
+md5sums=('99a3178524eb960189c89e63f85e5b43'
+         '15ed72e2b68dd07ef97abfdcb828d188')

Added: sshuttle/trunk/arch-install.patch
===================================================================
--- sshuttle/trunk/arch-install.patch	                        (rev 0)
+++ sshuttle/trunk/arch-install.patch	2013-05-17 06:44:28 UTC (rev 90990)
@@ -0,0 +1,19 @@
+*** sshuttleORIGIN/sshuttle	2011-05-21 22:58:24.156725075 +0200
+--- sshuttle	2011-05-21 22:59:16.354698468 +0200
+***************
+*** 4,10 ****
+  	[ -L "$EXE" ] || break
+  	EXE=$(readlink "$EXE")
+  done
+! DIR=$(dirname "$EXE")
+  if python2 -V 2>/dev/null; then
+  	exec python2 "$DIR/main.py" python2 "$@"
+  else
+--- 4,10 ----
+  	[ -L "$EXE" ] || break
+  	EXE=$(readlink "$EXE")
+  done
+! DIR=/usr/share/sshuttle
+  if python2 -V 2>/dev/null; then
+  	exec python2 "$DIR/main.py" python2 "$@"
+  else



More information about the arch-commits mailing list