Re-add logrotate, only for access.log
This commit is contained in:
parent
18b4d7e64a
commit
34a1c5ec0c
6
c-icap.logrotate
Normal file
6
c-icap.logrotate
Normal file
@ -0,0 +1,6 @@
|
||||
/var/log/c-icap/access.log /var/log/c-icap/server.log {
|
||||
copytruncate
|
||||
notifempty
|
||||
missingok
|
||||
delaycompress
|
||||
}
|
@ -8,6 +8,7 @@ License: LGPL
|
||||
|
||||
Source0: http://sourceforge.net/projects/c-icap/files/c-icap/0.5.x/c_icap-%{version}.tar.gz
|
||||
Source1: %{name}.service
|
||||
Source2: %{name}.logrotate
|
||||
Source4: %{name}.conf
|
||||
|
||||
URL: http://%{name}.sourceforge.net/
|
||||
@ -93,12 +94,14 @@ The %{name}-progs package contains several commandline tools for %{name}.
|
||||
|
||||
%install
|
||||
[ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
||||
%{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
%{__mkdir_p} %{buildroot}%{_sbindir}
|
||||
%{__mkdir_p} %{buildroot}%{_datadir}/%{modn}/{contrib,templates}
|
||||
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{name}
|
||||
|
||||
%{__make} DESTDIR=%{buildroot} install
|
||||
%{__mv} -f %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}
|
||||
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||
%{__install} -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
%{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/c-icap.service
|
||||
%{__install} -m 0755 contrib/*.pl %{buildroot}%{_datadir}/%{modn}/contrib
|
||||
@ -138,6 +141,7 @@ exit 0 # Always pass
|
||||
%attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*.conf
|
||||
%attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*.magic
|
||||
%attr(640,root,%{name}) %{_sysconfdir}/%{name}/*.default
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
%{_unitdir}/c-icap.service
|
||||
%dir %{_libdir}/%{modn}
|
||||
%{_libdir}/%{modn}/bdb_tables.so
|
||||
|
Loading…
x
Reference in New Issue
Block a user