aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2017-10-15 20:32:49 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 05:45:03 +0800
commit171e98609626796b3f29a0bd6d2baa1f1c2c1387 (patch)
tree98396a000bc8308a088ded9053fe9e43f720a65f /net
parentbb57896035878e9423852583951b73d17459c9ab (diff)
downloadfreebsd-ports-gnome-171e98609626796b3f29a0bd6d2baa1f1c2c1387.tar.gz
freebsd-ports-gnome-171e98609626796b3f29a0bd6d2baa1f1c2c1387.tar.zst
freebsd-ports-gnome-171e98609626796b3f29a0bd6d2baa1f1c2c1387.zip
Replace gnatsd_username with gnatsd_user, which is already provided by rc.subr.
PR: 223027 Submitted by: romain
Diffstat (limited to 'net')
-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"