[packages/mk-livestatus] use socket path in nagios dir
glen
glen at pld-linux.org
Wed Aug 5 23:40:15 CEST 2015
commit a129dd2205bda13da428f9d7eaa31667ed0e4c12
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Aug 6 00:37:53 2015 +0300
use socket path in nagios dir
mk-livestatus.spec | 2 ++
socket-path.patch | 10 ++++++++++
2 files changed, 12 insertions(+)
---
diff --git a/mk-livestatus.spec b/mk-livestatus.spec
index 7c22510..1632894 100644
--- a/mk-livestatus.spec
+++ b/mk-livestatus.spec
@@ -7,6 +7,7 @@ Group: Applications
# Source0Download: https://mathias-kettner.de/check_mk_download_source.html
Source0: https://mathias-kettner.de/download/%{name}-%{version}.tar.gz
# Source0-md5: a01b3cc372f5dbe672eee29afeb94dd5
+Patch0: socket-path.patch
URL: http://mathias-kettner.de/checkmk_livestatus.html
Requires: nagios >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,6 +29,7 @@ able retrieve historic data from the Nagios log files via Livestatus.
%prep
%setup -q
+%patch0 -p1
%build
%configure \
diff --git a/socket-path.patch b/socket-path.patch
new file mode 100644
index 0000000..30ed7d9
--- /dev/null
+++ b/socket-path.patch
@@ -0,0 +1,10 @@
+--- mk-livestatus-1.2.6p9/./src/livestatus.h~ 2015-06-24 12:48:37.000000000 +0300
++++ mk-livestatus-1.2.6p9/./src/livestatus.h 2015-08-06 00:36:38.198382095 +0300
+@@ -25,6 +25,6 @@
+ #ifndef livestatus_h
+ #define livestatus_h
+
+-#define DEFAULT_SOCKET_PATH "/usr/local/nagios/var/rw/live"
++#define DEFAULT_SOCKET_PATH "/var/lib/nagios/rw/live"
+
+ #endif // livestatus_h
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mk-livestatus.git/commitdiff/7904d6e2c9000f8d0743ced60d80493cc2d15237
More information about the pld-cvs-commit
mailing list