[arch-commits] Commit in shadowsocks/repos/community-any (10 files)

Felix Yan fyan at archlinux.org
Thu Nov 6 09:24:21 UTC 2014


    Date: Thursday, November 6, 2014 @ 10:24:21
  Author: fyan
Revision: 122042

archrelease: copy trunk to community-any

Added:
  shadowsocks/repos/community-any/PKGBUILD
    (from rev 122041, shadowsocks/trunk/PKGBUILD)
  shadowsocks/repos/community-any/fix-typeerror.patch
    (from rev 122041, shadowsocks/trunk/fix-typeerror.patch)
  shadowsocks/repos/community-any/shadowsocks-server at .service
    (from rev 122041, shadowsocks/trunk/shadowsocks-server at .service)
  shadowsocks/repos/community-any/shadowsocks.install
    (from rev 122041, shadowsocks/trunk/shadowsocks.install)
  shadowsocks/repos/community-any/shadowsocks at .service
    (from rev 122041, shadowsocks/trunk/shadowsocks at .service)
Deleted:
  shadowsocks/repos/community-any/PKGBUILD
  shadowsocks/repos/community-any/fix-typeerror.patch
  shadowsocks/repos/community-any/shadowsocks-server at .service
  shadowsocks/repos/community-any/shadowsocks.install
  shadowsocks/repos/community-any/shadowsocks at .service

-----------------------------+
 PKGBUILD                    |  107 +++++++++++++++++++-----------------------
 fix-typeerror.patch         |   76 ++++++++++++++---------------
 shadowsocks-server at .service |   24 ++++-----
 shadowsocks.install         |   10 +--
 shadowsocks at .service        |   24 ++++-----
 5 files changed, 117 insertions(+), 124 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-06 09:23:30 UTC (rev 122041)
+++ PKGBUILD	2014-11-06 09:24:21 UTC (rev 122042)
@@ -1,57 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=shadowsocks
-pkgver=2.4.1
-pkgrel=1
-pkgdesc="A lightweight tunnel proxy"
-license=("MIT")
-url="http://pypi.python.org/pypi/shadowsocks"
-depends=('python' 'python-setuptools')
-checkdepends=('python-salsa20')
-optdepends=('python-numpy: For salsa20 support'
-            'python-salsa20: For salsa20 support')
-source=("http://pypi.python.org/packages/source/s/shadowsocks/shadowsocks-${pkgver}.tar.gz"
-        "$pkgname-LICENSE::https://raw.github.com/clowwindy/shadowsocks/master/LICENSE"
-        "shadowsocks at .service"
-        "shadowsocks-server at .service"
-        fix-typeerror.patch)
-arch=('any')
-install=${pkgname}.install
-
-prepare() {
-  cd shadowsocks-$pkgver
-  patch -p1 -i ../fix-typeerror.patch
-}
-
-check() {
-  cd shadowsocks-$pkgver
-
-  # Tests not included
-  return
-  python tests/test.py -c tests/table.json
-  python tests/test.py -c tests/aes.json
-  python tests/test.py -c tests/rc4-md5.json
-  python tests/test.py -c tests/salsa20.json
-  python tests/test.py -c tests/server-multi-ports.json
-  python tests/test.py -c tests/server-multi-passwd.json
-  python tests/test.py -c tests/server-multi-passwd-table.json
-  python tests/test.py -c tests/workers.json
-}
-
-package() {
-  cd "$srcdir/shadowsocks-$pkgver"
-
-  python setup.py install -O1 --root="$pkgdir"
-  
-  install -d "$pkgdir/etc/shadowsocks"
-  install -Dm644 "$srcdir/shadowsocks at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks at .service"
-  install -Dm644 "$srcdir/shadowsocks-server at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks-server at .service"
-  install -Dm644 "$srcdir/$pkgname-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-sha512sums=('d5ef9933555b93b68f9b9436282c6b51a784f3583bbb0dc0285a1e5e7d14ca3173b1f54148c2cac3deb4fe8447ad02ba043aabf646a46dc68497ad36282637e9'
-            '88abf42d51d7b7baa2b9cef016bfd194373fd178980c2c6f1bbb3ce31d3267dfca71efb013c6596c57c0390fdb95d716ff4acca97bdf960e56e9edf16f770352'
-            '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
-            'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df'
-            '78c45e1ab17d62bdb2276e35511e6bbe6dd0b2da53e333e59a44d485729532abdf8a44f59ae42b12a5bba1f9f641657fac68ecfe3ecb2f6fcae7726311d6a90b')

Copied: shadowsocks/repos/community-any/PKGBUILD (from rev 122041, shadowsocks/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-11-06 09:24:21 UTC (rev 122042)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=shadowsocks
+pkgver=2.4.2
+pkgrel=1
+pkgdesc="A lightweight tunnel proxy"
+license=("MIT")
+url="http://pypi.python.org/pypi/shadowsocks"
+depends=('python' 'python-setuptools')
+checkdepends=('python-salsa20')
+optdepends=('python-numpy: For salsa20 support'
+            'python-salsa20: For salsa20 support')
+source=("http://pypi.python.org/packages/source/s/shadowsocks/shadowsocks-${pkgver}.tar.gz"
+        "$pkgname-LICENSE::https://raw.github.com/clowwindy/shadowsocks/master/LICENSE"
+        "shadowsocks at .service"
+        "shadowsocks-server at .service")
+arch=('any')
+install=${pkgname}.install
+
+check() {
+  cd shadowsocks-$pkgver
+
+  # Tests not included
+  return
+  python tests/test.py -c tests/table.json
+  python tests/test.py -c tests/aes.json
+  python tests/test.py -c tests/rc4-md5.json
+  python tests/test.py -c tests/salsa20.json
+  python tests/test.py -c tests/server-multi-ports.json
+  python tests/test.py -c tests/server-multi-passwd.json
+  python tests/test.py -c tests/server-multi-passwd-table.json
+  python tests/test.py -c tests/workers.json
+}
+
+package() {
+  cd "$srcdir/shadowsocks-$pkgver"
+
+  python setup.py install -O1 --root="$pkgdir"
+  
+  install -d "$pkgdir/etc/shadowsocks"
+  install -Dm644 "$srcdir/shadowsocks at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks at .service"
+  install -Dm644 "$srcdir/shadowsocks-server at .service" "$pkgdir/usr/lib/systemd/system/shadowsocks-server at .service"
+  install -Dm644 "$srcdir/$pkgname-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha512sums=('5bc7c85c73011c070b985596d0ae5b36f9df7f405e357ec0f45fe7c593445a2c3b4eaaca837a06f61d3ebb1e015c3cfeef6bfca2d0f363c341d9ff4b50e8b7de'
+            '88abf42d51d7b7baa2b9cef016bfd194373fd178980c2c6f1bbb3ce31d3267dfca71efb013c6596c57c0390fdb95d716ff4acca97bdf960e56e9edf16f770352'
+            '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
+            'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')

Deleted: fix-typeerror.patch
===================================================================
--- fix-typeerror.patch	2014-11-06 09:23:30 UTC (rev 122041)
+++ fix-typeerror.patch	2014-11-06 09:24:21 UTC (rev 122042)
@@ -1,38 +0,0 @@
-From fb27cf52a9a7b72ef8d3e3693623de43a477ebaf Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?=E5=88=98=E7=BC=99?= <jin at wosai-inc.com>
-Date: Wed, 5 Nov 2014 11:04:40 +0800
-Subject: [PATCH] Fix str/byte related TypeError in Python 3.4
-
-Traceback (most recent call last):
-File "/usr/bin/sslocal", line 9, in <module>
-load_entry_point('shadowsocks==2.4', 'console_scripts', 'sslocal')()
-File "/usr/lib/python3.4/site-packages/shadowsocks/local.py", line 68, in main
-loop.run()
-File "/usr/lib/python3.4/site-packages/shadowsocks/eventloop.py", line 230, in run
-handler(events)
-File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 630, in _handle_events
-handler.handle_event(sock, event)
-File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 458, in handle_event
-self._on_local_read()
-File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 377, in _on_local_read
-self._handle_stage_reply(data)
-File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 212, in _handle_stage_reply
-s = remote_sock.sendto(data, MSG_FASTOPEN, self._chosen_server)
-TypeError: 'str' does not support the buffer interface
----
- shadowsocks/tcprelay.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py
-index 4a30b42..6ccadbe 100644
---- a/shadowsocks/tcprelay.py
-+++ b/shadowsocks/tcprelay.py
-@@ -207,7 +207,7 @@ def _handle_stage_reply(self, data):
-                     self._create_remote_socket(self._chosen_server[0],
-                                                self._chosen_server[1])
-                 self._loop.add(remote_sock, eventloop.POLL_ERR)
--                data = ''.join(self._data_to_write_to_local)
-+                data = b''.join(self._data_to_write_to_local)
-                 l = len(data)
-                 s = remote_sock.sendto(data, MSG_FASTOPEN, self._chosen_server)
-                 if s < l:

Copied: shadowsocks/repos/community-any/fix-typeerror.patch (from rev 122041, shadowsocks/trunk/fix-typeerror.patch)
===================================================================
--- fix-typeerror.patch	                        (rev 0)
+++ fix-typeerror.patch	2014-11-06 09:24:21 UTC (rev 122042)
@@ -0,0 +1,38 @@
+From fb27cf52a9a7b72ef8d3e3693623de43a477ebaf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=E5=88=98=E7=BC=99?= <jin at wosai-inc.com>
+Date: Wed, 5 Nov 2014 11:04:40 +0800
+Subject: [PATCH] Fix str/byte related TypeError in Python 3.4
+
+Traceback (most recent call last):
+File "/usr/bin/sslocal", line 9, in <module>
+load_entry_point('shadowsocks==2.4', 'console_scripts', 'sslocal')()
+File "/usr/lib/python3.4/site-packages/shadowsocks/local.py", line 68, in main
+loop.run()
+File "/usr/lib/python3.4/site-packages/shadowsocks/eventloop.py", line 230, in run
+handler(events)
+File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 630, in _handle_events
+handler.handle_event(sock, event)
+File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 458, in handle_event
+self._on_local_read()
+File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 377, in _on_local_read
+self._handle_stage_reply(data)
+File "/usr/lib/python3.4/site-packages/shadowsocks/tcprelay.py", line 212, in _handle_stage_reply
+s = remote_sock.sendto(data, MSG_FASTOPEN, self._chosen_server)
+TypeError: 'str' does not support the buffer interface
+---
+ shadowsocks/tcprelay.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py
+index 4a30b42..6ccadbe 100644
+--- a/shadowsocks/tcprelay.py
++++ b/shadowsocks/tcprelay.py
+@@ -207,7 +207,7 @@ def _handle_stage_reply(self, data):
+                     self._create_remote_socket(self._chosen_server[0],
+                                                self._chosen_server[1])
+                 self._loop.add(remote_sock, eventloop.POLL_ERR)
+-                data = ''.join(self._data_to_write_to_local)
++                data = b''.join(self._data_to_write_to_local)
+                 l = len(data)
+                 s = remote_sock.sendto(data, MSG_FASTOPEN, self._chosen_server)
+                 if s < l:

Deleted: shadowsocks-server at .service
===================================================================
--- shadowsocks-server at .service	2014-11-06 09:23:30 UTC (rev 122041)
+++ shadowsocks-server at .service	2014-11-06 09:24:21 UTC (rev 122042)
@@ -1,12 +0,0 @@
-[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-any/shadowsocks-server at .service (from rev 122041, shadowsocks/trunk/shadowsocks-server at .service)
===================================================================
--- shadowsocks-server at .service	                        (rev 0)
+++ shadowsocks-server at .service	2014-11-06 09:24:21 UTC (rev 122042)
@@ -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
+

Deleted: shadowsocks.install
===================================================================
--- shadowsocks.install	2014-11-06 09:23:30 UTC (rev 122041)
+++ shadowsocks.install	2014-11-06 09:24:21 UTC (rev 122042)
@@ -1,5 +0,0 @@
-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-any/shadowsocks.install (from rev 122041, shadowsocks/trunk/shadowsocks.install)
===================================================================
--- shadowsocks.install	                        (rev 0)
+++ shadowsocks.install	2014-11-06 09:24:21 UTC (rev 122042)
@@ -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>"
+}
+

Deleted: shadowsocks at .service
===================================================================
--- shadowsocks at .service	2014-11-06 09:23:30 UTC (rev 122041)
+++ shadowsocks at .service	2014-11-06 09:24:21 UTC (rev 122042)
@@ -1,12 +0,0 @@
-[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
-

Copied: shadowsocks/repos/community-any/shadowsocks at .service (from rev 122041, shadowsocks/trunk/shadowsocks at .service)
===================================================================
--- shadowsocks at .service	                        (rev 0)
+++ shadowsocks at .service	2014-11-06 09:24:21 UTC (rev 122042)
@@ -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
+



More information about the arch-commits mailing list