Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#67637 - [v2ray] 4.27.0-1 Avoid running through the root user, and some other modifications

Attached to Project: Community Packages
Opened by Dct Mei (dctxmei) - Wednesday, 19 August 2020, 11:34 GMT
Last edited by freswa (frederik) - Wednesday, 19 August 2020, 15:07 GMT
Task Type Feature Request
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Morten Linderud (Foxboron)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



I modified the PKGBUILD of v2ray, v2ray-domain-list-community and v2ray-geoip, generated three patches and attached them to this report, hoping to be applied.

Modified content:

1. Remove the default configuration, because the configuration of V2Ray is very diverse, which should be freely combined by the user.
2. Added v2ray.sysusers, which is used to create v2ray users.
3. Added v2ray.tmpfiles, which is used to create the /var/log/v2ray/ directory.
4. geoip.dat and geosite.dat are placed in /usr/share/v2ray/, this practice has been implemented by V2Fly, see:
5. v2ray.service is downgraded from root user to v2ray user and uses the new -confdir option, which will apply all configuration files under /etc/v2ray/, see:
6. v2ray@.service is also downgraded to v2ray user, but still uses the -config option, see:

And, in the next version, Environment= in v2ray.service and v2ray@.service can be removed, see:

Additional info:
* 4.27.0-1
This task depends upon

Comment by Felix Yan (felixonmars) - Wednesday, 19 August 2020, 15:19 GMT
Regarding 4) upstream is implementing an auto-search feature so I would rather wait for that to land before changing back (which breaks launching directly from terminal and confuses users a lot).
Comment by Dct Mei (dctxmei) - Wednesday, 19 August 2020, 15:57 GMT
Well, then, are the modifications to v2ray.service and v2ray@.service acceptable? Do you think it is reasonable?