git: f457dfab6526 - main - security/xray-core: Fix rc.d script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Dec 2025 04:01:58 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f457dfab6526cd4bd8d137024d2057444b637d9d
commit f457dfab6526cd4bd8d137024d2057444b637d9d
Author: over <over@forkbomb.cc>
AuthorDate: 2025-12-21 03:59:40 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-12-21 03:59:40 +0000
security/xray-core: Fix rc.d script
It needs to use load_rc_config before knob variables, otherwise
customizations such as config and log path won't work.
PR: 291704
Approved by: Kirill Lebedev <kirill@drlebedev.com> (maintainer)
MFH: 2025Q4
---
security/xray-core/Makefile | 1 +
security/xray-core/files/xray.in | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/security/xray-core/Makefile b/security/xray-core/Makefile
index 8874c68da3a4..744509ed5a3c 100644
--- a/security/xray-core/Makefile
+++ b/security/xray-core/Makefile
@@ -1,6 +1,7 @@
PORTNAME= xray-core
DISTVERSIONPREFIX= v
DISTVERSION= 25.12.8
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://github.com/v2fly/geoip/releases/download/202512050148/:geoip \
https://github.com/v2fly/domain-list-community/releases/download/20251212112114/:geosite
diff --git a/security/xray-core/files/xray.in b/security/xray-core/files/xray.in
index 87516c9759d0..18c9beeb4f5c 100644
--- a/security/xray-core/files/xray.in
+++ b/security/xray-core/files/xray.in
@@ -20,6 +20,8 @@
name="xray"
rcvar="xray_enable"
+load_rc_config "$name"
+
: ${xray_enable="NO"}
: ${xray_config="%%PREFIX%%/etc/${name}-core"}
: ${xray_logdir="/var/log/${name}-core"}
@@ -43,5 +45,4 @@ xray_startprecmd() {
chown -R ${xray_user}:${xray_group} "${xray_logdir}"
}
-load_rc_config "$name"
run_rc_command "$1"