[arch-commits] Commit in v2ray/repos/community-x86_64 (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Jun 3 16:32:41 UTC 2020
Date: Wednesday, June 3, 2020 @ 16:32:40
Author: felixonmars
Revision: 638278
archrelease: copy trunk to community-x86_64
Added:
v2ray/repos/community-x86_64/PKGBUILD
(from rev 638277, v2ray/trunk/PKGBUILD)
v2ray/repos/community-x86_64/v2ray.service
(from rev 638277, v2ray/trunk/v2ray.service)
Deleted:
v2ray/repos/community-x86_64/PKGBUILD
v2ray/repos/community-x86_64/v2ray.service
---------------+
PKGBUILD | 96 ++++++++++++++++++++++++++++----------------------------
v2ray.service | 26 +++++++--------
2 files changed, 61 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-03 16:32:22 UTC (rev 638277)
+++ PKGBUILD 2020-06-03 16:32:40 UTC (rev 638278)
@@ -1,48 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.23.3
-pkgrel=1
-pkgdesc="A platform for building proxies to bypass network restrictions"
-arch=('x86_64')
-url="https://github.com/v2ray/v2ray-core"
-license=('MIT')
-depends=('glibc' 'v2ray-domain-list-community' 'v2ray-geoip')
-makedepends=('go' 'git')
-backup=(etc/v2ray/config.json)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/v2ray/v2ray-core/archive/v$pkgver.tar.gz"
- 'v2ray.service')
-sha512sums=('52dfefad125909751b81ba24e8036fc474c33f120baa97d309595176e4bac29dd25eed6b2e62a1f3a170d522ae1a99ea50f06abe4846d808ae258a1f22851711'
- '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9')
-
-build() {
- cd "v2ray-core-$pkgver"
- export GOFLAGS="-buildmode=pie -trimpath"
- export CGO_LDFLAGS="${LDFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- go build -o v2ray ./main
- go build -o v2ctl ./infra/control/main
-}
-
-check() {
- cd "v2ray-core-$pkgver"
- go test -p 1 -tags json -v -timeout 30m v2ray.com/core/...
-}
-
-package() {
- cd v2ray-core-$pkgver
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/v2ray/LICENSE
- install -Dm644 release/config/systemd/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service
- sed -i -e 's|/usr/bin/v2ray/v2ray|/usr/lib/v2ray/v2ray|' \
- "$pkgdir"/usr/lib/systemd/system/v2ray.service
- install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
- install -Dm755 v2ray -t "$pkgdir"/usr/lib/v2ray/
- install -Dm755 v2ctl -t "$pkgdir"/usr/lib/v2ray/
- install -dm755 "$pkgdir"/usr/bin
- ln -s ../lib/v2ray/v2ray "$pkgdir"/usr/bin/v2ray
- ln -s ../lib/v2ray/v2ctl "$pkgdir"/usr/bin/v2ctl
-
- install -Dm644 "$srcdir"/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray at .service
-}
Copied: v2ray/repos/community-x86_64/PKGBUILD (from rev 638277, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-06-03 16:32:40 UTC (rev 638278)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.23.4
+pkgrel=1
+pkgdesc="A platform for building proxies to bypass network restrictions"
+arch=('x86_64')
+url="https://github.com/v2ray/v2ray-core"
+license=('MIT')
+depends=('glibc' 'v2ray-domain-list-community' 'v2ray-geoip')
+makedepends=('go' 'git')
+backup=(etc/v2ray/config.json)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/v2ray/v2ray-core/archive/v$pkgver.tar.gz"
+ 'v2ray.service')
+sha512sums=('db143c4eca37c0a5e84e2cad6f3d734cc5065c87bf7e25dcde0d139408e9879239bb6ebfdc9524374b0e6cb01f5dd7b81c64ad0a71c75288ec4eeceb6bcbba7d'
+ '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9')
+
+build() {
+ cd "v2ray-core-$pkgver"
+ export GOFLAGS="-buildmode=pie -trimpath"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ go build -o v2ray ./main
+ go build -o v2ctl ./infra/control/main
+}
+
+check() {
+ cd "v2ray-core-$pkgver"
+ go test -p 1 -tags json -v -timeout 30m v2ray.com/core/...
+}
+
+package() {
+ cd v2ray-core-$pkgver
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/v2ray/LICENSE
+ install -Dm644 release/config/systemd/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service
+ sed -i -e 's|/usr/bin/v2ray/v2ray|/usr/lib/v2ray/v2ray|' \
+ "$pkgdir"/usr/lib/systemd/system/v2ray.service
+ install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
+ install -Dm755 v2ray -t "$pkgdir"/usr/lib/v2ray/
+ install -Dm755 v2ctl -t "$pkgdir"/usr/lib/v2ray/
+ install -dm755 "$pkgdir"/usr/bin
+ ln -s ../lib/v2ray/v2ray "$pkgdir"/usr/bin/v2ray
+ ln -s ../lib/v2ray/v2ctl "$pkgdir"/usr/bin/v2ctl
+
+ install -Dm644 "$srcdir"/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray at .service
+}
Deleted: v2ray.service
===================================================================
--- v2ray.service 2020-06-03 16:32:22 UTC (rev 638277)
+++ v2ray.service 2020-06-03 16:32:40 UTC (rev 638278)
@@ -1,13 +0,0 @@
-[Unit]
-Description=V2Ray Service
-After=network.target
-Wants=network.target
-
-[Service]
-Type=exec
-PIDFile=/var/run/v2ray-%i.pid
-ExecStart=/usr/bin/v2ray -config /etc/v2ray/%i.json
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target
Copied: v2ray/repos/community-x86_64/v2ray.service (from rev 638277, v2ray/trunk/v2ray.service)
===================================================================
--- v2ray.service (rev 0)
+++ v2ray.service 2020-06-03 16:32:40 UTC (rev 638278)
@@ -0,0 +1,13 @@
+[Unit]
+Description=V2Ray Service
+After=network.target
+Wants=network.target
+
+[Service]
+Type=exec
+PIDFile=/var/run/v2ray-%i.pid
+ExecStart=/usr/bin/v2ray -config /etc/v2ray/%i.json
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list