X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Monitor.spec;h=10360b26bfa3f777fb2bca4c6e0a4855eccb4fd2;hb=0fabfc8dbe8f1f2c0d12397e1bc8c6ed686fb5ed;hp=753fcd7ea5e0e832799838190da3e729645da7e3;hpb=43bb32dfce56bce3e54548fb0a742c91ad8ba57e;p=monitor.git diff --git a/Monitor.spec b/Monitor.spec index 753fcd7..10360b2 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,19 @@ 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 %description server The server side include all python modules and scripts needed to fully @@ -71,7 +82,7 @@ cd .. 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 644 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor #################### SERVER install -d $RPM_BUILD_ROOT/usr/share/%{name} @@ -89,7 +100,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,7 +129,7 @@ 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