Date: Tuesday, July 9, 2019 @ 15:36:17 Author: felixonmars Revision: 488033
archrelease: copy trunk to community-x86_64 Added: kcptun/repos/community-x86_64/PKGBUILD (from rev 488026, kcptun/trunk/PKGBUILD) kcptun/repos/community-x86_64/kcptun-server@.service (from rev 488027, kcptun/trunk/kcptun-server@.service) kcptun/repos/community-x86_64/kcptun@.service (from rev 488028, kcptun/trunk/kcptun@.service) Deleted: kcptun/repos/community-x86_64/PKGBUILD kcptun/repos/community-x86_64/kcptun-server@.service kcptun/repos/community-x86_64/kcptun@.service ------------------------+ PKGBUILD | 92 +++++++++++++++++++++++------------------------ kcptun-server@.service | 22 +++++------ kcptun@.service | 26 ++++++------- 3 files changed, 70 insertions(+), 70 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-07-09 15:36:15 UTC (rev 488032) +++ PKGBUILD 2019-07-09 15:36:17 UTC (rev 488033) @@ -1,46 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Kasei Wang <cnsdwpc at gmail.com> - -pkgname=kcptun -pkgver=20190611 -pkgrel=1 -pkgdesc="A Secure Tunnel Based On KCP with N:M Multiplexing" -arch=('x86_64') -url="https://github.com/xtaci/kcptun" -license=('MIT') -depends=('glibc') -makedepends=('go-pie' 'git') -source=("$pkgname-$pkgver.tar.gz::https://github.com/xtaci/kcptun/archive/v$pkgver.tar.gz" - 'kcptun@.service' 'kcptun-server@.service') -sha512sums=('d84700847fae21f3b80a25343b3b622f872e46bc9741de6702988d62504acac87ca20b57cd83a1bc12a75db4c168dbf1b9faa238533026465433a4de7476ec68' - '6fbe0bd687ec9927fe46484f97a0e1a7605c74af673d2a2257a41819bcbf8b704c1ab8b063993251fc3803fa3caf38b7bfc3cededbd7fe1b57c5e2d234c2e6f6' - '5526608f2f5056462813812436605d537a5da950d7d2b5b93dab1da443b25ebf15f69609d18ba1c318b0cc75fcc2a8e14f0d33ff7765035063dd89c041b1bd11') - -prepare() { - cd kcptun-$pkgver - - mkdir -p .gopath/src/github.com/xtaci - ln -sf "$PWD" .gopath/src/github.com/xtaci/kcptun - export GOPATH="$PWD/.gopath:/usr/share/gocode" -} - -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/kcptun@.service" "$pkgdir"/usr/lib/systemd/system/kcptun@.service - install -Dm644 "$srcdir/kcptun-server@.service" "$pkgdir"/usr/lib/systemd/system/kcptun-server@.service -} Copied: kcptun/repos/community-x86_64/PKGBUILD (from rev 488026, kcptun/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-07-09 15:36:17 UTC (rev 488033) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Kasei Wang <cnsdwpc at gmail.com> + +pkgname=kcptun +pkgver=20190709 +pkgrel=1 +pkgdesc="A Secure Tunnel Based On KCP with N:M Multiplexing" +arch=('x86_64') +url="https://github.com/xtaci/kcptun" +license=('MIT') +depends=('glibc') +makedepends=('go-pie' 'git') +source=("$pkgname-$pkgver.tar.gz::https://github.com/xtaci/kcptun/archive/v$pkgver.tar.gz" + 'kcptun@.service' 'kcptun-server@.service') +sha512sums=('cc60441ea154fc4772a274d1ecb93e91ed81014b7bc542c0e111dae64b988fe6722510efe20154ccdc8d2248eeb5f0a1e2ec33a7360c6501b40e8114fb528e5a' + '6fbe0bd687ec9927fe46484f97a0e1a7605c74af673d2a2257a41819bcbf8b704c1ab8b063993251fc3803fa3caf38b7bfc3cededbd7fe1b57c5e2d234c2e6f6' + '5526608f2f5056462813812436605d537a5da950d7d2b5b93dab1da443b25ebf15f69609d18ba1c318b0cc75fcc2a8e14f0d33ff7765035063dd89c041b1bd11') + +prepare() { + cd kcptun-$pkgver + + mkdir -p .gopath/src/github.com/xtaci + ln -sf "$PWD" .gopath/src/github.com/xtaci/kcptun + export GOPATH="$PWD/.gopath:/usr/share/gocode" +} + +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/kcptun@.service" "$pkgdir"/usr/lib/systemd/system/kcptun@.service + install -Dm644 "$srcdir/kcptun-server@.service" "$pkgdir"/usr/lib/systemd/system/kcptun-server@.service +} Deleted: kcptun-server@.service =================================================================== --- kcptun-server@.service 2019-07-09 15:36:15 UTC (rev 488032) +++ kcptun-server@.service 2019-07-09 15:36:17 UTC (rev 488033) @@ -1,11 +0,0 @@ -[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/kcptun-server@.service (from rev 488027, kcptun/trunk/kcptun-server@.service) =================================================================== --- kcptun-server@.service (rev 0) +++ kcptun-server@.service 2019-07-09 15:36:17 UTC (rev 488033) @@ -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 Deleted: kcptun@.service =================================================================== --- kcptun@.service 2019-07-09 15:36:15 UTC (rev 488032) +++ kcptun@.service 2019-07-09 15:36:17 UTC (rev 488033) @@ -1,13 +0,0 @@ -[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/kcptun@.service (from rev 488028, kcptun/trunk/kcptun@.service) =================================================================== --- kcptun@.service (rev 0) +++ kcptun@.service 2019-07-09 15:36:17 UTC (rev 488033) @@ -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