feature test
This commit is contained in:
BIN
v2ray/.DS_Store
vendored
Normal file
BIN
v2ray/.DS_Store
vendored
Normal file
Binary file not shown.
1
v2ray/VERSION
Normal file
1
v2ray/VERSION
Normal file
@ -0,0 +1 @@
|
||||
5.46.0
|
||||
35
v2ray/nfpm.yaml
Normal file
35
v2ray/nfpm.yaml
Normal 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
|
||||
7
v2ray/scripts/download.sh
Normal file
7
v2ray/scripts/download.sh
Normal 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
|
||||
3
v2ray/scripts/postinstall.sh
Normal file
3
v2ray/scripts/postinstall.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
systemctl daemon-reload
|
||||
systemctl enable v2ray
|
||||
3
v2ray/scripts/preremove.sh
Normal file
3
v2ray/scripts/preremove.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
systemctl stop v2ray || true
|
||||
systemctl disable v2ray || true
|
||||
Reference in New Issue
Block a user