Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
0ed51548
Commit
0ed51548
authored
May 17, 2019
by
dx0eu
Committed by
Ed Reel
May 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2ray package (#3277)
* v2ray v4.18.0
parent
6db2c161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
packages/v2ray.rb
packages/v2ray.rb
+43
-0
No files found.
packages/v2ray.rb
0 → 100644
View file @
0ed51548
require
'package'
class
V2ray
<
Package
description
'A platform for building proxies to bypass network restrictions.'
homepage
'https://www.v2ray.com/'
version
'v4.18.0'
case
ARCH
when
'aarch64'
,
'armv7l'
source_url
'https://github.com/v2ray/v2ray-core/releases/download/v4.18.0/v2ray-linux-arm.zip'
source_sha256
'9bb0b299c071cf3131dfa6eef822841d6b3fad4f9877a040f70e44e9f7f7d848'
when
'i686'
source_url
'https://github.com/v2ray/v2ray-core/releases/download/v4.18.0/v2ray-linux-32.zip'
source_sha256
'dc9876be5c9631fc23c95d934abb049639e67aa6731fa2b7ba7f160441c44a7d'
when
'x86_64'
source_url
'https://github.com/v2ray/v2ray-core/releases/download/v4.18.0/v2ray-linux-64.zip'
source_sha256
'e3b518795c76b26b6efdc837ebdf01a401b0a153c9758e928bd1cd4df35631ed'
end
def
self
.
install
FileUtils
.
mkdir_p
(
CREW_DEST_PREFIX
+
'/share/v2ray'
)
FileUtils
.
cp_r
(
'.'
,
CREW_DEST_PREFIX
+
'/share/v2ray'
)
FileUtils
.
mkdir_p
(
CREW_DEST_PREFIX
+
'/bin'
)
FileUtils
.
cd
(
CREW_DEST_PREFIX
+
'/bin'
)
do
FileUtils
.
ln_s
(
CREW_PREFIX
+
'/share/v2ray/v2ray'
,
'v2ray'
)
FileUtils
.
ln_s
(
CREW_PREFIX
+
'/share/v2ray/v2ctl'
,
'v2ctl'
)
end
end
def
self
.
postinstall
FileUtils
.
chmod
(
'u=x,go=x'
,
CREW_PREFIX
+
'/share/v2ray/v2ray'
)
FileUtils
.
chmod
(
'u=x,go=x'
,
CREW_PREFIX
+
'/share/v2ray/v2ctl'
)
puts
puts
'To start using v2ray, type `v2ray`.'
.
lightblue
puts
puts
'You can use customer config. about how to use v2ray command, see https://www.v2ray.com/'
.
lightblue
puts
'If you want to remove v2ray'
.
lightblue
puts
puts
'crew remove v2ray'
.
lightblue
puts
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment