Requires: curl
Requires: coreutils
+Requires: openssh-clients
Requires: PLCWWW >= 4.2
+Requires: BootCD >= 4.2
%description
Scripts for polling PLC, the node, and PCU status. Also a collection of
%setup -q
%build
+# TODO: note that we should build the cmdamt/ with g++
echo "There is no build stage. Simply copy files."
%install
install -D -m 755 %{name}.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/%{name}
echo " * TODO: Setting up Monitor account in local MyPLC"
+cp $RPM_BUILD_ROOT/usr/share/%{name}/monitorconfig-default.py $RPM_BUILD_ROOT/usr/share/%{name}/monitorconfig.py
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
-%config /var/share/%{name}/monitorconfig.py
+%config /usr/share/%{name}/monitorconfig.py
/usr/share/%{name}
/var/lib/%{name}
/var/www/cgi-bin/monitor
echo "Post processing"
# TODO: this will be nice when we have a web-based service running., such as
# an API server or so on.
+# TODO: create real monitorconfig.py from monitorconfig-default.py
+# TODO: create monitorconfig.php using phpconfig.py
+# TODO: create symlink in /var/lib/monitor-server for chroot environments
+# TODO: update the content of automate_pl03.sh
+
#chkconfig --add monitor-server
#chkconfig monitor-server on