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,55 +1,55 @@ PORTNAME= sonarr DISTVERSION= 4.0.0.733 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= https://download.sonarr.tv/v4/develop/${PORTVERSION}/ PKGNAMESUFFIX= -devel DISTNAME= Sonarr.develop.${DISTVERSION}.freebsd-x64 MAINTAINER= michiel@vanbaak.eu COMMENT= PVR for Usenet and BitTorrent users WWW= https://sonarr.tv LICENSE= GPLv3 ONLY_FOR_ARCHS= amd64 RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss \ icu>0:devel/icu \ 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 NO_BUILD= YES SUB_FILES= sonarr package_info pkg-message SUB_LIST= DATADIR=${DATADIR} \ GROUPS=${GROUPS} \ MAINTAINER=${MAINTAINER} \ PKGVERSION=${PKGVERSION} \ PORTNAME=${PORTNAME} \ USERS=${USERS} WRKSRC= ${WRKDIR}/Sonarr USERS= sonarr GROUPS= sonarr post-extract: ${RM} -rf ${WRKSRC}/Sonarr.Update do-install: ${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/ cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/ "! -name Sonarr -and ! -name ffprobe" ${INSTALL_PROGRAM} ${WRKSRC}/Sonarr ${STAGEDIR}/${DATADIR}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/ffprobe ${STAGEDIR}/${DATADIR}/bin/ post-install: ${INSTALL_DATA} ${WRKDIR}/package_info ${STAGEDIR}/${DATADIR}/ .include 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 @@ -1,54 +1,58 @@ #!/bin/sh # PROVIDE: %%PORTNAME%% # REQUIRE: LOGIN network # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf or use sysrc to enable %%PORTNAME%% # ${%%PORTNAME%%_enable="YES"} # Optionaly there are some other parameters # ${%%PORTNAME%%_user="%%USERS%%"} # ${%%PORTNAME%%_group="%%GROUPS%%"} # This stores %%PORTNAME%% data (e.g., databases, configs, logs) # ${%%PORTNAME%%_data_dir="%%PREFIX%%/%%PORTNAME%%"} # This stores the PID files that daemon will use # ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} . /etc/rc.subr name=%%PORTNAME%% rcvar=%%PORTNAME%%_enable load_rc_config $name : ${%%PORTNAME%%_enable:=NO} : ${%%PORTNAME%%_user:="%%USERS%%"} : ${%%PORTNAME%%_group:="%%GROUPS%%"} : ${%%PORTNAME%%_exec_dir:="%%DATADIR%%/bin"} : ${%%PORTNAME%%_data_dir:="%%PREFIX%%/%%PORTNAME%%"} : ${%%PORTNAME%%_pid_dir:="/var/run/%%PORTNAME%%"} pidfile="${%%PORTNAME%%_pid_dir}/${name}_daemon.pid" pidfile_child="${%%PORTNAME%%_pid_dir}/${name}_child.pid" command="/usr/sbin/daemon" start_precmd=${name}_precmd %%PORTNAME%%_precmd() { if [ ! -d ${%%PORTNAME%%_data_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_data_dir} fi if [ ! -d ${%%PORTNAME%%_pid_dir} ]; then install -d -o ${%%PORTNAME%%_user} -g ${%%PORTNAME%%_group} ${%%PORTNAME%%_pid_dir} fi # .NET 6+ use dual mode sockets to avoid the separate AF handling. # disable .NET use of V6 if no ipv6 is configured. # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259194#c17 ifconfig -a -u -G lo | grep -q inet6 if [ $? == 1 ]; then 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}" } run_rc_command "$1"