[arch-commits] Commit in shadowsocks/repos (5 files)
Felix Yan
fyan at archlinux.org
Sat Nov 1 14:59:30 UTC 2014
Date: Saturday, November 1, 2014 @ 15:59:29
Author: fyan
Revision: 121650
archrelease: copy trunk to community-testing-any
Added:
shadowsocks/repos/community-testing-any/
shadowsocks/repos/community-testing-any/PKGBUILD
(from rev 121649, shadowsocks/trunk/PKGBUILD)
shadowsocks/repos/community-testing-any/shadowsocks-server at .service
(from rev 121649, shadowsocks/trunk/shadowsocks-server at .service)
shadowsocks/repos/community-testing-any/shadowsocks.install
(from rev 121649, shadowsocks/trunk/shadowsocks.install)
shadowsocks/repos/community-testing-any/shadowsocks at .service
(from rev 121649, shadowsocks/trunk/shadowsocks at .service)
-----------------------------+
PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++
shadowsocks-server at .service | 12 +++++++++
shadowsocks.install | 5 ++++
shadowsocks at .service | 12 +++++++++
4 files changed, 80 insertions(+)
Copied: shadowsocks/repos/community-testing-any/PKGBUILD (from rev 121649, shadowsocks/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2014-11-01 14:59:29 UTC (rev 121650)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=shadowsocks
+pkgver=2.4
+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"
+
+ # 2.4: Setting LANG as a workaround for https://github.com/clowwindy/shadowsocks/pull/203
+ LANG=en_US.utf8 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=('b50c27202170bbacb87c7578588756a6c9d612981ff31a494d2e6e3cb56ea229e378a95c99915c2d88d987876ba752807e53c8da5cc84b937bef2a453f0dadb0'
+ '88abf42d51d7b7baa2b9cef016bfd194373fd178980c2c6f1bbb3ce31d3267dfca71efb013c6596c57c0390fdb95d716ff4acca97bdf960e56e9edf16f770352'
+ '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
+ 'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')
Copied: shadowsocks/repos/community-testing-any/shadowsocks-server at .service (from rev 121649, shadowsocks/trunk/shadowsocks-server at .service)
===================================================================
--- community-testing-any/shadowsocks-server at .service (rev 0)
+++ community-testing-any/shadowsocks-server at .service 2014-11-01 14:59:29 UTC (rev 121650)
@@ -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 121649, shadowsocks/trunk/shadowsocks.install)
===================================================================
--- community-testing-any/shadowsocks.install (rev 0)
+++ community-testing-any/shadowsocks.install 2014-11-01 14:59:29 UTC (rev 121650)
@@ -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/shadowsocks at .service (from rev 121649, shadowsocks/trunk/shadowsocks at .service)
===================================================================
--- community-testing-any/shadowsocks at .service (rev 0)
+++ community-testing-any/shadowsocks at .service 2014-11-01 14:59:29 UTC (rev 121650)
@@ -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