Commit 186ec7db authored by Leo's avatar Leo
Browse files

testing/v2ray: update geoip data

parent 965471dc
Pipeline #93476 failed with stages
in 15 minutes and 28 seconds
......@@ -2,19 +2,20 @@
# Maintainer: nibon7 <nibon7@163.com>
pkgname=v2ray
pkgver=4.41.1
pkgrel=1
pkgrel=2
pkgdesc="A platform for building proxies to bypass network restrictions"
url="https://v2fly.org"
arch="" # https://github.com/v2fly/v2ray-core/issues/1265
arch="all" # https://github.com/v2fly/v2ray-core/issues/1265
license="MIT"
options="chmod-clean"
makedepends="go"
subpackages="$pkgname-openrc"
_geosite_ver=20210816014827
_geoip_ver=202108190022
_geosite_ver=20210910080130
_geoip_ver=202109102251
source="$pkgname-core-$pkgver.tar.gz::https://github.com/v2fly/v2ray-core/archive/v$pkgver.tar.gz
geosite-$_geosite_ver.dat::https://github.com/v2fly/domain-list-community/releases/download/$_geosite_ver/dlc.dat
geoip-$_geoip_ver.dat::https://github.com/v2fly/geoip/releases/download/$_geoip_ver/geoip.dat
geoip-only-cn-private-$_geoip_ver.dat::https://github.com/v2fly/geoip/releases/download/$_geoip_ver/geoip-only-cn-private.dat
v2ray.initd
"
......@@ -24,9 +25,9 @@ export CGO_ENABLED=0
build() {
local ldflags="
-X v2ray.com/core.codename=$pkgname
-X v2ray.com/core.version=$pkgver
-X v2ray.com/core.build=$(date -u +%Y-%m-%dT%H:%M:%S%z)
-X github.com/v2fly/v2ray-core/v4.codename=$pkgname
-X github.com/v2fly/v2ray-core/v4.version=$pkgver
-X github.com/v2fly/v2ray-core/v4.build=$SOURCE_DATE_EPOCH
-s -w -buildid=
"
go build -trimpath -ldflags "$ldflags" -o v2ray ./main
......@@ -69,6 +70,8 @@ package() {
"$pkgdir"/usr/share/$pkgname/geosite.dat
install -m644 "$srcdir"/geoip-$_geoip_ver.dat \
"$pkgdir"/usr/share/$pkgname/geoip.dat
install -Dm644 "$srcdir"/geoip-only-cn-private-$_geoip_ver.dat \
"$pkgdir"/usr/share/$pkgname/geoip-only-cn-private.dat
install -Dm755 v2ray "$pkgdir"/usr/bin/v2ray
install -Dm755 v2ctl "$pkgdir"/usr/bin/v2ctl
......@@ -76,7 +79,10 @@ package() {
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
sha512sums="d47c1ce4e1b1340c404394b75fd6e4c4a74dcb2d135b55669b7eb88d32cdbe49e8e46d3daee0b9c9d0a881e219f111e28db5ca45fc4ee3bc2388d3937acb88e8 v2ray-core-4.41.1.tar.gz
c9cf2290c0c1abecb32bf270c899156921711401e24de08b8506dc8dd41d96e1f3ca8328c2eef5017fcfbc9cee1ee5a803bb3a26773be5e0a3b05858cdc20621 geosite-20210816014827.dat
5f50d4d74875dc076cb8b9ca9a029de8280f270febe7c8d82589b4a35ecf24e77d6de25126e400b542d9c9b30b4a5ed5e293b9d9319ff514e1577fcd12f1c2cb geoip-202108190022.dat
f22cd2ef4182a003a4e0f94a550e5805c6c30d608d9e655c98e850b5fd8b3785c30df9a8e07c2d5460e6dac9088316f901018a89143e47c9da168e3aee3b94ca v2ray.initd"
sha512sums="
d47c1ce4e1b1340c404394b75fd6e4c4a74dcb2d135b55669b7eb88d32cdbe49e8e46d3daee0b9c9d0a881e219f111e28db5ca45fc4ee3bc2388d3937acb88e8 v2ray-core-4.41.1.tar.gz
6d67a29a4eb3b2b558e26dcf56a56d576c7bf7b2f6270be8da72b67433381eec41ae17869870eb924e074d0275aa4cbe14c682ab48c8a718c971c4e2acbef4c9 geosite-20210910080130.dat
03c8bb1d490d197f3eee5e9177f736567b166d8c6a569bca5b241dd5936b182c627f3289da57ccb52b7e9c9c5ca3125fb5e4e3b32c8d08d4b72910f4f88e4bd3 geoip-202109102251.dat
a2b5a1be937e8e1173ad4c4d009d65e5bd8ad0e29df8c53d432846be04bbfef1b0aa1df262b00622cc090d5bbbb283e101741400a4cbbd18f16c3a2a4ef42142 geoip-only-cn-private-202109102251.dat
f22cd2ef4182a003a4e0f94a550e5805c6c30d608d9e655c98e850b5fd8b3785c30df9a8e07c2d5460e6dac9088316f901018a89143e47c9da168e3aee3b94ca v2ray.initd
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment