From 4cfa907a0876318060bc6b26bdbc25f5a7791913 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 5 Jan 2009 17:43:52 +0000 Subject: [PATCH] separate pcucontrol package. --- Monitor.spec | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Monitor.spec b/Monitor.spec index 0cdaf1b..117b469 100644 --- a/Monitor.spec +++ b/Monitor.spec @@ -33,6 +33,8 @@ system, syncing the PLC db with the monitoring database, notifying users, interacting with PCU hardware, applying penalties to sites that violate acceptable use. +######################################## CLIENT + %package client Summary: Monitor hooks for a PLC node Group: Applications/System @@ -45,6 +47,7 @@ include configuration setup for the monitoring agent running on the node. It will also include any cron or init scripts needed to perform this kind of maintenance. +######################################## Server %package server Summary: Monitor hooks for the PLC server. Group: Applications/System @@ -71,6 +74,18 @@ The server side include all python modules and scripts needed to fully operation, track, and interact with any third-party monitoring software, such as Zabbix DB. +######################################## PCU Control + +%package pcucontrol +Summary: PCU Controls for Monitor and PLCAPI +Group: Applications/System +Requires: python + +%description pcucontrol +Both Monitor and the PLCAPI use a set of common commands to reboot machines +using their external or internal PCUs. This package is a library of several +supported models. + %prep %setup -q @@ -129,6 +144,7 @@ chmod 777 $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/monitorconfig.php %clean rm -rf $RPM_BUILD_ROOT + %files server %defattr(-,root,root) #%config /usr/share/%{name}/monitorconfig.py @@ -141,7 +157,6 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/threadpool.pyc %{python_sitearch}/threadpool.pyo %{python_sitearch}/monitor -%{python_sitearch}/pcucontrol %{_sysconfdir}/plc.d/monitor %files client @@ -149,6 +164,9 @@ rm -rf $RPM_BUILD_ROOT %{_initrddir}/monitor %{_sysconfdir}/cron.d/monitor +%files pcucontrol +%{python_sitearch}/pcucontrol + %post server # TODO: this will be nice when we have a web-based service running., such as # an API server or so on. @@ -161,6 +179,9 @@ rm -rf $RPM_BUILD_ROOT # NOTE: generate the python defines from zabbix include files. php /usr/share/%{name}/zabbix/getdefines.php > %{python_sitearch}/monitor/database/zabbixapi/defines.py +# apply patches to zabbix +patch -d /var/www/html/zabbix/ -p0 < /usr/share/%{name}/zabbix/zabbix/zabbix-auto-login.diff + #chkconfig --add monitor-server #chkconfig monitor-server on -- 2.43.0