1 |
commit: 85bf8d68cd0ec5fe93d7064c760dad5faebb5670 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 2 19:31:12 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 2 19:35:35 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85bf8d68 |
7 |
|
8 |
net-analyzer/nagios-core: Rev bump to fix upstream issue #337 |
9 |
|
10 |
Ebuild changes: |
11 |
=============== |
12 |
- Cherry picked commit e03e4fd470 to stop nagios-core from flooding |
13 |
syslog every 15 seconds due to debug leftovers [Upstream Issue #337]. |
14 |
|
15 |
Upstream Issue #337: https://github.com/NagiosEnterprises/nagioscore/issues/337 |
16 |
|
17 |
Acked-by: Michael Orlitzky <mjo <AT> gentoo.org> |
18 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
19 |
|
20 |
.../nagios-core-4.3.1-fix-upstream-issue-337.patch | 21 +++++++++++++++++++++ |
21 |
...ore-4.3.1.ebuild => nagios-core-4.3.1-r1.ebuild} | 2 ++ |
22 |
2 files changed, 23 insertions(+) |
23 |
|
24 |
diff --git a/net-analyzer/nagios-core/files/nagios-core-4.3.1-fix-upstream-issue-337.patch b/net-analyzer/nagios-core/files/nagios-core-4.3.1-fix-upstream-issue-337.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..d5344a6442c |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/nagios-core/files/nagios-core-4.3.1-fix-upstream-issue-337.patch |
29 |
@@ -0,0 +1,21 @@ |
30 |
+From e03e4fd470fbc8d4304d860d7b3b523c5d78373d Mon Sep 17 00:00:00 2001 |
31 |
+From: "John C. Frickson" <jfrickson@××××××.com> |
32 |
+Date: Thu, 2 Mar 2017 10:24:24 -0600 |
33 |
+Subject: [PATCH] every 15sec /var/log/messages is flooded with "nagios: |
34 |
+ set_environment_var" |
35 |
+ |
36 |
+Fix for https://github.com/NagiosEnterprises/nagioscore/issues/337 |
37 |
+diff --git a/base/utils.c b/base/utils.c |
38 |
+index 733fdef..19e20c7 100644 |
39 |
+--- a/base/utils.c |
40 |
++++ b/base/utils.c |
41 |
+@@ -872,9 +872,6 @@ int set_environment_var(char *name, char *value, int set) { |
42 |
+ |
43 |
+ /* set the environment variable */ |
44 |
+ if(set == TRUE) { |
45 |
+- log_debug_info(DEBUGL_EVENTS, 0, "set_environment_var '%s'='%s'\n", name, value); |
46 |
+- syslog(LOG_DAEMON|LOG_INFO, "set_environment_var '%s'='%s'\n", name, value); |
47 |
+- |
48 |
+ #ifdef HAVE_SETENV |
49 |
+ setenv(name, (value == NULL) ? "" : value, 1); |
50 |
+ #else |
51 |
|
52 |
diff --git a/net-analyzer/nagios-core/nagios-core-4.3.1.ebuild b/net-analyzer/nagios-core/nagios-core-4.3.1-r1.ebuild |
53 |
similarity index 99% |
54 |
rename from net-analyzer/nagios-core/nagios-core-4.3.1.ebuild |
55 |
rename to net-analyzer/nagios-core/nagios-core-4.3.1-r1.ebuild |
56 |
index fa4f4225999..c86bbcf9dfc 100644 |
57 |
--- a/net-analyzer/nagios-core/nagios-core-4.3.1.ebuild |
58 |
+++ b/net-analyzer/nagios-core/nagios-core-4.3.1-r1.ebuild |
59 |
@@ -71,6 +71,8 @@ RDEPEND="${DEPEND} |
60 |
|
61 |
S="${WORKDIR}/${MY_P}" |
62 |
|
63 |
+PATCHES=( "${FILESDIR}"/${PN}-4.3.1-fix-upstream-issue-337.patch ) |
64 |
+ |
65 |
pkg_setup() { |
66 |
enewgroup nagios |
67 |
enewuser nagios -1 /bin/bash /var/nagios/home nagios |