git: 1b0ddca28636 - main - net-p2p/bazarr: fix finding ffprobe during start

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Sun, 14 Jan 2024 18:59:35 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1b0ddca28636294c59f25602dd71abf215ec9e3b

commit 1b0ddca28636294c59f25602dd71abf215ec9e3b
Author:     Michiel van Baak Jansen <michiel@vanbaak.eu>
AuthorDate: 2024-01-14 18:53:51 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-01-14 18:59:20 +0000

    net-p2p/bazarr: fix finding ffprobe during start
    
    bazazr fails to start with the standard PATH set.
    
    PR:     276280
---
 net-p2p/bazarr/Makefile        | 1 +
 net-p2p/bazarr/files/bazarr.in | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/net-p2p/bazarr/Makefile b/net-p2p/bazarr/Makefile
index d702bef72b67..6723e700d721 100644
--- a/net-p2p/bazarr/Makefile
+++ b/net-p2p/bazarr/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	bazarr
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.4.0
+PORTREVISION=	1
 CATEGORIES=	net-p2p python
 MASTER_SITES=	https://github.com/morpheus65535/bazarr/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
 DISTNAME=	bazarr
diff --git a/net-p2p/bazarr/files/bazarr.in b/net-p2p/bazarr/files/bazarr.in
index 0202ec49d196..29710c68d418 100644
--- a/net-p2p/bazarr/files/bazarr.in
+++ b/net-p2p/bazarr/files/bazarr.in
@@ -34,6 +34,8 @@ start_precmd=bazarr_precmd
 
 bazarr_precmd()
 {
+	export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
+
 	if [ ! -d ${bazarr_datadir} ]; then
 		install -d -o ${bazarr_user} ${bazarr_datadir}
 	fi