[Erp5-report] r34068 lucas - /erp5/trunk/utils/rpmgen/templates/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 24 18:50:11 CET 2010


Author: lucas
Date: Wed Mar 24 18:50:10 2010
New Revision: 34068

URL: http://svn.erp5.org?rev=34068&view=rev
Log:
- added logrotate as dependency
- before building this .spec it is required to have erp5-5.4.6 installed because it uses /opt/erp5/5.4.6/bin/python2.4
- added logrotate configuration for timmy.log
- fixed timmy.log path


Modified:
    erp5/trunk/utils/rpmgen/templates/tiolive-application-buildout-mandriva2010.spec.in

Modified: erp5/trunk/utils/rpmgen/templates/tiolive-application-buildout-mandriva2010.spec.in
URL: http://svn.erp5.org/erp5/trunk/utils/rpmgen/templates/tiolive-application-buildout-mandriva2010.spec.in?rev=34068&r1=34067&r2=34068&view=diff
==============================================================================
--- erp5/trunk/utils/rpmgen/templates/tiolive-application-buildout-mandriva2010.spec.in [utf8] (original)
+++ erp5/trunk/utils/rpmgen/templates/tiolive-application-buildout-mandriva2010.spec.in [utf8] Wed Mar 24 18:50:10 2010
@@ -19,8 +19,10 @@
 Group: Databases
 
 Requires: %{softwarename}
+Requires: logrotate
 
 ${:dependencies}
+BuildRequires: %{softwarename}
 
 BuildRoot: /opt/rpmbuild/%{fullname}-%{release}-root
 
@@ -40,9 +42,9 @@
 bin/buildout -c timmy-base.cfg
 
 %post
+grep timmy.log /etc/logrotate.d/timmy || echo $'%{installdir}/var/log/timmy.log {\nsharedscripts\nrotate 10\nweekly\nmissingok\ncompress\n}' >> /etc/logrotate.d/timmy
 crontab -u erp5 -l > erp5.crontab
-# XXX: logrotate %{installdir}/timmy.log
-grep bin/timmy erp5.crontab || echo '*/5 * * * * bin/timmy -k server.key -s https://www.tiolive.com/grid/ -b timmy-base.cfg -t local-eggs/erp5.timmy/src/erp5/timmy/examples/ -o timmy-controller.cfg -d timmy-instances -r bin/buildout -p timmy.pid -l timmy.log' >> erp5.crontab
+grep bin/timmy erp5.crontab || echo '*/5 * * * * bin/timmy -k server.key -s https://www.tiolive.com/grid/ -b timmy-base.cfg -t local-eggs/erp5.timmy/src/erp5/timmy/examples/ -o timmy-controller.cfg -d timmy-instances -r bin/buildout -p timmy.pid -l var/log/timmy.log' >> erp5.crontab
 crontab -u erp5 erp5.crontab
 rm -f erp5.crontab
 cd %{installdir}




More information about the Erp5-report mailing list