# Alter Makefile to add the initd scripts in its regex searching # # Also run: # sed -e 's#PROGRAMS = xymon.sh#PROGRAMS = ../rpm/xymon-init.d ../rpm/xymon-client.init xymon.sh#' -i xymond/Makefile # sed -e 's#PROGRAMS=xymonlaunch#PROGRAMS=../rpm/xymon-client.init xymonlaunch#' -i client/Makefile --- xymond/Makefile.initdvars 2010-11-14 09:21:19.000000000 -0800 +++ xymond/Makefile 2011-02-07 10:43:16.904901677 -0800 @@ -106,6 +106,14 @@ cat $< | sed -e 's!@XYMONHOME@!$(XYMONHOME)!g' | sed -e 's!@XYMONLOGDIR@!$(XYMONLOGDIR)!g' | sed -e 's!@XYMONUSER@!$(XYMONUSER)!g' | sed -e 's!@RUNTIMEDEFS@!$(RUNTIMEDEFS)!g' >$@ chmod 755 $@ +../rpm/xymon-init.d: ../rpm/xymon-init.d.DIST + cat $< | sed -e 's!@XYMONTOPDIR@!$(XYMONTOPDIR)!g' | sed -e 's!@XYMONHOME@!$(XYMONHOME)!g' | sed -e 's!@XYMONLOGDIR@!$(XYMONLOGDIR)!g' | sed -e 's!@XYMONRUNDIR@!$(XYMONRUNDIR)!g' | sed -e 's!@XYMONUSER@!$(XYMONUSER)!g' | sed -e 's!@RUNTIMEDEFS@!$(RUNTIMEDEFS)!g' >$@ + chmod 755 $@ + +../rpm/xymon-client.init: ../rpm/xymon-client.init.DIST + cat $< | sed -e 's!@XYMONTOPDIR@!$(XYMONTOPDIR)!g' | sed -e 's!@XYMONHOME@!$(XYMONHOME)!g' | sed -e 's!@XYMONLOGDIR@!$(XYMONLOGDIR)!g' | sed -e 's!@XYMONRUNDIR@!$(XYMONRUNDIR)!g' | sed -e 's!@XYMONUSER@!$(XYMONUSER)!g' | sed -e 's!@RUNTIMEDEFS@!$(RUNTIMEDEFS)!g' >$@ + chmod 755 $@ + xymonreports.sh: xymonreports.sh.DIST cat $< | sed -e 's!@XYMONHOME@!$(XYMONHOME)!g' >$@ chmod 755 $@ --- client/Makefile.initdvars 2010-11-14 09:21:19.000000000 -0800 +++ client/Makefile 2011-02-07 10:42:27.177793927 -0800 @@ -26,4 +26,8 @@ ../build/bb-commands.sh >>xymonclient.cfg +../rpm/xymon-client.init: ../rpm/xymon-client.init.DIST + cat $< | sed -e 's!@XYMONTOPDIR@!$(XYMONTOPDIR)!g' | sed -e 's!@XYMONHOME@!$(XYMONHOME)!g' | sed -e 's!@XYMONLOGDIR@!$(XYMONLOGDIR)!g' | sed -e 's!@XYMONRUNDIR@!$(XYMONRUNDIR)!g' | sed -e 's!@XYMONUSER@!$(XYMONUSER)!g' | sed -e 's!@RUNTIMEDEFS@!$(RUNTIMEDEFS)!g' >$@ + chmod 755 $@ + clientlaunch.cfg: clientlaunch.cfg.DIST ifeq ($(LOCALCLIENT),yes)