]> git.pld-linux.org Git - packages/rt.git/commitdiff
- add logrotate config
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 2 Jul 2012 07:18:07 +0000 (07:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rt.logrotate -> 1.1
    rt.spec -> 1.99

rt.logrotate [new file with mode: 0644]
rt.spec

diff --git a/rt.logrotate b/rt.logrotate
new file mode 100644 (file)
index 0000000..df99cf2
--- /dev/null
@@ -0,0 +1,5 @@
+/var/log/rt.log
+{
+       notifempty
+       missingok
+}
diff --git a/rt.spec b/rt.spec
index 0a3362c871dffeb1142e20949c939f1767a7301d..37c317e466108a470afac90a780e9d31da66913d 100644 (file)
--- a/rt.spec
+++ b/rt.spec
@@ -50,6 +50,7 @@ Source0:      http://download.bestpractical.com/pub/rt/release/%{name}-%{version}.tar
 Source1:       %{name}-apache_dir.conf
 Source2:       %{name}-apache_vhost.conf
 Source3:       %{name}-apache.conf
+Source4:       %{name}.logrotate
 Patch0:                %{name}-layout.patch
 Patch1:                %{name}-config.patch
 URL:           http://www.bestpractical.com/rt/
@@ -274,7 +275,7 @@ USER=$(id -un) \
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_libdir}} \
+install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,cron.daily},%{_libdir}} \
        $RPM_BUILD_ROOT%{masonstatedir} \
        $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
        $RPM_BUILD_ROOT%{_webappsdir}
@@ -285,6 +286,7 @@ install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_libdir}} \
 
 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappsdir}/httpd.conf
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 ln -s %{_sbindir}/rt-clean-sessions $RPM_BUILD_ROOT/etc/cron.daily/rt-clean-sessions
 
@@ -319,6 +321,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %dir %attr(750,root,http) %{_webappsdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappsdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 %attr(755,root,root) /etc/cron.daily/rt-clean-sessions
 %attr(755,root,root) %{_bindir}/rt-*
 %attr(755,root,root) %{_sbindir}/standalone_httpd
This page took 0.077641 seconds and 4 git commands to generate.