net/v2ray: Cleanup Makefile

- Use = instead of += for GO_BUILDFLAGS
- Move PLIST_FILES to pkg-plist

Reviewed by:	koobs
Approved by:	koobs (mentor)
Suggested by:	mat
Differential Revision:	https://reviews.freebsd.org/D20238
This commit is contained in:
Fukang Chen 2019-05-12 03:46:30 +00:00
parent 575cdf6541
commit 02a5c9fb09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501359
2 changed files with 8 additions and 9 deletions

View File

@ -17,20 +17,12 @@ USES= go zip
NO_WRKSUBDIR= yes
WRKSRC= ${WRKDIR}/src
GO_BUILDFLAGS+= --ldflags '-s -w'
GO_BUILDFLAGS= --ldflags '-s -w'
USE_RC_SUBR= v2ray
USERS= v2ray
GROUPS= v2ray
PLIST_FILES= bin/v2ray \
bin/v2ctl \
"@sample ${ETCDIR}/config.json.sample" \
${ETCDIR}/vpoint_socks_vmess.json \
${ETCDIR}/vpoint_vmess_freedom.json \
${DATADIR}/geoip.dat \
${DATADIR}/geosite.dat
SUB_LIST= USER="${USERS}" \
GROUP="${GROUPS}"

7
net/v2ray/pkg-plist Normal file
View File

@ -0,0 +1,7 @@
bin/v2ray
bin/v2ctl
@sample %%ETCDIR%%/config.json.sample
%%ETCDIR%%/vpoint_socks_vmess.json
%%ETCDIR%%/vpoint_vmess_freedom.json
%%DATADIR%%/geoip.dat
%%DATADIR%%/geosite.dat