Re: git: 184188b65d98 - main - net-p2p/lidarr: fix finding fpcalc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jan 2024 19:01:19 UTC
Dries Michiels <driesm@FreeBSD.org> writes:
> diff --git a/net-p2p/lidarr/files/lidarr.in b/net-p2p/lidarr/files/lidarr.in
> index 3b9bf2480f37..df009015b687 100644
> --- a/net-p2p/lidarr/files/lidarr.in
> +++ b/net-p2p/lidarr/files/lidarr.in
> @@ -33,6 +33,8 @@ command="/usr/sbin/daemon"
>
> start_precmd=${name}_precmd
> %%PORTNAME%%_precmd() {
> + export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
Why not use %%LOCALBASE%% instead of hardcoding /usr/local? See
https://docs.freebsd.org/en/books/porters-handbook/pkg-files/#using-sub-files
$ make -V '${SUB_LIST:M*LOCALBASE*}'
LOCALBASE=/usr/local
$ make -V '${SUB_FILES:M${PORTNAME}}'
lidarr lidarr