SPECS: roundcubemail.spec - logrotate file and archiv-logs location

blues blues at pld-linux.org
Mon Jul 9 13:37:17 CEST 2007


Author: blues                        Date: Mon Jul  9 11:37:17 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- logrotate file and archiv-logs location

---- Files affected:
SPECS:
   roundcubemail.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SPECS/roundcubemail.spec
diff -u SPECS/roundcubemail.spec:1.32 SPECS/roundcubemail.spec:1.33
--- SPECS/roundcubemail.spec:1.32	Thu Jul  5 15:12:43 2007
+++ SPECS/roundcubemail.spec	Mon Jul  9 13:37:12 2007
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
 # TODO:
 # - prepare config for lighttp
-# - add logrotate file
 # - it has PEAR boundled inside - use system ones
 # - use pear-deps system?
 # - use system js/tiny_mce
@@ -10,7 +9,7 @@
 %define		_svn	583
 #%define		_snap	20070521
 %define		_beta	rc1
-%define		_rel	0.1
+%define		_rel	0.5
 Summary:	RoundCube Webmail
 Summary(pl.UTF-8):	RoundCube Webmail - poczta przez WWW
 Name:		roundcubemail
@@ -43,6 +42,7 @@
 # Source10-md5:	7eefd644446bb187030160531a34fce4
 Source11:	http://dl.sourceforge.net/roundcubemail/roundcube_turkish-%{version}-%{_beta}.tar.gz
 # Source11-md5:	99f02f05d54d8623e226772a316d0a0a
+Source20:	%{name}.logrotate
 Patch0:		%{name}-config.patch
 Patch1:		%{name}-faq-page.patch
 Patch2:		%{name}-tz.patch
@@ -63,6 +63,7 @@
 %define		_appdir		%{_datadir}/%{_webapp}
 %define		_appdatadir	/var/lib/roundcube
 %define		_applogdir	/var/log/roundcube
+%define		_archivlogdir	/var/log/archiv/roundcube
 
 %description
 RoundCube Webmail is a browser-based multilingual IMAP client with an
@@ -119,8 +120,8 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdatadir},%{_applogdir},%{_sysconfdir}} \
-	$RPM_BUILD_ROOT%{_appdir}/{bin,config,program,skins}
+install -d $RPM_BUILD_ROOT{%{_appdatadir},%{_applogdir},%{_archivlogdir},%{_sysconfdir}} \
+	$RPM_BUILD_ROOT{%{_appdir}/{bin,config,program,skins},/etc/logrotate.d}
 
 # Main application part:
 cp -a program/* $RPM_BUILD_ROOT%{_appdir}/program
@@ -138,6 +139,7 @@
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE20} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -186,6 +188,7 @@
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 %dir %{_appdir}
 %{_appdir}/*.php
 %dir %{_appdir}/bin
@@ -240,6 +243,7 @@
 
 %dir %{_appdir}/skins
 %dir %attr(770,root,http) %{_applogdir}
+%dir %attr(751,root,logs) %{_archivlogdir}
 %dir %attr(770,root,http) %{_appdatadir}
 # %ghost logfile
 
@@ -253,6 +257,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2007/07/09 11:37:12  blues
+- logrotate file and archiv-logs location
+
 Revision 1.32  2007/07/05 13:12:43  blues
 - 0.1rc1 - some langs are removed from package, some are in external packs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/roundcubemail.spec?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list