X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Monitor.spec;h=335ab16dcdcaadedad0178e1a63c2455d1a13517;hb=59a5e97c767a90437946aa3aca0c8518df662084;hp=753fcd7ea5e0e832799838190da3e729645da7e3;hpb=43bb32dfce56bce3e54548fb0a742c91ad8ba57e;p=monitor.git diff --git a/Monitor.spec b/Monitor.spec index 753fcd7..335ab16 100644 --- a/Monitor.spec +++ b/Monitor.spec @@ -9,6 +9,7 @@ %define taglevel 0 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} +%global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" ) Name: %{name} Version: %{version} @@ -47,9 +48,23 @@ maintenance. %package server Summary: Monitor hooks for the PLC server. Group: Applications/System -Requires: curl -Requires: nmap + Requires: python +Requires: python-sqlalchemy +Requires: python-elixir + +Requires: openssh-clients +Requires: perl-libwww-perl +Requires: perl-IO-Socket-SSL +Requires: MySQL-python +Requires: rt3 == 3.4.1 +Requires: nmap +Requires: PLCWWW >= 4.2 +Requires: bootcd-planetlab-i386 >= 4.2 + +Requires: zabbix-client +Requires: zabbix-gui +Requires: zabbix-server %description server The server side include all python modules and scripts needed to fully @@ -70,8 +85,8 @@ cd .. %install rm -rf $RPM_BUILD_ROOT #################### CLIENT -install -D -m 755 monitor.init $RPM_BUILD_ROOT/%{_initrddir}/monitor -install -D -m 755 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor +install -D -m 755 monitor-client.init $RPM_BUILD_ROOT/%{_initrddir}/monitor +install -D -m 644 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor #################### SERVER install -d $RPM_BUILD_ROOT/usr/share/%{name} @@ -81,6 +96,8 @@ install -d $RPM_BUILD_ROOT/var/lib/%{name} install -d $RPM_BUILD_ROOT/var/lib/%{name}/archive-pdb install -d $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/ +install -D -m 755 monitor-server.init $RPM_BUILD_ROOT/%{_sysconfdir}/plc.d/monitor + echo " * Installing core scripts" rsync -a --exclude www --exclude archive-pdb --exclude .svn --exclude CVS \ ./ $RPM_BUILD_ROOT/usr/share/%{name}/ @@ -89,7 +106,7 @@ echo " * Installing web pages" rsync -a www/ $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/ echo " * Installing cron job for automated polling" -install -D -m 644 %{name}.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/%{name}.cron +install -D -m 644 monitor-server.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor-server.cron echo " * TODO: Setting up Monitor account in local MyPLC" # TODO: @@ -118,11 +135,12 @@ rm -rf $RPM_BUILD_ROOT /usr/share/%{name} /var/lib/%{name} /var/www/cgi-bin/monitor -%{_sysconfdir}/cron.d/%{name}.cron +%{_sysconfdir}/cron.d/monitor-server.cron %{python_sitearch}/threadpool.py %{python_sitearch}/threadpool.pyc %{python_sitearch}/threadpool.pyo %{python_sitearch}/monitor +%{_sysconfdir}/plc.d/monitor %files client %defattr(-,root,root)