git: 733f7934b2c0 - 2025Q4 - net-p2p/sonarr: Fix rc script for 15 after SSL version bump

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 25 Dec 2025 23:15:17 UTC
The branch 2025Q4 has been updated by vvd:

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

commit 733f7934b2c02cd580e849ec33611cbc0139c38c
Author:     James French <james@french.id.au>
AuthorDate: 2025-12-25 22:33:11 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-12-25 23:13:32 +0000

    net-p2p/sonarr: Fix rc script for 15 after SSL version bump
    
    By default Sonarr (Mono?) is looking for libssl.so.3.
    
    This was worked around in the 14.X series by setting an environment
    override in the shipped init script to tell the executable to instead
    look for libssl.so.30
    
    Update the override for FreeBSD >= 15.0-RELEASE so that it now looks for
    libssl.so.35 without removing the workaround for FreeBSD 14.X.
    
    Without this patch Sonarr exits code 6 and is restarted continuously.
    
    PR:             291736
    Tested by:      edgeman@gmail.com
    Approved by:    Michiel van Baak Jansen <michiel@vanbaak.eu> (maintainer)
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
    MFH:            2025Q4
    
    (cherry picked from commit 3b77347aef053944bfb424a1b0fab7b83603cc7b)
---
 net-p2p/sonarr/Makefile        | 1 +
 net-p2p/sonarr/files/sonarr.in | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-p2p/sonarr/Makefile b/net-p2p/sonarr/Makefile
index 3e2cc9d47472..d53d6d56fc0f 100644
--- a/net-p2p/sonarr/Makefile
+++ b/net-p2p/sonarr/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sonarr
 DISTVERSION=	4.0.15.2941
+PORTREVISION=	1
 CATEGORIES=	net-p2p
 MASTER_SITES=	https://github.com/Sonarr/Sonarr/releases/download/v${DISTVERSION}/
 DISTNAME=	Sonarr.main.${DISTVERSION}.freebsd-x64
diff --git a/net-p2p/sonarr/files/sonarr.in b/net-p2p/sonarr/files/sonarr.in
index fda57d341bf2..776576131402 100644
--- a/net-p2p/sonarr/files/sonarr.in
+++ b/net-p2p/sonarr/files/sonarr.in
@@ -48,7 +48,10 @@ start_precmd=${name}_precmd
         export DOTNET_SYSTEM_NET_DISABLEIPV6=1
     fi
 
-    if [ `uname -K` -ge 1400092 ]; then
+    USERLAND_VERSION=`uname -U`
+    if [ ${USERLAND_VERSION} -ge 1500068 ]; then
+        export CLR_OPENSSL_VERSION_OVERRIDE=35
+    elif [ ${USERLAND_VERSION} -ge 1400092 ]; then
         export CLR_OPENSSL_VERSION_OVERRIDE=30
     fi