svn commit: r492673 - in branches/2019Q1/net-mgmt/icinga2: . files
Lars Engels
lme at FreeBSD.org
Mon Feb 11 08:10:16 UTC 2019
Author: lme
Date: Mon Feb 11 08:10:15 2019
New Revision: 492673
URL: https://svnweb.freebsd.org/changeset/ports/492673
Log:
MFH: r492434
net-mgmt/icinga2:
- Cherrypick an upstream patch that fixes Icinga 2 restarts via API
- Bump PORTREVISION
Approved by: ports-secteam (joneum)
Added:
branches/2019Q1/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp
- copied unchanged from r492434, head/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp
Modified:
branches/2019Q1/net-mgmt/icinga2/Makefile
Directory Properties:
branches/2019Q1/ (props changed)
Modified: branches/2019Q1/net-mgmt/icinga2/Makefile
==============================================================================
--- branches/2019Q1/net-mgmt/icinga2/Makefile Mon Feb 11 08:09:09 2019 (r492672)
+++ branches/2019Q1/net-mgmt/icinga2/Makefile Mon Feb 11 08:10:15 2019 (r492673)
@@ -3,7 +3,7 @@
PORTNAME= icinga2
DISTVERSIONPREFIX= v
DISTVERSION= 2.10.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt
MAINTAINER= lme at FreeBSD.org
Copied: branches/2019Q1/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp (from r492434, head/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2019Q1/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp Mon Feb 11 08:10:15 2019 (r492673, copy of r492434, head/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp)
@@ -0,0 +1,12 @@
+--- lib/base/tcpsocket.cpp.orig 2019-02-08 13:14:32 UTC
++++ lib/base/tcpsocket.cpp
+@@ -91,6 +91,9 @@ void TcpSocket::Bind(const String& node, const String&
+
+ const int optTrue = 1;
+ setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast<const char *>(&optTrue), sizeof(optTrue));
++#ifndef _WIN32
++ setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, reinterpret_cast<const char *>(&optTrue), sizeof(optTrue));
++#endif /* _WIN32 */
+
+ int rc = bind(fd, info->ai_addr, info->ai_addrlen);
+
More information about the svn-ports-all
mailing list