ports/net-p2p/bazarr-devel/files/bazarr.in
Michiel van Baak Jansen 22d8cccfd0 net-p2p/bazarr*: new ports for bazarr and bazarr-devel
Bazarr is a companion application to Sonarr and Radarr that manages and
downloads subtitles based on your requirements.

- net-p2p/bazarr uses latest stable release
- net-p2p/bazarr-devel uses beta builds (created automatically from
  development branch once a day, if there were changes to that branch)
- Ports dont have bundled dependencies unbundled (yet).
  Talked this over with upstream, they are not going to unbundle
  for support-workload avoidance  and ease-of-install they get from the
  fact they bundle all dependencies on specific versions.
- Reserve UID and GID for bazarr daemon process
- Add to net-p2p/Makefile
- The plists are auto-generated as in multimedia/tautulli.

Website: https://www.bazarr.media
Changelog: https://github.com/morpheus65535/bazarr/releases
Bugtracker: https://github.com/morpheus65535/bazarr/issues

PR:		243967
2021-07-14 15:52:51 +02:00

42 lines
986 B
Bash

#!/bin/sh
#
# Author: Michiel van Baak <michiel@vanbaak.eu>
#
# $FreeBSD: $
#
# PROVIDE: bazarr
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable bazarr:
# bazarr_enable: Set to NO by default. Set it to YES to enable it.
# bazarr_user: The user account bazarr daemon runs as what
# you want it to be.
# bazarr_datadir: Directory where bazarr user data lives.
# Default: /usr/local/bazarr
. /etc/rc.subr
name=bazarr
rcvar=bazarr_enable
load_rc_config ${name}
: ${bazarr_enable:=NO}
: ${bazarr_user:=%%USERS%%}
: ${bazarr_datadir:="%%PREFIX%%/bazarr"}
pidfile="${bazarr_datadir}/bazarr.pid"
procname="%%PYTHON_CMD%%"
command="/usr/sbin/daemon"
command_args="-f -p ${pidfile} ${procname} %%DATADIR%%/bazarr.py --no-update -c ${bazarr_datadir}"
start_precmd=bazarr_precmd
bazarr_precmd()
{
if [ ! -d ${bazarr_datadir} ]; then
install -d -o ${bazarr_user} ${bazarr_datadir}
fi
}
run_rc_command "$1"