svn commit: r393695 - in head/net/syncthing-discosrv: . files
Steve Wills
swills at FreeBSD.org
Fri Aug 7 14:48:51 UTC 2015
Author: swills
Date: Fri Aug 7 14:48:49 2015
New Revision: 393695
URL: https://svnweb.freebsd.org/changeset/ports/393695
Log:
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 at dbox.se (partly)
Modified:
head/net/syncthing-discosrv/Makefile
head/net/syncthing-discosrv/files/syncthing-discosrv.in
Modified: head/net/syncthing-discosrv/Makefile
==============================================================================
--- head/net/syncthing-discosrv/Makefile Fri Aug 7 14:07:45 2015 (r393694)
+++ head/net/syncthing-discosrv/Makefile Fri Aug 7 14:48:49 2015 (r393695)
@@ -3,7 +3,7 @@
PORTNAME= syncthing-discosrv
PORTVERSION= 0.0.0.2015062601
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MAINTAINER= swills at FreeBSD.org
Modified: head/net/syncthing-discosrv/files/syncthing-discosrv.in
==============================================================================
--- head/net/syncthing-discosrv/files/syncthing-discosrv.in Fri Aug 7 14:07:45 2015 (r393694)
+++ head/net/syncthing-discosrv/files/syncthing-discosrv.in Fri Aug 7 14:48:49 2015 (r393695)
@@ -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
More information about the svn-ports-all
mailing list