summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2015-08-07 14:48:49 +0000
committerSteve Wills <swills@FreeBSD.org>2015-08-07 14:48:49 +0000
commit71f5cbd03a751cf40d46321917d96d81487d7e3a (patch)
tree78cc4f2665e09c50a4156a7c19b423963013ebd8
parenta5fbb8be2b6651ec534a583a9b989545792ffe5c (diff)
downloadfreebsd-ports-71f5cbd03a751cf40d46321917d96d81487d7e3a.zip
net/syncthing-discosrv: update db dir
Pass flags to syncthing to set db dir instead of using HOME. While here, pick a better location. PR: 202131 Submitted by: wraul@dbox.se (partly)
-rw-r--r--net/syncthing-discosrv/Makefile2
-rw-r--r--net/syncthing-discosrv/files/syncthing-discosrv.in7
2 files changed, 4 insertions, 5 deletions
diff --git a/net/syncthing-discosrv/Makefile b/net/syncthing-discosrv/Makefile
index 89e9d2ea820a..0671b893592b 100644
--- a/net/syncthing-discosrv/Makefile
+++ b/net/syncthing-discosrv/Makefile
@@ -3,7 +3,7 @@
PORTNAME= syncthing-discosrv
PORTVERSION= 0.0.0.2015062601
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MAINTAINER= swills@FreeBSD.org
diff --git a/net/syncthing-discosrv/files/syncthing-discosrv.in b/net/syncthing-discosrv/files/syncthing-discosrv.in
index d926ffeb1c09..1d175be639e6 100644
--- a/net/syncthing-discosrv/files/syncthing-discosrv.in
+++ b/net/syncthing-discosrv/files/syncthing-discosrv.in
@@ -16,7 +16,7 @@
# syncthingdiscosrv_group (group): Set group to run syncthing-discosrv.
# Default is "syncthing".
# syncthingdiscosrv_dir (dir): Set dir to run syncthing-discosrv in.
-# Default is "/var/tmp/syncthing".
+# Default is "/var/db/syncthing-discosrv".
. /etc/rc.subr
@@ -28,15 +28,14 @@ load_rc_config $name
: ${syncthingdiscosrv_enable:="NO"}
: ${syncthingdiscosrv_user:="syncthing"}
: ${syncthingdiscosrv_group:="syncthing"}
-: ${syncthingdiscosrv_dir:="/var/tmp/syncthing"}
+: ${syncthingdiscosrv_dir:="/var/db/syncthing-discosrv"}
export STNORESTART=true
-export HOME=${syncthingdiscosrv_dir}
pidfile=/var/run/syncthingdiscosrv.pid
procname="%%PREFIX%%/bin/syncthing-discosrv"
command="/usr/sbin/daemon"
-command_args="-f -p ${pidfile} ${procname} ${syncthingdiscosrv_flags}"
+command_args="-f -p ${pidfile} ${procname} -db-dir=${syncthingdiscosrv_dir}/db -stats-file=${syncthingdiscosrv_dir}/stats ${syncthingdiscosrv_flags}"
start_precmd=syncthingdiscosrv_startprecmd