.NET ports: improve IPv6 detection in rc script

An IPv6 address on the localhost does not mean a jail has IPv6.
Also remove two credit lines as he is now credited in the git log.

PR:		273542
Reported by:	michiel@vanbaak.eu
Approved by:	michiel@vanbaak.eu (maintainer)
This commit is contained in:
Keith Chiem 2023-09-24 19:16:28 +02:00 committed by Dries Michiels
parent 6c696ba462
commit 5cf4242d5f
11 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
DISTVERSION= 4.8.0.47
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -devel
DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}

View file

@ -1,6 +1,6 @@
PORTNAME= emby-server
DISTVERSION?= 4.7.14.0
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES= multimedia
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${DISTVERSION}/ \
https://mediabrowser.github.io/embytools/

View file

@ -64,7 +64,7 @@ start_precmd=%%RC_NAME%%_start_precmd
# .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 | grep -q inet6
ifconfig -a -u -G lo | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1
fi

View file

@ -1,6 +1,6 @@
PORTNAME= jellyfin
DISTVERSION= 10.8.10
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= https://github.com/Thefrank/jellyfin-server-freebsd/releases/download/v${DISTVERSION}/
DISTFILES= jellyfin-combined_${DISTVERSION}_freebsd-${ARCH}.tar.gz \

View file

@ -60,7 +60,7 @@ jellyfin_precmd() {
# .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 | grep -q inet6
ifconfig -a -u -G lo | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1
fi

View file

@ -1,5 +1,6 @@
PORTNAME= lidarr
DISTVERSION= 1.3.5.3530
PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= https://github.com/lidarr/Lidarr/releases/download/v${PORTVERSION}/
DISTNAME= Lidarr.master.${DISTVERSION}.freebsd-core-x64

View file

@ -43,7 +43,7 @@ start_precmd=${name}_precmd
# .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 | grep -q inet6
ifconfig -a -u -G lo | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1
fi

View file

@ -43,7 +43,6 @@ start_precmd=${name}_precmd
# .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
# Later version by Keith Chiem through email
ifconfig -a -u -G lo | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1

View file

@ -1,5 +1,6 @@
PORTNAME= radarr
DISTVERSION= 4.7.5.7809
PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= https://github.com/Radarr/Radarr/releases/download/v${PORTVERSION}/
DISTNAME= Radarr.master.${DISTVERSION}.freebsd-core-x64

View file

@ -43,7 +43,7 @@ start_precmd=${name}_precmd
# .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 | grep -q inet6
ifconfig -a -u -G lo | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1
fi

View file

@ -43,7 +43,6 @@ start_precmd=${name}_precmd
# .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
# Later version by Keith Chiem through email
ifconfig -a -u -G lo | grep -q inet6
if [ $? == 1 ]; then
export DOTNET_SYSTEM_NET_DISABLEIPV6=1