Date: Thursday, June 5, 2014 @ 19:01:07
  Author: fyan
Revision: 112729

archrelease: copy trunk to community-testing-any

Added:
  shadowsocks/repos/community-testing-any/
  shadowsocks/repos/community-testing-any/PKGBUILD
    (from rev 112728, shadowsocks/trunk/PKGBUILD)
  shadowsocks/repos/community-testing-any/[email protected]
    (from rev 112728, shadowsocks/trunk/[email protected])
  shadowsocks/repos/community-testing-any/shadowsocks.install
    (from rev 112728, shadowsocks/trunk/shadowsocks.install)
  shadowsocks/repos/community-testing-any/[email protected]
    (from rev 112728, shadowsocks/trunk/[email protected])

-----------------------------+
 PKGBUILD                    |   42 ++++++++++++++++++++++++++++++++++++++++++
 [email protected] |   12 ++++++++++++
 shadowsocks.install         |    5 +++++
 [email protected]        |   12 ++++++++++++
 4 files changed, 71 insertions(+)

Copied: shadowsocks/repos/community-testing-any/PKGBUILD (from rev 112728, 
shadowsocks/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2014-06-05 17:01:07 UTC (rev 112729)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=shadowsocks
+pkgver=2.0
+pkgrel=1
+pkgdesc="A lightweight tunnel proxy"
+license=("MIT")
+url="http://pypi.python.org/pypi/shadowsocks";
+depends=('python2' 'python2-setuptools')
+optdepends=('python2-m2crypto: For any encryption method other than "table"'
+            'python2-numpy: For salsa20 support'
+            'python2-salsa20: For salsa20 support')
+source=("http://pypi.python.org/packages/source/s/shadowsocks/shadowsocks-${pkgver}.tar.gz";
+        "https://raw.github.com/clowwindy/shadowsocks/master/LICENSE";
+        "[email protected]"
+        "[email protected]")
+arch=('any')
+install=${pkgname}.install
+
+prepare() {
+  cd shadowsocks-$pkgver/shadowsocks
+  # python2 fix
+  sed -e 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' \
+      -e 's_#!/usr/bin/python$_#!/usr/bin/python2_' \
+      -i local.py server.py encrypt.py __init__.py utils.py
+}
+
+package() {
+  cd "$srcdir/shadowsocks-$pkgver"
+  python2 setup.py install -O1 --root="$pkgdir"
+  
+  install -d "$pkgdir/etc/shadowsocks"
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir/usr/lib/systemd/system/[email protected]"
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir/usr/lib/systemd/system/[email protected]"
+  install -Dm644 "$srcdir/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha512sums=('37a6274c72173370fa8bfaf30fd9adbcf9a166399ef05239a0a8a815be7313dee8b0694ea0caeef99ef9e4d42fee062126ea91cfd23d4a04e55ae84e0dbc1a1d'
+            
'36c025d78d9d2b355516360c8d4642290dc4102543eb4b1473a6f3201785ef28727ff9cb662757f013a62fa4a73f62a2655508a5ae554e124404fc3077aef8cb'
+            
'96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
+            
'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')

Copied: shadowsocks/repos/community-testing-any/[email protected] 
(from rev 112728, shadowsocks/trunk/[email protected])
===================================================================
--- community-testing-any/[email protected]                           
(rev 0)
+++ community-testing-any/[email protected]   2014-06-05 17:01:07 UTC 
(rev 112729)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Shadowsocks Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/ssserver -c /etc/shadowsocks/%i.json
+
+[Install]
+WantedBy=multi-user.target
+

Copied: shadowsocks/repos/community-testing-any/shadowsocks.install (from rev 
112728, shadowsocks/trunk/shadowsocks.install)
===================================================================
--- community-testing-any/shadowsocks.install                           (rev 0)
+++ community-testing-any/shadowsocks.install   2014-06-05 17:01:07 UTC (rev 
112729)
@@ -0,0 +1,5 @@
+post_install() {
+    echo "You can use profiled systemd units to start/stop shadowsocks: 
(Profiles are placed under /etc/shadowsocks/*.json)"
+    echo "# systemctl start/stop shadowsocks[-server]@<conf-name>"
+}
+

Copied: shadowsocks/repos/community-testing-any/[email protected] (from rev 
112728, shadowsocks/trunk/[email protected])
===================================================================
--- community-testing-any/[email protected]                          (rev 0)
+++ community-testing-any/[email protected]  2014-06-05 17:01:07 UTC (rev 
112729)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Shadowsocks Client Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/sslocal -c /etc/shadowsocks/%i.json
+
+[Install]
+WantedBy=multi-user.target
+

Reply via email to