aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/sonarr
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2015-12-31 15:22:56 +0000
committerMark Felder <feld@FreeBSD.org>2015-12-31 15:22:56 +0000
commitae04359e50a908afbfa5e9c460e5e2e56be15bbe (patch)
tree0e069ef295a78406ab11864544fdb280a186fb25 /net-p2p/sonarr
parent69333876ca0603e01f5af2da50ceef0df1544ca5 (diff)
downloadports-ae04359e50a908afbfa5e9c460e5e2e56be15bbe.tar.gz
ports-ae04359e50a908afbfa5e9c460e5e2e56be15bbe.zip
Notes
Diffstat (limited to 'net-p2p/sonarr')
-rw-r--r--net-p2p/sonarr/Makefile1
-rw-r--r--net-p2p/sonarr/files/sonarr.in7
2 files changed, 6 insertions, 2 deletions
diff --git a/net-p2p/sonarr/Makefile b/net-p2p/sonarr/Makefile
index 62333c4c572d..9693d3dac6a9 100644
--- a/net-p2p/sonarr/Makefile
+++ b/net-p2p/sonarr/Makefile
@@ -2,6 +2,7 @@
PORTNAME= sonarr
PORTVERSION= 2.0.0.3645
+PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= http://download.sonarr.tv/v2/master/mono/
DISTNAME= NzbDrone.master.${PORTVERSION}.mono
diff --git a/net-p2p/sonarr/files/sonarr.in b/net-p2p/sonarr/files/sonarr.in
index fde3afbb8132..9e775cc61c63 100644
--- a/net-p2p/sonarr/files/sonarr.in
+++ b/net-p2p/sonarr/files/sonarr.in
@@ -20,10 +20,13 @@ rcvar=sonarr_enable
load_rc_config $name
: ${sonarr_enable="NO"}
+: ${sonarr_user:="sonarr"}
+: ${sonarr_data_dir:="%%PREFIX%%/sonarr"}
-pidfile=/var/run/sonarr.pid
+pidfile="${sonarr_data_dir}/nzbdrone.pid"
procname="%%PREFIX%%/bin/mono"
command="/usr/sbin/daemon"
-command_args="-f -p ${pidfile} -u sonarr %%PREFIX%%/bin/mono %%DATADIR%%/NzbDrone.exe --nobrowser --data=%%PREFIX%%/sonarr"
+command_args="-f ${procname} %%DATADIR%%/NzbDrone.exe --nobrowser --data=${sonarr_data_dir}"
+start_precmd="export XDG_CONFIG_HOME=${sonarr_data_dir}"
run_rc_command "$1"