git: ff8ebb3e6f3a - main - databases/qdrant: Rename _flags to _args in rc.d script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Jan 2024 16:49:56 UTC
The branch main has been updated by otis:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ff8ebb3e6f3ae385c8410dbc8bdbb0df2ee309e3
commit ff8ebb3e6f3ae385c8410dbc8bdbb0df2ee309e3
Author: Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2024-01-22 16:48:25 +0000
Commit: Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2024-01-22 16:48:25 +0000
databases/qdrant: Rename _flags to _args in rc.d script
Rename ${qdrant_flags} to ${qdrant_args} as the former is
passed to /usr/sbin/daemon instead of intentional LOCALBASE/bin/qdrant
---
databases/qdrant/Makefile | 2 +-
databases/qdrant/files/qdrant.in | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/databases/qdrant/Makefile b/databases/qdrant/Makefile
index 8219397f1a4b..66c70cc4356e 100644
--- a/databases/qdrant/Makefile
+++ b/databases/qdrant/Makefile
@@ -1,7 +1,7 @@
PORTNAME= qdrant
DISTVERSIONPREFIX= v
DISTVERSION= 1.7.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
MAINTAINER= yuri@FreeBSD.org
diff --git a/databases/qdrant/files/qdrant.in b/databases/qdrant/files/qdrant.in
index 0f75159650e4..6151d3e21399 100644
--- a/databases/qdrant/files/qdrant.in
+++ b/databases/qdrant/files/qdrant.in
@@ -13,7 +13,7 @@
# qdrant(_profile)?_config (str): Full name of config file
# Default is "%%ETCDIR%%/config.yaml" or
# "%%ETCDIR%%/config(.profile)?.yaml
-# qdrant(_profile)?_flags (flags): Set extra flags here. More options in qdrant(1)
+# qdrant(_profile)?_args (flags): Set extra args here. More options in qdrant(1)
# Default is empty "".
# qdrant(_profile)?_user (user): Set user to run qdrant.
# Default is "nobody".
@@ -35,7 +35,7 @@ pidfile="${_piddir}/qdrant.pid"
: ${qdrant_config="%%ETCDIR%%/config.yaml"}
: ${qdrant_user="nobody"}
: ${qdrant_group="nobody"}
-: ${qdrant_flags=""}
+: ${qdrant_args=""}
load_rc_config ${name}
@@ -47,7 +47,7 @@ if [ -n "$2" ]; then
eval qdrant_config="\${qdrant_${profile}_config:-${qdrant_config}}"
eval qdrant_user="\${qdrant_${profile}_user:-${qdrant_user}}"
eval qdrant_group="\${qdrant_${profile}_group:-${qdrant_group}}"
- eval qdrant_flags="\${qdrant_${profile}_flags:-${qdrant_flags}}"
+ eval qdrant_args="\${qdrant_${profile}_args:-${qdrant_args}}"
eval qdrant_post_start="\${qdrant_${profile}_post_start:-${qdrant_post_start}}"
else
echo "%%PREFIX%%/etc/rc.d/qdrant%%RC_SUBR_SUFFIX%%: extra argument ignored"
@@ -121,7 +121,7 @@ command="/usr/sbin/daemon"
command_args="-f -S -p ${pidfile} \
-t qdrant${_profsuffx} \
%%PREFIX%%/bin/qdrant --config-path $qdrant_config \
- $qdrant_flags"
+ $qdrant_args"
start_precmd="install -d -o $qdrant_user -g $qdrant_group -m 755 $_piddir"