#!/bin/sh

# below are commands to configure ippMonitor

# we have moved all user/password info into config.dat (see config.dat.in for an example)

# --site defines the location of the ipp configuration site-specific information
# note that we have a special version for ippmonitor without $PSCONFIG/$PSCONFDIR values:
# --site ~/ippconfig/ippmonitor.config

# set psconfig to use a different build from the standard ops tag.  This allows 
# testing of those parts of ippMonitor which depend on IPP code without modifyin
# the operational installation
# 2019.11.18 CCL: which parts of ippMonitor depends on IPP codes?  If there is not many
#                 , just use trunk version should work fine.
psconfig ipp-trunk-20180515

# run psconfigure to generate Makefile and raw/site.php (site.php.in includes CZARPLOTDIR now)
psconfigure --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config

# copy these files and modify them
cp config.dat.in config.dat

# for czarpool.pl, the path needs to be defined. 
cp czartool/czarconfig.xml.in czartool/czarconfig.xml
# then set gnuplot path <path>/export/ipp113.0/ipp/czartool_plots</path>  --> for ipp113
# ipp117 is set to be rsynced in crontab regularly from ipp113's path,
# so need to remove crontab if czarpool.pl is under development 
# then set gnuplot path <path>/export/ipp117.0/ipp/czartool_plots</path>  --> for ipp117

# install the php code:
make


