Date: Wednesday, February 8, 2023 @ 17:43:43 Author: felixonmars Revision: 1396237
archrelease: copy trunk to community-x86_64 Added: kcptun/repos/community-x86_64/PKGBUILD (from rev 1396236, kcptun/trunk/PKGBUILD) kcptun/repos/community-x86_64/kcptun-server@.service (from rev 1396236, kcptun/trunk/kcptun-server@.service) kcptun/repos/community-x86_64/kcptun@.service (from rev 1396236, 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 | 107 +++++++++++++++++++++++------------------------ kcptun-server@.service | 22 ++++----- kcptun@.service | 26 +++++------ 3 files changed, 78 insertions(+), 77 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-02-08 17:43:22 UTC (rev 1396236) +++ PKGBUILD 2023-02-08 17:43:43 UTC (rev 1396237) @@ -1,53 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Kasei Wang <cnsdwpc at gmail.com> - -pkgname=kcptun -pkgver=20221015 -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' 'git') -options=('!lto') -source=("$pkgname-$pkgver.tar.gz::https://github.com/xtaci/kcptun/archive/v$pkgver.tar.gz" - 'kcptun@.service' 'kcptun-server@.service') -sha512sums=('04a23acd033f3a05abadae1dadd80199a01860e83a7858ac1c6796f3d01ed8e0da1ccfe3408d9de499aecaa76849019c8ecfb1d2300df5edc66968df811ea508' - 'f6041eae26db4f11bf6dc22443548354114b8b5a2a436949513a168d5b271707e680dd1d6bdcfc4385945ae2cb1bc82736e605ca49c6c94904922b43d1917a5c' - '88607e7c6cba7628bf2c9229396fcf285227c56d2fd208f3d0200fb670f8919939ef05aa5e87fc3aceedb4f41e5bca597138c88930a23dbe4b03e22b42d64cec') - -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() { - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - - cd "$srcdir"/kcptun-$pkgver/client - go build -o build/kcptun-client -ldflags "-X main.VERSION=$pkgver -extldflags=${LDFLAGS}" # -gccgoflags "$CFLAGS $LDFLAGS" - - cd "$srcdir"/kcptun-$pkgver/server - go build -o build/kcptun-server -ldflags "-X main.VERSION=$pkgver -extldflags=${LDFLAGS}" # -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 1396236, kcptun/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-02-08 17:43:43 UTC (rev 1396237) @@ -0,0 +1,54 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Kasei Wang <cnsdwpc at gmail.com> + +pkgname=kcptun +pkgver=20230207 +_commit=86f2e5b066adec276e4bd72257b581ca95d64202 +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' 'git') +options=('!lto') +source=("git+https://github.com/xtaci/kcptun.git#commit=$_commit" + 'kcptun@.service' 'kcptun-server@.service') +sha512sums=('SKIP' + 'f6041eae26db4f11bf6dc22443548354114b8b5a2a436949513a168d5b271707e680dd1d6bdcfc4385945ae2cb1bc82736e605ca49c6c94904922b43d1917a5c' + '88607e7c6cba7628bf2c9229396fcf285227c56d2fd208f3d0200fb670f8919939ef05aa5e87fc3aceedb4f41e5bca597138c88930a23dbe4b03e22b42d64cec') + +prepare() { + cd kcptun + + mkdir -p .gopath/src/github.com/xtaci + ln -sf "$PWD" .gopath/src/github.com/xtaci/kcptun + export GOPATH="$PWD/.gopath:/usr/share/gocode" +} + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + + cd "$srcdir"/kcptun/client + go build -o build/kcptun-client -ldflags "-X main.VERSION=$pkgver -extldflags=${LDFLAGS}" # -gccgoflags "$CFLAGS $LDFLAGS" + + cd "$srcdir"/kcptun/server + go build -o build/kcptun-server -ldflags "-X main.VERSION=$pkgver -extldflags=${LDFLAGS}" # -gccgoflags "$CFLAGS $LDFLAGS" +} + +package() { + cd kcptun + + install -Dm755 client/build/kcptun-client -t "$pkgdir"/usr/bin/ + install -Dm755 server/build/kcptun-server -t "$pkgdir"/usr/bin/ + + install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/ + + install -dm755 "$pkgdir"/etc/kcptun + install -Dm644 "$srcdir"/kcptun@.service -t "$pkgdir"/usr/lib/systemd/system/ + install -Dm644 "$srcdir"/kcptun-server@.service -t "$pkgdir"/usr/lib/systemd/system/ +} Deleted: kcptun-server@.service =================================================================== --- kcptun-server@.service 2023-02-08 17:43:22 UTC (rev 1396236) +++ kcptun-server@.service 2023-02-08 17:43:43 UTC (rev 1396237) @@ -1,11 +0,0 @@ -[Unit] -Description=Kcptun Server Service -After=network.target - -[Service] -Type=exec -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 1396236, kcptun/trunk/kcptun-server@.service) =================================================================== --- kcptun-server@.service (rev 0) +++ kcptun-server@.service 2023-02-08 17:43:43 UTC (rev 1396237) @@ -0,0 +1,11 @@ +[Unit] +Description=Kcptun Server Service +After=network.target + +[Service] +Type=exec +User=nobody +ExecStart=/usr/bin/kcptun-server -c /etc/kcptun/%i.json + +[Install] +WantedBy=multi-user.target Deleted: kcptun@.service =================================================================== --- kcptun@.service 2023-02-08 17:43:22 UTC (rev 1396236) +++ kcptun@.service 2023-02-08 17:43:43 UTC (rev 1396237) @@ -1,13 +0,0 @@ -[Unit] -Description=Kcptun Client Service -After=network.target - -[Service] -Type=exec -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 1396236, kcptun/trunk/kcptun@.service) =================================================================== --- kcptun@.service (rev 0) +++ kcptun@.service 2023-02-08 17:43:43 UTC (rev 1396237) @@ -0,0 +1,13 @@ +[Unit] +Description=Kcptun Client Service +After=network.target + +[Service] +Type=exec +User=nobody +ExecStart=/usr/bin/kcptun-client -c /etc/kcptun/%i.json +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target