git: d52daad3109a - main - net-p2p/bazarr: use LOCALBASE in exporting PATH

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Mon, 04 Mar 2024 16:09:40 UTC
The branch main has been updated by driesm:

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

commit d52daad3109a9605ed1addc70d67fa6080207e8f
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2024-03-04 15:15:39 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-03-04 16:09:31 +0000

    net-p2p/bazarr: use LOCALBASE in exporting PATH
    
    Reported by:    jbeich
    Approved by:    maintainer (e-mail)
---
 net-p2p/bazarr/Makefile        | 1 +
 net-p2p/bazarr/files/bazarr.in | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-p2p/bazarr/Makefile b/net-p2p/bazarr/Makefile
index 67f5f351f98b..34ffb55f0146 100644
--- a/net-p2p/bazarr/Makefile
+++ b/net-p2p/bazarr/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	bazarr
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.4.2
+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 29710c68d418..b5511beae20f 100644
--- a/net-p2p/bazarr/files/bazarr.in
+++ b/net-p2p/bazarr/files/bazarr.in
@@ -34,7 +34,7 @@ start_precmd=bazarr_precmd
 
 bazarr_precmd()
 {
-	export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
+	export PATH="/sbin:/bin:/usr/sbin:/usr/bin:%%LOCALBASE%%/sbin:%%LOCALBASE%%/bin"
 
 	if [ ! -d ${bazarr_datadir} ]; then
 		install -d -o ${bazarr_user} ${bazarr_datadir}