X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor-server.spec;h=16047356dde7a966386b45be2a88c35b6f5cee34;hb=6f2351e4b44590221425fa9b4bfa77c92db49b6a;hp=5b7a25b7877748666a373066c917b4d15a868347;hpb=c5aec1ec939f32b1db848bf698c7b63f9869b49f;p=monitor.git diff --git a/monitor-server.spec b/monitor-server.spec index 5b7a25b..1604735 100644 --- a/monitor-server.spec +++ b/monitor-server.spec @@ -2,13 +2,15 @@ # $Id$ # -%define url $URL: svn+ssh://svn.planet-lab.org/svn/Monitor/trunk/Monitor-server.spec $ +%define url $URL: svn+ssh://svn.planet-lab.org/svn/Monitor/trunk/monitor-server.spec $ %define name monitor-server -%define version 1.0 -%define taglevel 5 +%define version 1.1 +%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)" ) + Summary: Monitor backend scripts for server Name: %{name} @@ -27,9 +29,14 @@ URL: %(echo %{url} | cut -d ' ' -f 2) Requires: curl Requires: coreutils Requires: openssh-clients -Requires: PLCWWW >= 4.2 -Requires: BootCD >= 4.2 +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 Scripts for polling PLC, the node, and PCU status. Also a collection of @@ -40,12 +47,17 @@ command-line utilities for querying the status database. %build # TODO: note that we should build the cmdamt/ with g++ -echo "There is no build stage. Simply copy files." +cd cmdamt +export TMPDIR=$PWD/tmp +make +cd .. %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/share/%{name} +mkdir -p $RPM_BUILD_ROOT/data/var/lib/%{name} +mkdir -p $RPM_BUILD_ROOT/data/var/lib/%{name}/archive-pdb mkdir -p $RPM_BUILD_ROOT/var/lib/%{name} mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}/archive-pdb mkdir -p $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/ @@ -58,10 +70,23 @@ 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 755 %{name}.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/%{name}.cron +install -D -m 644 %{name}.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/%{name}.cron echo " * TODO: Setting up Monitor account in local MyPLC" # TODO: +mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}/monitor +install -d -D -m 755 monitor $RPM_BUILD_ROOT/%{python_sitearch}/monitor +# TODO: need a much better way to do this. +rsync -a monitor/ $RPM_BUILD_ROOT/%{python_sitearch}/monitor/ +#for file in __init__.py database.py config.py ; do +# install -D -m 644 monitor/$file $RPM_BUILD_ROOT/%{python_sitearch}/monitor/$file +#done +install -D -m 755 threadpool.py $RPM_BUILD_ROOT/%{python_sitearch}/threadpool.py + +touch $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/monitorconfig.php +chmod 777 $RPM_BUILD_ROOT/var/www/cgi-bin/monitor/monitorconfig.php + +install -D -m 755 monitor-default.conf $RPM_BUILD_ROOT/etc/monitor.conf cp $RPM_BUILD_ROOT/usr/share/%{name}/monitorconfig-default.py $RPM_BUILD_ROOT/usr/share/%{name}/monitorconfig.py %clean @@ -70,10 +95,15 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %config /usr/share/%{name}/monitorconfig.py +%config /etc/monitor.conf /usr/share/%{name} /var/lib/%{name} /var/www/cgi-bin/monitor %{_sysconfdir}/cron.d/%{name}.cron +%{python_sitearch}/threadpool.py +%{python_sitearch}/threadpool.pyc +%{python_sitearch}/threadpool.pyo +%{python_sitearch}/monitor %post echo "Post processing" @@ -89,5 +119,25 @@ echo "Post processing" #chkconfig monitor-server on %changelog +* Tue Oct 14 2008 Stephen Soltesz - Monitor-1.0-10 +- an update to the latest tag. looks like I actually needed to update the tags +- file more than this. + +* Thu Sep 25 2008 Stephen Soltesz - Monitor-1.0-9 +- includes all removals of 'monitorconfig' + +* Wed Sep 24 2008 Stephen Soltesz - Monitor-1.0-8 +- These are all changes in the latest Monitor code. I will branch this version +- next, before making additional large changes. + +* Mon Sep 01 2008 Thierry Parmentelat - Monitor-1.0-7 +- Checkpointing current version for 4.2-rc21 - many many changes + +* Mon Aug 11 2008 Stephen Soltesz - Monitor-1.0-6 +- This is a major tag of every thing. probably needs a very different release +- number. + * Wed Jul 30 2008 Stephen Soltesz - Monitor-server-1.0-5 - initial creation of server-side package + +%define module_current_branch 1.0