Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > deecb6b6a05b8293e284be1ad9b5f073 > files > 23

xymon-4.3.17-5.1.mga5.src.rpm

From fef56ecf5327453fb4c3f2e435f8e4fb6be88bae Mon Sep 17 00:00:00 2001
From: William Murphy <warrendiogenese@gmail.com>
Date: Thu, 7 Aug 2014 22:31:00 -0700
Subject: [PATCH] Patched clienthomecheck

---
 client/Makefile             | 2 +-
 client/xymonclient.cfg.DIST | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/Makefile b/client/Makefile
index 275a9c3..3cdcc8d 100644
--- a/client/Makefile
+++ b/client/Makefile
@@ -27,7 +27,7 @@ COMMONTOOLS=xymon xymoncmd xymongrep xymoncfg xymondigest
 all: $(PROGRAMS) $(COMMONTOOLS) xymonclient.cfg clientlaunch.cfg $(EXTRATOOLS)
 
 xymonclient.cfg: xymonclient.cfg.DIST
-	cat xymonclient.cfg.DIST | sed -e 's!@XYMONHOSTIP@!$(XYMONHOSTIP)!g' >xymonclient.cfg
+	cat xymonclient.cfg.DIST | sed -e 's!@XYMONTOPDIR@!$(XYMONTOPDIR)!g' | sed -e 's!@XYMONHOSTIP@!$(XYMONHOSTIP)!g' >xymonclient.cfg
 	../build/bb-commands.sh >>xymonclient.cfg
 
 clientlaunch.cfg: clientlaunch.cfg.DIST
diff --git a/client/xymonclient.cfg.DIST b/client/xymonclient.cfg.DIST
index b143fab..b14a6de 100644
--- a/client/xymonclient.cfg.DIST
+++ b/client/xymonclient.cfg.DIST
@@ -11,6 +11,7 @@ SHELL="/bin/sh"				# Shell to use when forking programs
 
 # You normally dont need to modify anything below here
 XYMONDPORT="1984"                   # Portnumber where xymond listens
+XYMONCLIENTHOME="@XYMONTOPDIR@/client" # Directory for the Xymon client files
 XYMONHOME="$XYMONCLIENTHOME"       # Directory for the Xymon client files
 XYMON="$XYMONHOME/bin/xymon"          # The Xymon client "xymon" utility
 XYMONTMP="$XYMONHOME/tmp"             # Where we may store temporary files.
-- 
1.8.4.5