[arch-commits] Commit in shadowsocks/repos (5 files)

Allan McRae allan at archlinux.org
Mon Sep 21 07:41:21 UTC 2015


    Date: Monday, September 21, 2015 @ 09:41:21
  Author: allan
Revision: 141358

archrelease: copy trunk to community-staging-any

Added:
  shadowsocks/repos/community-staging-any/
  shadowsocks/repos/community-staging-any/PKGBUILD
    (from rev 141357, shadowsocks/trunk/PKGBUILD)
  shadowsocks/repos/community-staging-any/shadowsocks-server at .service
    (from rev 141357, shadowsocks/trunk/shadowsocks-server at .service)
  shadowsocks/repos/community-staging-any/shadowsocks.install
    (from rev 141357, shadowsocks/trunk/shadowsocks.install)
  shadowsocks/repos/community-staging-any/shadowsocks at .service
    (from rev 141357, shadowsocks/trunk/shadowsocks at .service)

-----------------------------+
 PKGBUILD                    |   50 ++++++++++++++++++++++++++++++++++++++++++
 shadowsocks-server at .service |   12 ++++++++++
 shadowsocks.install         |    5 ++++
 shadowsocks at .service        |   12 ++++++++++
 4 files changed, 79 insertions(+)

Copied: shadowsocks/repos/community-staging-any/PKGBUILD (from rev 141357, shadowsocks/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-21 07:41:21 UTC (rev 141358)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=shadowsocks
+pkgver=2.8.2
+pkgrel=2
+pkgdesc="A lightweight tunnel proxy"
+license=('Apache')
+url="http://pypi.python.org/pypi/shadowsocks"
+arch=('any')
+depends=('python' 'python-setuptools')
+optdepends=('libsodium: For salsa20 and chacha20 support')
+makedepends=('git')
+#checkdepends=('dante' 'bind-tools')
+install=${pkgname}.install
+source=("git+https://github.com/shadowsocks/shadowsocks.git#tag=$pkgver"
+        "shadowsocks at .service"
+        "shadowsocks-server at .service")
+sha512sums=('SKIP'
+            '96ecb174a476f64dec3ec086732d93a76d27e9a1cc56b1dc3fa87bf8e00d4b3c44076a01a0d525e42174cacc58fd5c16d5c8af5d4636dae13df549dec8204f7d'
+            'f2f8240c18a4483bf3e03b3a5ac8822c3deae713224f732bf28f7fddfcc5d0b02aa91652665ff93f05731e162a9407109c18f43d732a3a9b19d9eacfc806a4df')
+
+check() {
+  cd shadowsocks
+
+  # Tests require internet access
+  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 shadowsocks
+
+  python setup.py install -O1 --root="$pkgdir"
+
+  install -dm755 "$pkgdir/usr/share/man/man1"
+  install -m644 debian/{ssserver.1,sslocal.1} "$pkgdir/usr/share/man/man1"
+  install -Dm644 debian/config.json "$pkgdir/etc/shadowsocks/example.json"
+
+  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"
+}

Copied: shadowsocks/repos/community-staging-any/shadowsocks-server at .service (from rev 141357, shadowsocks/trunk/shadowsocks-server at .service)
===================================================================
--- community-staging-any/shadowsocks-server at .service	                        (rev 0)
+++ community-staging-any/shadowsocks-server at .service	2015-09-21 07:41:21 UTC (rev 141358)
@@ -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-staging-any/shadowsocks.install (from rev 141357, shadowsocks/trunk/shadowsocks.install)
===================================================================
--- community-staging-any/shadowsocks.install	                        (rev 0)
+++ community-staging-any/shadowsocks.install	2015-09-21 07:41:21 UTC (rev 141358)
@@ -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-staging-any/shadowsocks at .service (from rev 141357, shadowsocks/trunk/shadowsocks at .service)
===================================================================
--- community-staging-any/shadowsocks at .service	                        (rev 0)
+++ community-staging-any/shadowsocks at .service	2015-09-21 07:41:21 UTC (rev 141358)
@@ -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