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

Felix Yan fyan at nymeria.archlinux.org
Fri May 17 06:50:56 UTC 2013


    Date: Friday, May 17, 2013 @ 08:50:56
  Author: fyan
Revision: 90994

archrelease: copy trunk to community-testing-any

Added:
  sshuttle/repos/community-testing-any/
  sshuttle/repos/community-testing-any/PKGBUILD
    (from rev 90993, sshuttle/trunk/PKGBUILD)
  sshuttle/repos/community-testing-any/arch-install.patch
    (from rev 90993, sshuttle/trunk/arch-install.patch)

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

Copied: sshuttle/repos/community-testing-any/PKGBUILD (from rev 90993, sshuttle/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2013-05-17 06:50:56 UTC (rev 90994)
@@ -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-beautifulsoup3')
+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#' stresstest.py 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')

Copied: sshuttle/repos/community-testing-any/arch-install.patch (from rev 90993, sshuttle/trunk/arch-install.patch)
===================================================================
--- community-testing-any/arch-install.patch	                        (rev 0)
+++ community-testing-any/arch-install.patch	2013-05-17 06:50:56 UTC (rev 90994)
@@ -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