FreeBSD Bugzilla – Attachment 201626 Details for
Bug 235418
[NEW PORT] net/v2ray: A platform for building proxies to bypass network restrictions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
v2ray shar
v2ray.shar (text/plain), 4.21 KB, created by
Yanhui Shen
on 2019-02-02 05:10:13 UTC
(
hide
)
Description:
v2ray shar
Filename:
MIME Type:
Creator:
Yanhui Shen
Created:
2019-02-02 05:10:13 UTC
Size:
4.21 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># v2ray ># v2ray/Makefile ># v2ray/distinfo ># v2ray/pkg-descr ># v2ray/files ># v2ray/files/v2ray.in ># >echo c - v2ray >mkdir -p v2ray > /dev/null 2>&1 >echo x - v2ray/Makefile >sed 's/^X//' >v2ray/Makefile << 'b64527c42e105432d11645b29f8296db' >X# $FreeBSD: head/net/v2ray/Makefile $ >X >XPORTNAME= v2ray >XPORTVERSION= 4.14.0 >XCATEGORIES= net >XMASTER_SITES= https://github.com/v2ray/v2ray-core/releases/download/v${PORTRSION}/ >XDIST_SUBDIR= ${PORTNAME} >XDISTFILES= src_all.zip >X >XMAINTAINER= shen.elf@gmail.com >XCOMMENT= A platform for building proxies to bypass network restrictions >X >XLICENSE= MIT >X >XBUILD_DEPENDS= go>0:lang/go >X >XUSES= zip compiler >X >XPLIST_FILES= bin/v2ray \ >X bin/v2ctl \ >X etc/v2ray/config.json.example \ >X share/v2ray/geoip.dat \ >X share/v2ray/geosite.dat >X >XNO_WRKSUBDIR= yes >XWRKSRC= ${WRKDIR}/src >X >XUSE_RC_SUBR= v2ray >X >XUSERS= v2ray >XGROUPS= v2ray >X >XSUB_LIST= USER="${USERS}" \ >X GROUP="${GROUPS}" >X >Xdo-build: >X @cd ${WRKSRC} && \ >X ${SETENV} ${MAKE_ENV} GOPATH=${WRKDIR} go build --ldflags '-s -w' -v -o ${WRKDIR}/bin/v2ray v2ray.com/core/main && \ >X ${SETENV} ${MAKE_ENV} GOPATH=${WRKDIR} go build --ldflags '-s -w' -v -o ${WRKDIR}/bin/v2ctl v2ray.com/ext/tools/control/main >X >Xdo-install: >X ${MKDIR} ${STAGEDIR}${ETCDIR} >X ${MKDIR} ${STAGEDIR}${DATADIR} >X ${INSTALL_PROGRAM} ${WRKDIR}/bin/v2ray ${STAGEDIR}${PREFIX}/bin/v2ray >X ${INSTALL_PROGRAM} ${WRKDIR}/bin/v2ctl ${STAGEDIR}${PREFIX}/bin/v2ctl >X ${INSTALL_DATA} ${WRKSRC}/v2ray.com/core/release/config/config.json ${STAGEDIR}${ETCDIR}/config.json.example >X ${INSTALL_DATA} ${WRKSRC}/v2ray.com/core/release/config/geoip.dat ${STAGEDIR}${DATADIR}/geoip.dat >X ${INSTALL_DATA} ${WRKSRC}/v2ray.com/core/release/config/geosite.dat ${STAGEDIR}${DATADIR}/geosite.dat >X >X.include <bsd.port.mk> >b64527c42e105432d11645b29f8296db >echo x - v2ray/distinfo >sed 's/^X//' >v2ray/distinfo << '67b7dc7a7590cbe5012c519a35f6a1c2' >XSHA256 (v2ray/src_all.zip) = 842a8bf2a2f5787ca854b61697a444e86928650def5bae512b99c52e95230648 >XSIZE (v2ray/src_all.zip) = 31614054 >67b7dc7a7590cbe5012c519a35f6a1c2 >echo x - v2ray/pkg-descr >sed 's/^X//' >v2ray/pkg-descr << '9b3d8ec36997e5c2d0dd4756925b8a58' >XProject V is a set of network tools that help you to build your own computer network. It secures your network connections and thus protects your privacy. >X >XWWW: https://www.v2ray.com/ >9b3d8ec36997e5c2d0dd4756925b8a58 >echo c - v2ray/files >mkdir -p v2ray/files > /dev/null 2>&1 >echo x - v2ray/files/v2ray.in >sed 's/^X//' >v2ray/files/v2ray.in << '2940f507ddd67d60c2f81143b7d97828' >X#!/bin/sh >X >X# PROVIDE: v2ray >X# KEYWORD: shutdown >X >X# Add these lines to /etc/rc.conf.local or /etc/rc.conf to enable `v2ray': >X# >X# v2ray_enable (bool): Set to "NO" by default. >X# Set it to "YES" to enable v2ray >X# v2ray_config (path): Set to "/usr/local/etc/v2ray/config.json" by default >X# Set it to the v2ray server config >X# v2ray_logdir (path): Set to "/var/log/v2ray" by default. >X# Set it to the directory of v2ray log files >X# v2ray_env (str): Set to "" by default. >X# Set it to the desired environment variables >X >X. /etc/rc.subr >X >Xname="v2ray" >Xrcvar="${name}_enable" >X >X: ${v2ray_enable="NO"} >X: ${v2ray_config="/usr/local/etc/$name/config.json"} >X: ${v2ray_logdir="/var/log/${name}"} >X: ${v2ray_env=""} >X: ${v2ray_user="v2ray"} >X: ${v2ray_group="v2ray"} >X >Xasset_env="V2RAY_LOCATION_ASSET=/usr/local/share/$name" >Xpidfile="/var/run/$name.pid" >Xprocname="/usr/local/bin/$name" >Xcommand="/usr/sbin/daemon" >Xcommand_args="-c -p ${pidfile} /usr/bin/env ${asset_env} ${v2ray_env} ${procname} -config ${v2ray_config}" >Xrequired_files="${v2ray_config}" >X >Xstart_precmd="v2ray_startprecmd" >X >Xv2ray_startprecmd() { >X touch "${pidfile}" >X chown ${v2ray_user}:${v2ray_group} "${pidfile}" >X mkdir -p "${v2ray_logdir}" >X chown -R ${v2ray_user}:${v2ray_group} "${v2ray_logdir}" >X} >X >Xload_rc_config "$name" >Xrun_rc_command "$1" >2940f507ddd67d60c2f81143b7d97828 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 235418
:
201626
|
201627
|
201628
|
201629
|
201633
|
201649