Date: Friday, March 17, 2017 @ 09:31:42
  Author: felixonmars
Revision: 216926

archrelease: copy trunk to community-i686, community-x86_64

Added:
  kcptun/repos/community-i686/
  kcptun/repos/community-i686/PKGBUILD
    (from rev 216925, kcptun/trunk/PKGBUILD)
  kcptun/repos/community-i686/[email protected]
    (from rev 216925, kcptun/trunk/[email protected])
  kcptun/repos/community-i686/[email protected]
    (from rev 216925, kcptun/trunk/[email protected])
  kcptun/repos/community-x86_64/
  kcptun/repos/community-x86_64/PKGBUILD
    (from rev 216925, kcptun/trunk/PKGBUILD)
  kcptun/repos/community-x86_64/[email protected]
    (from rev 216925, kcptun/trunk/[email protected])
  kcptun/repos/community-x86_64/[email protected]
    (from rev 216925, kcptun/trunk/[email protected])

-----------------------------------------+
 community-i686/PKGBUILD                 |   51 ++++++++++++++++++++++++++++++
 community-i686/[email protected]   |   11 ++++++
 community-i686/[email protected]          |   13 +++++++
 community-x86_64/PKGBUILD               |   51 ++++++++++++++++++++++++++++++
 community-x86_64/[email protected] |   11 ++++++
 community-x86_64/[email protected]        |   13 +++++++
 6 files changed, 150 insertions(+)

Copied: kcptun/repos/community-i686/PKGBUILD (from rev 216925, 
kcptun/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2017-03-17 09:31:42 UTC (rev 216926)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Kasei Wang <cnsdwpc at gmail.com>
+
+pkgname=kcptun
+pkgver=20170315
+pkgrel=1
+pkgdesc="A Secure Tunnel Based On KCP with N:M Multiplexing"
+arch=('i686' 'x86_64')
+url="https://github.com/xtaci/kcptun";
+license=('MIT')
+depends=('glibc')
+makedepends=('go' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/xtaci/kcptun/archive/v$pkgver.tar.gz";
+        '[email protected]' '[email protected]')
+sha512sums=('c5e1e59e8c497dedc8f477fcd9159faf8bfa9bd28f4c1de8fa711e9a023d934a2c50861883cc00c1305704e77e2d4f35038f1e9ddd8567c7619eeae3f8cfc0fa'
+            
'6fbe0bd687ec9927fe46484f97a0e1a7605c74af673d2a2257a41819bcbf8b704c1ab8b063993251fc3803fa3caf38b7bfc3cededbd7fe1b57c5e2d234c2e6f6'
+            
'5526608f2f5056462813812436605d537a5da950d7d2b5b93dab1da443b25ebf15f69609d18ba1c318b0cc75fcc2a8e14f0d33ff7765035063dd89c041b1bd11')
+
+prepare() {
+  cd kcptun-$pkgver
+
+  mkdir build
+  mkdir -p .gopath/src/github.com/xtaci
+  ln -sf "$PWD" .gopath/src/github.com/xtaci/kcptun
+  export GOPATH="$PWD/.gopath"
+
+  go get golang.org/x/crypto/pbkdf2 github.com/xtaci/smux 
github.com/xtaci/kcp-go \
+         github.com/urfave/cli github.com/pkg/errors github.com/golang/snappy
+}
+
+build() {
+  cd "$srcdir"/kcptun-$pkgver/client
+  go build -o build/kcptun-client -ldflags "-X main.VERSION=$pkgver" # 
-gccgoflags "$CFLAGS $LDFLAGS"
+
+  cd "$srcdir"/kcptun-$pkgver/server
+  go build -o build/kcptun-server -ldflags "-X main.VERSION=$pkgver" # 
-gccgoflags "$CFLAGS $LDFLAGS"
+}
+
+package() {
+  cd kcptun-$pkgver
+
+  install -Dm755 client/build/kcptun-client "$pkgdir"/usr/bin/kcptun-client
+  install -Dm755 server/build/kcptun-server "$pkgdir"/usr/bin/kcptun-server
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+
+  install -dm755 "$pkgdir"/etc/kcptun
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir"/usr/lib/systemd/system/[email protected]
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir"/usr/lib/systemd/system/[email protected]
+}

Copied: kcptun/repos/community-i686/[email protected] (from rev 216925, 
kcptun/trunk/[email protected])
===================================================================
--- community-i686/[email protected]                               (rev 0)
+++ community-i686/[email protected]       2017-03-17 09:31:42 UTC (rev 
216926)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Kcptun Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/kcptun-server -c /etc/kcptun/%i.json
+
+[Install]
+WantedBy=multi-user.target

Copied: kcptun/repos/community-i686/[email protected] (from rev 216925, 
kcptun/trunk/[email protected])
===================================================================
--- community-i686/[email protected]                              (rev 0)
+++ community-i686/[email protected]      2017-03-17 09:31:42 UTC (rev 216926)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Kcptun Client Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/kcptun-client -c /etc/kcptun/%i.json
+Restart=always
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target

Copied: kcptun/repos/community-x86_64/PKGBUILD (from rev 216925, 
kcptun/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2017-03-17 09:31:42 UTC (rev 216926)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Kasei Wang <cnsdwpc at gmail.com>
+
+pkgname=kcptun
+pkgver=20170315
+pkgrel=1
+pkgdesc="A Secure Tunnel Based On KCP with N:M Multiplexing"
+arch=('i686' 'x86_64')
+url="https://github.com/xtaci/kcptun";
+license=('MIT')
+depends=('glibc')
+makedepends=('go' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/xtaci/kcptun/archive/v$pkgver.tar.gz";
+        '[email protected]' '[email protected]')
+sha512sums=('c5e1e59e8c497dedc8f477fcd9159faf8bfa9bd28f4c1de8fa711e9a023d934a2c50861883cc00c1305704e77e2d4f35038f1e9ddd8567c7619eeae3f8cfc0fa'
+            
'6fbe0bd687ec9927fe46484f97a0e1a7605c74af673d2a2257a41819bcbf8b704c1ab8b063993251fc3803fa3caf38b7bfc3cededbd7fe1b57c5e2d234c2e6f6'
+            
'5526608f2f5056462813812436605d537a5da950d7d2b5b93dab1da443b25ebf15f69609d18ba1c318b0cc75fcc2a8e14f0d33ff7765035063dd89c041b1bd11')
+
+prepare() {
+  cd kcptun-$pkgver
+
+  mkdir build
+  mkdir -p .gopath/src/github.com/xtaci
+  ln -sf "$PWD" .gopath/src/github.com/xtaci/kcptun
+  export GOPATH="$PWD/.gopath"
+
+  go get golang.org/x/crypto/pbkdf2 github.com/xtaci/smux 
github.com/xtaci/kcp-go \
+         github.com/urfave/cli github.com/pkg/errors github.com/golang/snappy
+}
+
+build() {
+  cd "$srcdir"/kcptun-$pkgver/client
+  go build -o build/kcptun-client -ldflags "-X main.VERSION=$pkgver" # 
-gccgoflags "$CFLAGS $LDFLAGS"
+
+  cd "$srcdir"/kcptun-$pkgver/server
+  go build -o build/kcptun-server -ldflags "-X main.VERSION=$pkgver" # 
-gccgoflags "$CFLAGS $LDFLAGS"
+}
+
+package() {
+  cd kcptun-$pkgver
+
+  install -Dm755 client/build/kcptun-client "$pkgdir"/usr/bin/kcptun-client
+  install -Dm755 server/build/kcptun-server "$pkgdir"/usr/bin/kcptun-server
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+
+  install -dm755 "$pkgdir"/etc/kcptun
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir"/usr/lib/systemd/system/[email protected]
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir"/usr/lib/systemd/system/[email protected]
+}

Copied: kcptun/repos/community-x86_64/[email protected] (from rev 216925, 
kcptun/trunk/[email protected])
===================================================================
--- community-x86_64/[email protected]                             (rev 0)
+++ community-x86_64/[email protected]     2017-03-17 09:31:42 UTC (rev 
216926)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Kcptun Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/kcptun-server -c /etc/kcptun/%i.json
+
+[Install]
+WantedBy=multi-user.target

Copied: kcptun/repos/community-x86_64/[email protected] (from rev 216925, 
kcptun/trunk/[email protected])
===================================================================
--- community-x86_64/[email protected]                            (rev 0)
+++ community-x86_64/[email protected]    2017-03-17 09:31:42 UTC (rev 216926)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Kcptun Client Service
+After=network.target
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/kcptun-client -c /etc/kcptun/%i.json
+Restart=always
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target

Reply via email to