[arch-commits] Commit in sshuttle/trunk (PKGBUILD sshuttle.service)
Felix Yan
fyan at archlinux.org
Tue Jul 14 07:29:22 UTC 2015
Date: Tuesday, July 14, 2015 @ 09:29:22
Author: fyan
Revision: 136818
upgpkg: sshuttle 0.71-1
Added:
sshuttle/trunk/sshuttle.service
Modified:
sshuttle/trunk/PKGBUILD
------------------+
PKGBUILD | 29 +++++++++++++++++------------
sshuttle.service | 8 ++++++++
2 files changed, 25 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-07-14 06:58:14 UTC (rev 136817)
+++ PKGBUILD 2015-07-14 07:29:22 UTC (rev 136818)
@@ -3,40 +3,45 @@
# Contributor: alphazo <alphazo at gmail.com>
pkgname=sshuttle
-pkgver=0.61
-pkgrel=6
+pkgver=0.71
+pkgrel=1
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' 'openssh' 'net-tools')
-makedepends=('python2-markdown' 'python2-beautifulsoup3' 'git')
-source=("git+https://github.com/apenwarr/$pkgname.git#tag=$pkgname-$pkgver"
- "arch-install.patch")
+makedepends=('git')
+backup=('etc/sshuttle/tunnel.conf' 'etc/sshuttle/prefixes.conf')
+source=("git+https://github.com/sshuttle/$pkgname.git#tag=$pkgname-$pkgver"
+ 'sshuttle.service' 'arch-install.patch')
md5sums=('SKIP'
+ 'f2cd1660dcdb4e24b45b71e589da73f3'
'15ed72e2b68dd07ef97abfdcb828d188')
prepare() {
- cd $pkgname
+ cd $pkgname/src
patch -p1 -i "$srcdir/arch-install.patch"
- sed -i 's#/usr/bin/env python#/usr/bin/env python2#' stresstest.py Documentation/md2man.py
+ sed -i 's#/usr/bin/env python#/usr/bin/env python2#' stresstest.py
}
build() {
- cd $pkgname
+ cd $pkgname/src
make
}
package() {
- cd $pkgname
+ cd $pkgname/src
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"
+ # pandoc not present, so manpage was not built
+ # install -Dm644 sshuttle.8 "$pkgdir/usr/share/man/man8/sshuttle.8"
- install -Dm644 Documentation/sshuttle.8 "$pkgdir/usr/share/man/man8/sshuttle.8"
+ cd ..
+ install -d "$pkgdir/etc/sshuttle"
+ install -Dm644 packaging/{tunnel.conf,prefixes.conf} "$pkgdir/etc/sshuttle"
+ install -Dm644 "$srcdir/sshuttle.service" "$pkgdir/usr/lib/systemd/system/sshuttle.service"
}
Added: sshuttle.service
===================================================================
--- sshuttle.service (rev 0)
+++ sshuttle.service 2015-07-14 07:29:22 UTC (rev 136818)
@@ -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
More information about the arch-commits
mailing list