[arch-commits] Commit in sshuttle/trunk (PKGBUILD sshuttle.service)

2018-06-03 Thread Felix Yan via arch-commits
Date: Sunday, June 3, 2018 @ 15:41:16
  Author: felixonmars
Revision: 339379

upgpkg: sshuttle 0.78.4-3

fix systemd unit (FS#58845)

Modified:
  sshuttle/trunk/PKGBUILD
  sshuttle/trunk/sshuttle.service

--+
 PKGBUILD |4 ++--
 sshuttle.service |2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-03 15:28:13 UTC (rev 339378)
+++ PKGBUILD2018-06-03 15:41:16 UTC (rev 339379)
@@ -4,7 +4,7 @@
 
 pkgname=sshuttle
 pkgver=0.78.4
-pkgrel=2
+pkgrel=3
 pkgdesc='Transparent proxy server that forwards all TCP packets over ssh'
 arch=('any')
 url="https://github.com/sshuttle/sshuttle;
@@ -16,7 +16,7 @@
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/sshuttle/$pkgname/archive/v$pkgver.tar.gz;
 'sshuttle.service' 'prefixes.conf' 'tunnel.conf')
 
sha512sums=('3c91d487ffe83a9b8019def6556586e0dc8e6c467275da403178807fb0ef5553781b69357484f58d8c3fda6ef9940caffc371b4698f8b83e4fcba2012575d730'
-
'aaf4eb1d1bd76e839b1b64121629458c1657b93584a9510e90eec72b7d475d33a1e76aa64135f5febb0288171b35daa537ccd4bd658b5ee56f26e32734450b0a'
+
'c22504798f6220cd6b0946d6975375437c52753a241cd2a6a03d3aeb005ed1d78e6356dde23716e2514ccf6d7f1c6aace43956dbeede1bf028753b9bdcdd8b7d'
 
'cc5a5dee7991c7641fa8a4fb356e1977aa9d1cbfed63cb5ebf8732c4de76be841f66d9267472e70578b176f528d8cfb4f75e634d5d915f4c8bcdc0b801db8a13'
 
'acd3d0024d4604cc6a96609286c3f27bce2f0b70a068f58a2110dacc235b22ba7cd83c8989f46d0a9391eda7d272040bb3b1b2c547ae3fa0c9f61bef0a187dda')
 

Modified: sshuttle.service
===
--- sshuttle.service2018-06-03 15:28:13 UTC (rev 339378)
+++ sshuttle.service2018-06-03 15:41:16 UTC (rev 339379)
@@ -1,8 +1,10 @@
 [Unit]
 Description=Create a transparent proxy over SSH
+After=network-online.target
 
 [Service]
 Type=notify
+NotifyAccess=all
 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]


[arch-commits] Commit in sshuttle/trunk (PKGBUILD sshuttle.service)

2018-05-11 Thread Felix Yan via arch-commits
Date: Friday, May 11, 2018 @ 08:50:14
  Author: felixonmars
Revision: 320639

upgpkg: sshuttle 0.78.4-2

use notify start mode (FS#56086)

Modified:
  sshuttle/trunk/PKGBUILD
  sshuttle/trunk/sshuttle.service

--+
 PKGBUILD |4 ++--
 sshuttle.service |1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-05-11 08:49:59 UTC (rev 320638)
+++ PKGBUILD2018-05-11 08:50:14 UTC (rev 320639)
@@ -4,7 +4,7 @@
 
 pkgname=sshuttle
 pkgver=0.78.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Transparent proxy server that forwards all TCP packets over ssh'
 arch=('any')
 url="https://github.com/sshuttle/sshuttle;
@@ -16,7 +16,7 @@
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/sshuttle/$pkgname/archive/v$pkgver.tar.gz;
 'sshuttle.service' 'prefixes.conf' 'tunnel.conf')
 
sha512sums=('3c91d487ffe83a9b8019def6556586e0dc8e6c467275da403178807fb0ef5553781b69357484f58d8c3fda6ef9940caffc371b4698f8b83e4fcba2012575d730'
-
'655ac580a02ea75376701fd40d0a340b2385efe07016b0930eef9cce98faac60e7c96e492b5894f0897c311196bebf514f9dd2a0be1cc8cc21f18fb0bfeab057'
+
'aaf4eb1d1bd76e839b1b64121629458c1657b93584a9510e90eec72b7d475d33a1e76aa64135f5febb0288171b35daa537ccd4bd658b5ee56f26e32734450b0a'
 
'cc5a5dee7991c7641fa8a4fb356e1977aa9d1cbfed63cb5ebf8732c4de76be841f66d9267472e70578b176f528d8cfb4f75e634d5d915f4c8bcdc0b801db8a13'
 
'acd3d0024d4604cc6a96609286c3f27bce2f0b70a068f58a2110dacc235b22ba7cd83c8989f46d0a9391eda7d272040bb3b1b2c547ae3fa0c9f61bef0a187dda')
 

Modified: sshuttle.service
===
--- sshuttle.service2018-05-11 08:49:59 UTC (rev 320638)
+++ sshuttle.service2018-05-11 08:50:14 UTC (rev 320639)
@@ -2,6 +2,7 @@
 Description=Create a transparent proxy over SSH
 
 [Service]
+Type=notify
 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]


[arch-commits] Commit in sshuttle/trunk (PKGBUILD sshuttle.service)

2015-07-14 Thread Felix Yan
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
===
--- PKGBUILD2015-07-14 06:58:14 UTC (rev 136817)
+++ PKGBUILD2015-07-14 07:29:22 UTC (rev 136818)
@@ -3,40 +3,45 @@
 # Contributor: alphazo alph...@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.service2015-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