mirror of
https://git.freebsd.org/ports.git
synced 2025-05-04 23:47:37 -04:00
ChangeLog: https://github.com/Sonarr/Sonarr/releases/tag/v4.0.6.1805 Changes * Translations update from Servarr Weblate * Fix SDR Files Being Parsed As HLG * New: Genres and Images for Webhooks and Notifiarr * Fixed: Include full series title in episode search * Fixed: Manual Interaction Required with possible null series * Translations update from Servarr Weblate * New: Refresh cache for tracked queue on series add * Fixed: Ignore case for name validation in providers * Fixed: Skip invalid series paths during validation * Fixed: Improve error messaging if config file isn't formatted correctly * Ignore Grabbed from API docs * New: Add TMDB id support * Fixed: Adding series with unknown items in queue * Fixed: Importing from IMDb list * New: Ignore inaccessible folders with getting folders * New: Display stats for delete multiple series modal * Translations update from Servarr Weblate * New: Parse anime seasons with trailing number in title * New: Improve UI status when downloads cannot be imported automatically * Fixed: Exclude invalid releases from Newznab and Torznab parsers * New: Ability to select Plex Media Server from plex.tv * New: Ignore Deluge torrents without a title * Fixed: Prevent errors parsing releases in unexpected formats * Fixed: Reprocessing items that were previously blocked during importing * Fixed: Limit Queue maximum page size to 200 * Fixed: Don't use cleaned up release title for release title * Remove seriesTitle from EpisodeResource * Fixed: Use only trackable downloads in queue * Disable trim log database housekeeping task * Translations update from Servarr Weblate * Bump version to 4.0.6 PR: 280083 Reported by: benoit@guillemaud.fr
61 lines
2.1 KiB
Bash
61 lines
2.1 KiB
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: %%PORTNAME%%
|
|
# REQUIRE: LOGIN network
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf or use sysrc to enable %%PORTNAME%%
|
|
# ${%%PORTNAME%%_enable="YES"}
|
|
# Optionaly there are some other parameters
|
|
# ${%%PORTNAME%%_user="%%USERS%%"}
|
|
# ${%%PORTNAME%%_group="%%GROUPS%%"}
|
|
# This stores %%PORTNAME%% data (e.g., databases, configs, logs)
|
|
# ${%%PORTNAME%%_data_dir="%%PREFIX%%/%%PORTNAME%%"}
|
|
# This stores the PID files that daemon will use
|
|
# ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"}
|
|
|
|
. /etc/rc.subr
|
|
name=%%PORTNAME%%
|
|
rcvar=%%PORTNAME%%_enable
|
|
load_rc_config $name
|
|
|
|
: ${%%PORTNAME%%_enable:=NO}
|
|
: ${%%PORTNAME%%_user:="%%USERS%%"}
|
|
: ${%%PORTNAME%%_group:="%%GROUPS%%"}
|
|
: ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"}
|
|
: ${%%PORTNAME%%_data_dir:="%%PREFIX%%/%%PORTNAME%%"}
|
|
: ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"}
|
|
|
|
pidfile="${%%PORTNAME%%_pid_dir}/${name}_daemon.pid"
|
|
pidfile_child="${%%PORTNAME%%_pid_dir}/${name}_child.pid"
|
|
command="/usr/sbin/daemon"
|
|
|
|
|
|
start_precmd=${name}_precmd
|
|
%%PORTNAME%%_precmd() {
|
|
if [ ! -d ${%%PORTNAME%%_data_dir} ]; then
|
|
install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_data_dir}
|
|
fi
|
|
if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then
|
|
install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir}
|
|
fi
|
|
|
|
# .NET 6+ use dual mode sockets to avoid the separate AF handling.
|
|
# disable .NET use of V6 if no ipv6 is configured.
|
|
# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17
|
|
ifconfig -a -u -G lo | grep -q inet6
|
|
if [ $? == 1 ]; then
|
|
export DOTNET_SYSTEM_NET_DISABLEIPV6=1
|
|
fi
|
|
|
|
if [ `uname -K` -ge 1400092 ]; then
|
|
export CLR_OPENSSL_VERSION_OVERRIDE=30
|
|
fi
|
|
|
|
# Set path so pre and post import scripts work with 3rd party binaries
|
|
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:%%LOCALBASE%%/sbin:%%LOCALBASE%%/bin"
|
|
|
|
rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Sonarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}"
|
|
}
|
|
|
|
run_rc_command "$1"
|