git: 3265e8870fd5 - main - net/v2ray: Fix incorrect order of rc file stances
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Mar 2026 07:06:01 UTC
The branch main has been updated by alven:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3265e8870fd5e55039125fcb1ba3d505701404eb
commit 3265e8870fd5e55039125fcb1ba3d505701404eb
Author: Shamaz Mazum <shamaz.mazum@gmail.com>
AuthorDate: 2026-03-14 06:44:02 +0000
Commit: Älven <alven@FreeBSD.org>
CommitDate: 2026-03-14 07:04:18 +0000
net/v2ray: Fix incorrect order of rc file stances
PR: 293795
Reported by: Shamaz Mazum <shamaz.mazum@gmail.com>
Approved by: db@, yuri@ (Mentors, implicit)
---
net/v2ray/Makefile | 1 +
net/v2ray/files/v2ray.in | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/v2ray/Makefile b/net/v2ray/Makefile
index 5a3e6e50cad3..9d65cb147ee3 100644
--- a/net/v2ray/Makefile
+++ b/net/v2ray/Makefile
@@ -1,6 +1,7 @@
PORTNAME= v2ray
DISTVERSIONPREFIX= v
DISTVERSION= 5.46.0
+PORTREVISION= 1
CATEGORIES= net
MAINTAINER= alven@FreeBSD.org
diff --git a/net/v2ray/files/v2ray.in b/net/v2ray/files/v2ray.in
index c39895054532..3778a4846d06 100644
--- a/net/v2ray/files/v2ray.in
+++ b/net/v2ray/files/v2ray.in
@@ -19,6 +19,7 @@
name="v2ray"
rcvar="${name}_enable"
+load_rc_config ${name}
: ${v2ray_enable="NO"}
: ${v2ray_config="%%PREFIX%%/etc/$name/config.json"}
@@ -43,5 +44,4 @@ v2ray_startprecmd() {
chown -R ${v2ray_user}:${v2ray_group} "${v2ray_logdir}"
}
-load_rc_config "$name"
run_rc_command "$1"