svn commit: r492434 - in head/net-mgmt/icinga2: . files
Lars Engels
lme at FreeBSD.org
Fri Feb 8 13:28:57 UTC 2019
Author: lme
Date: Fri Feb 8 13:28:56 2019
New Revision: 492434
URL: https://svnweb.freebsd.org/changeset/ports/492434
Log:
net-mgmt/icinga2:
- Cherrypick an upstream patch that fixes Icinga 2 restarts via API
- Bump PORTREVISION
MFH: 2019Q1
Added:
head/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp (contents, props changed)
Modified:
head/net-mgmt/icinga2/Makefile
Modified: head/net-mgmt/icinga2/Makefile
==============================================================================
--- head/net-mgmt/icinga2/Makefile Fri Feb 8 13:06:13 2019 (r492433)
+++ head/net-mgmt/icinga2/Makefile Fri Feb 8 13:28:56 2019 (r492434)
@@ -3,7 +3,7 @@
PORTNAME= icinga2
DISTVERSIONPREFIX= v
DISTVERSION= 2.10.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt
MAINTAINER= lme at FreeBSD.org
Added: head/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp Fri Feb 8 13:28:56 2019 (r492434)
@@ -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