git: 5fadc7297827 - main - net-p2p/sonarr-devel: Select correct openssl runtime version

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Wed, 13 Dec 2023 07:50:58 UTC
The branch main has been updated by fernape:

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

commit 5fadc7297827f80c9b7ba7ca98356b3cfe776d9b
Author:     Michiel van Baak Jansen <michiel@vanbaak.eu>
AuthorDate: 2023-12-11 16:27:43 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-12-13 07:50:46 +0000

    net-p2p/sonarr-devel: Select correct openssl runtime version
    
    Removes dependency on the openssl111 port/package
    
    PR:             275694
    Reported by:    michiel@vanbaak.eu (maintainer)
---
 net-p2p/sonarr-devel/Makefile        | 6 +++---
 net-p2p/sonarr-devel/files/sonarr.in | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/net-p2p/sonarr-devel/Makefile b/net-p2p/sonarr-devel/Makefile
index fd873fb28985..f39af0e51b90 100644
--- a/net-p2p/sonarr-devel/Makefile
+++ b/net-p2p/sonarr-devel/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sonarr
 DISTVERSION=	4.0.0.733
+PORTREVISION=	1
 CATEGORIES=	net-p2p
 MASTER_SITES=	https://download.sonarr.tv/v4/develop/${PORTVERSION}/
 PKGNAMESUFFIX=	-devel
@@ -18,10 +19,9 @@ RUN_DEPENDS=	ca_root_nss>0:security/ca_root_nss \
 		krb5>0:security/krb5 \
 		libiconv>0:converters/libiconv \
 		libinotify>0:devel/libinotify \
-		libunwind>0:devel/libunwind \
-		openssl111>0:security/openssl111
+		libunwind>0:devel/libunwind
 
-USES=	sqlite:3
+USES=	sqlite:3 ssl:run
 USE_RC_SUBR=	sonarr
 
 CONFLICTS_INSTALL=	sonarr
diff --git a/net-p2p/sonarr-devel/files/sonarr.in b/net-p2p/sonarr-devel/files/sonarr.in
index 261037cf517a..7d43d8e22f95 100644
--- a/net-p2p/sonarr-devel/files/sonarr.in
+++ b/net-p2p/sonarr-devel/files/sonarr.in
@@ -48,6 +48,10 @@ start_precmd=${name}_precmd
         export DOTNET_SYSTEM_NET_DISABLEIPV6=1
     fi
 
+    if [ `uname -K` -ge 1400092 ]; then
+        export CLR_OPENSSL_VERSION_OVERRIDE=30
+    fi
+
     rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} ${%%PORTNAME%%_exec_dir}/Sonarr --data=${%%PORTNAME%%_data_dir} --nobrowser >> /dev/null 2>&1 ${rc_flags}"
 }