git: 14203704214f - main - www/iridium: set SO_REUSEPORT on UDP multicast and broadcast sockets

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Fri, 15 Apr 2022 18:45:26 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=14203704214f2ce60b5d95e39692560dd75d5e4f

commit 14203704214f2ce60b5d95e39692560dd75d5e4f
Author:     Robert Nagy <robert@openbsd.org>
AuthorDate: 2022-04-15 18:43:13 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2022-04-15 18:44:56 +0000

    www/iridium: set SO_REUSEPORT on UDP multicast and broadcast sockets
---
 www/iridium/Makefile                                     |  2 +-
 www/iridium/files/patch-net_socket_udp__socket__posix.cc | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/www/iridium/Makefile b/www/iridium/Makefile
index 2eb66e96b234..c96aa647bfeb 100644
--- a/www/iridium/Makefile
+++ b/www/iridium/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	iridium
 PORTVERSION=	2022.04.100.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www
 MASTER_SITES=	https://downloads.iridiumbrowser.de/source/
 PKGNAMESUFFIX=	-browser
diff --git a/www/iridium/files/patch-net_socket_udp__socket__posix.cc b/www/iridium/files/patch-net_socket_udp__socket__posix.cc
index bb2585fc51db..e17e93b8a863 100644
--- a/www/iridium/files/patch-net_socket_udp__socket__posix.cc
+++ b/www/iridium/files/patch-net_socket_udp__socket__posix.cc
@@ -1,4 +1,4 @@
---- net/socket/udp_socket_posix.cc.orig	2022-04-01 07:48:30 UTC
+--- net/socket/udp_socket_posix.cc.orig	2022-04-15 05:34:28 UTC
 +++ net/socket/udp_socket_posix.cc
 @@ -574,7 +574,7 @@ int UDPSocketPosix::SetDoNotFragment() {
  }
@@ -9,3 +9,12 @@
    if (confirm) {
      sendto_flags_ |= MSG_CONFIRM;
    } else {
+@@ -595,7 +595,7 @@ int UDPSocketPosix::SetBroadcast(bool broadcast) {
+   DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
+   int value = broadcast ? 1 : 0;
+   int rv;
+-#if BUILDFLAG(IS_APPLE)
++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD)
+   // SO_REUSEPORT on OSX permits multiple processes to each receive
+   // UDP multicast or broadcast datagrams destined for the bound
+   // port.