Date: Thu, 31 Dec 2015 15:22:56 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r404949 - in head/net-p2p/sonarr: . files Message-ID: <201512311522.tBVFMuio047643@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Thu Dec 31 15:22:56 2015 New Revision: 404949 URL: https://svnweb.freebsd.org/changeset/ports/404949 Log: 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 Modified: head/net-p2p/sonarr/Makefile head/net-p2p/sonarr/files/sonarr.in Modified: head/net-p2p/sonarr/Makefile ============================================================================== --- head/net-p2p/sonarr/Makefile Thu Dec 31 15:19:38 2015 (r404948) +++ head/net-p2p/sonarr/Makefile Thu Dec 31 15:22:56 2015 (r404949) @@ -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 Modified: head/net-p2p/sonarr/files/sonarr.in ============================================================================== --- head/net-p2p/sonarr/files/sonarr.in Thu Dec 31 15:19:38 2015 (r404948) +++ head/net-p2p/sonarr/files/sonarr.in Thu Dec 31 15:22:56 2015 (r404949) @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512311522.tBVFMuio047643>