SPECS: callweaver.spec - add logrotate and few missing dirs

arekm arekm at pld-linux.org
Thu Apr 26 09:58:10 CEST 2007


Author: arekm                        Date: Thu Apr 26 07:58:10 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add logrotate and few missing dirs

---- Files affected:
SPECS:
   callweaver.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/callweaver.spec
diff -u SPECS/callweaver.spec:1.4 SPECS/callweaver.spec:1.5
--- SPECS/callweaver.spec:1.4	Thu Apr 26 09:09:39 2007
+++ SPECS/callweaver.spec	Thu Apr 26 09:58:04 2007
@@ -17,6 +17,7 @@
 # Source0-md5:	d27ff0129fb8b6058aa310e70dfd0410
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
+Source3:	%{name}.logrotate
 URL:		http://www.callweaver.org/
 BuildRequires:	bluez-libs-devel
 BuildRequires:	curl-devel
@@ -98,20 +99,21 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d}
 
 %{__make} -j1 install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %pre
 %groupadd -g 192 %{name}
-%useradd -u 192 -d /usr/share/empty -s /bin/false -c "callweaver" -g %{name} %{name}
+%useradd -u 192 -d /var/lib/callweaver -s /bin/false -c "callweaver" -g %{name} %{name}
 
 %post
 /sbin/chkconfig --add %{name}
@@ -146,8 +148,15 @@
 %{_libdir}/%{name}/modules/*.la
 %{_datadir}/%{name}
 
+%attr(750,root,callweaver) %dir %{_var}/lib/callweaver
+%attr(750,callweaver,root) %dir %{_var}/log/callweaver
+%attr(750,callweaver,root) %dir %{_var}/log/callweaver/*
+%attr(750,callweaver,root) %dir %{_var}/run/callweaver
+%attr(750,callweaver,root) %dir %{_var}/spool/callweaver
+
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 
 %files devel
 %defattr(644,root,root,755)
@@ -159,6 +168,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2007/04/26 07:58:04  arekm
+- add logrotate and few missing dirs
+
 Revision 1.4  2007/04/26 07:09:39  arekm
 - use snaps from after name change; enable opendbx; use new spandsp; add callweaver user/group
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/callweaver.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list