aboutsummaryrefslogtreecommitdiffstats
path: root/net/gnatsd
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2017-10-15 20:32:49 +0800
committerolgeni <olgeni@FreeBSD.org>2017-10-15 20:32:49 +0800
commita3034471e4be1c5f167d1260b1805c02a195a67a (patch)
tree918f771d85739de8fc51cf6e8f6c8b1160234d19 /net/gnatsd
parent679ed2bf13dd9b9a1eb8e9b772fc37a3df9b8608 (diff)
downloadfreebsd-ports-gnome-a3034471e4be1c5f167d1260b1805c02a195a67a.tar.gz
freebsd-ports-gnome-a3034471e4be1c5f167d1260b1805c02a195a67a.tar.zst
freebsd-ports-gnome-a3034471e4be1c5f167d1260b1805c02a195a67a.zip
Replace gnatsd_username with gnatsd_user, which is already provided by rc.subr.
PR: 223027 Submitted by: romain
Diffstat (limited to 'net/gnatsd')
-rw-r--r--net/gnatsd/Makefile1
-rw-r--r--net/gnatsd/files/gnatsd.sh.in6
2 files changed, 4 insertions, 3 deletions
diff --git a/net/gnatsd/Makefile b/net/gnatsd/Makefile
index 37cc984f2aba..5e443e807dce 100644
--- a/net/gnatsd/Makefile
+++ b/net/gnatsd/Makefile
@@ -3,6 +3,7 @@
PORTNAME= gnatsd
PORTVERSION= 1.0.4
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net
MAINTAINER= olgeni@FreeBSD.org
diff --git a/net/gnatsd/files/gnatsd.sh.in b/net/gnatsd/files/gnatsd.sh.in
index 086fd2f537be..15b1c36c985a 100644
--- a/net/gnatsd/files/gnatsd.sh.in
+++ b/net/gnatsd/files/gnatsd.sh.in
@@ -7,7 +7,7 @@
#
# gnatsd_enable (bool): Set it to "YES" to enable gnatsd server.
# Default is "NO".
-# gnatsd_username: User name to run as. default "nobody"
+# gnatsd_user: User name to run as. default "nobody"
# gnatsd_options: Options to pass gnatsd server
#
@@ -18,11 +18,11 @@ rcvar=`set_rcvar`
load_rc_config ${name}
: ${gnatsd_enable="NO"}
-: ${gnatsd_username="nobody"}
+: ${gnatsd_user="nobody"}
: ${gnatsd_options="-c %%PREFIX%%/etc/gnatsd.conf"}
command=/usr/sbin/daemon
procname=%%PREFIX%%/bin/gnatsd
-command_args="-u ${gnatsd_username} ${procname} ${gnatsd_options}"
+command_args="${procname} ${gnatsd_options}"
run_rc_command "$1"