1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

net-mgmt/icinga2:

- Cherrypick an upstream patch that fixes Icinga 2 restarts via API
- Bump PORTREVISION

MFH:		2019Q1
This commit is contained in:
Lars Engels 2019-02-08 13:28:56 +00:00
parent e8169eae13
commit 486a515d6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492434
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= icinga2
DISTVERSIONPREFIX= v
DISTVERSION= 2.10.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net-mgmt
MAINTAINER= lme@FreeBSD.org

View File

@ -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);