diff options
author | Mark Felder <feld@FreeBSD.org> | 2015-12-31 15:22:56 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2015-12-31 15:22:56 +0000 |
commit | ae04359e50a908afbfa5e9c460e5e2e56be15bbe (patch) | |
tree | 0e069ef295a78406ab11864544fdb280a186fb25 /net-p2p/sonarr | |
parent | 69333876ca0603e01f5af2da50ceef0df1544ca5 (diff) | |
download | ports-ae04359e50a908afbfa5e9c460e5e2e56be15bbe.tar.gz ports-ae04359e50a908afbfa5e9c460e5e2e56be15bbe.zip |
Notes
Diffstat (limited to 'net-p2p/sonarr')
-rw-r--r-- | net-p2p/sonarr/Makefile | 1 | ||||
-rw-r--r-- | net-p2p/sonarr/files/sonarr.in | 7 |
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" |