### this file is sourced not run
PKGVER=2015.03
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=sshuttle-2015.03.tar.gz
MD5SUM=8358e6f45a1a854832e07b1c0cf70229
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

PYTHON_LIBDIR=/usr/$LIBDIR/python2.7

SLACKREQ='python' # 
SLACKDESC="sshuttle: sshuttle 2015.03 (Transparent proxy server)
sshuttle: 
sshuttle: Transparent proxy server that works as a poor man's VPN. Forwards 
sshuttle: over ssh. Doesn't require admin on the server side, only regular
sshuttle: ssh account. Supports DNS tunneling. Client-side needs root.
sshuttle: Server side can be any Unix-like and has python (cygwin works too).
sshuttle: (For cygwin, create /etc/resolv.conf first).
sshuttle: 
sshuttle: In short, it turns any SSH server into VPN server.
sshuttle: 
sshuttle: https://github.com/apenwarr/sshuttle
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	mkdir -p $PYTHON_LIBDIR &&
	mv /tmp/sshuttle* $PYTHON_LIBDIR/sshuttle &&
	
	rm -rf $PYTHON_LIBDIR/sshuttle/ui-macos && # no need for macos stuff
	ln -s $PYTHON_LIBDIR/sshuttle/sshuttle /usr/bin &&
	sshuttle 2> /dev/null # run once to compile python scripts
	
	pkg_build_slackdesc
}
