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 | |
parent | multimedia/plexmediaserver(-plexpass): Fix scanner crash (diff) |
net-p2p/sonarr: Various improvements
- Allow running sonarr as a different user
- Use sonarr's pidfile
- Allow configuring location of the data directory
- Export XDG_CONFIG_HOME to a writable directory to prevent runtime problems
PR: 205441
Notes
Notes:
svn path=/head/; revision=404949
Diffstat (limited to 'net-p2p')
-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" |