X-Git-Url: http://git.onelab.eu/?p=plcrt.git;a=blobdiff_plain;f=plcrt.spec;h=78ca389f1560a438fbeb7c893720dffadb33464a;hp=fa6ef4dcba34930b9d7593a0de7bcc3cc04041f7;hb=5909a1688b8658db85377c5868a0bca8c032c1d2;hpb=c62b289f9707305ac58cadbdbddc470ca7c3cb71 diff --git a/plcrt.spec b/plcrt.spec index fa6ef4d..78ca389 100644 --- a/plcrt.spec +++ b/plcrt.spec @@ -6,7 +6,7 @@ %define name plcrt %define version 1.0 -%define taglevel 3 +%define taglevel 7 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} @@ -47,10 +47,12 @@ install -D -m 755 plcrt.init $RPM_BUILD_ROOT/%{_sysconfdir}/plc.d/plcrt echo " * Installing core scripts" rsync -a ./ $RPM_BUILD_ROOT/%{_datadir}/%{name}/ -echo " * Installing cron scripts" install -D -m 644 rt.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/rt.cron +install -D -m 755 getpersons.py $RPM_BUILD_ROOT/%{_datadir}/%{name}/getpersons.py +install -D -m 755 callplcsh.py $RPM_BUILD_ROOT/%{_datadir}/%{name}/callplcsh.py +install -D -m 755 adduserstort.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/adduserstort.pl -chmod 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}/adduserstort.pl +echo " * Installing cron scripts" chmod 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}/cron.d/*.sh %clean @@ -69,11 +71,14 @@ if grep 'pam_loginuid.so' /etc/pam.d/crond ; then fi if ! grep '' /etc/planetlab/default_config.xml ; then - sed -i 's|| \n RT Configuration\n RT\n \n \n Enabled\n false\n Enable on this machine.\n \n \n Hostname\n localhost.localdomain\n The fully qualified hostname.\n \n \n IP Address\n \n The IP address of the RT server.\n \n \n username\n root\n The user name for RT access.\n \n \n password\n password\n password to the rt user.\n \n -\n Database Password\n \n Password to use when accessing the RT database.\n \n \n \n |' /etc/planetlab/default_config.xml + sed -i 's|| \n RT Configuration\n RT\n \n \n Enabled\n false\n Enable on this machine.\n \n \n Hostname\n localhost.localdomain\n The fully qualified hostname.\n \n \n IP Address\n \n The IP address of the RT server.\n \n \n username\n root\n The user name for RT access.\n \n \n password\n password\n password to the rt user.\n \n \n email list\n root+list@localhost.localdomain\n \n \n \n Database Password\n \n Password to use when accessing the RT database.\n \n \n \n |' /etc/planetlab/default_config.xml fi mkdir -p /etc/planetlab/configs +plc-config --category plc_rt --variable cc_address \ + --value 'root+list@localhost.localdomain'\ + --save /etc/planetlab/default_config.xml /etc/planetlab/default_config.xml + plc-config --category plc_rt --variable enabled --value true \ --save /etc/planetlab/configs/site.xml /etc/planetlab/default_config.xml @@ -97,6 +102,24 @@ chown apache.apache /var/log/rt3/rt.log cp /usr/share/rt3/html/NoAuth/images/bplogo.gif /var/www/html/misc/logo.gif %changelog +* Sun Sep 20 2009 Stephen Soltesz - PLCRT-1.0-7 +- replace callplcsh with simpler scripts for syncing users + +* Sat Sep 19 2009 Stephen Soltesz - PLCRT-1.0-6 +- some plcs don't return site_ids so getpersons should not depend on this field +- make scripts exec on install +- use RT_HOST name rather than localhost for RT mailgate configuration + +* Wed Jul 08 2009 Stephen Soltesz - PLCRT-1.0-5 +- add mailing list watchers to default queues +- add script to addwatchers to default queues +- improved templates in plcrt.init + +* Mon Jul 06 2009 Stephen Soltesz - PLCRT-1.0-4 +- rt db password +- template conf.d/* files rather than one-shot re-write +- better %post in spec file for logo and default xml settings. + * Sat Jul 04 2009 Stephen Soltesz - PLCRT-1.0-3 - renamed getpersons.py to accept a given 'role' - changed syncadmins.sh to use callplcsh.py