feature test
Some checks failed
Build packages / discover (push) Failing after 2m6s
Build packages / build (push) Has been skipped

This commit is contained in:
paltovkone
2026-03-07 18:32:45 +04:00
commit e922074ba0
10 changed files with 216 additions and 0 deletions

BIN
v2ray/.DS_Store vendored Normal file

Binary file not shown.

1
v2ray/VERSION Normal file
View File

@ -0,0 +1 @@
5.46.0

35
v2ray/nfpm.yaml Normal file
View File

@ -0,0 +1,35 @@
name: v2ray
version: ${VERSION}
arch: amd64
platform: linux
maintainer: nakolenke <apt@nakolenke.org>
description: V2Ray proxy tool (v2fly/v2ray-core)
license: MIT
depends:
- systemd
contents:
- src: dist/v2ray
dst: /usr/bin/v2ray
file_info:
mode: 0755
- src: dist/geoip.dat
dst: /usr/share/v2ray/geoip.dat
- src: dist/geosite.dat
dst: /usr/share/v2ray/geosite.dat
- src: dist/config.json
dst: /etc/v2ray/config.json
type: config|noreplace
- src: dist/systemd/system/v2ray.service
dst: /lib/systemd/system/v2ray.service
- src: dist/systemd/system/v2ray@.service
dst: /lib/systemd/system/v2ray@.service
scripts:
postinstall: scripts/postinstall.sh
preremove: scripts/preremove.sh

View File

@ -0,0 +1,7 @@
# v2ray/scripts/download.sh
#!/bin/bash
VERSION=$1
wget -q "https://github.com/v2fly/v2ray-core/releases/download/v${VERSION}/v2ray-linux-64.zip"
mkdir -p dist
unzip -q v2ray-linux-64.zip -d dist/
chmod +x dist/v2ray

View File

@ -0,0 +1,3 @@
#!/bin/bash
systemctl daemon-reload
systemctl enable v2ray

View File

@ -0,0 +1,3 @@
#!/bin/bash
systemctl stop v2ray || true
systemctl disable v2ray || true