]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- logrotate for eventum
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Jun 2006 12:05:57 +0000 (12:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum.logrotate -> 1.1
    eventum.spec -> 1.181

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

diff --git a/eventum.logrotate b/eventum.logrotate
new file mode 100644 (file)
index 0000000..f3f8dec
--- /dev/null
@@ -0,0 +1,9 @@
+/var/log/eventum/errors.log
+/var/log/eventum/irc_bot.log
+{
+       monthly
+       notifempty
+       rotate 52
+       create 620 root eventum
+       olddir /var/log/archiv/eventum
+}
index ee8b39c84a79ca3b938a06d3ee2198b3d3e3c2ba..e18599ed920c04069944cd825bb2a0ea358a6687 100644 (file)
@@ -13,7 +13,7 @@
 
 #define        _snap   20060330
 #define        _rc             RC3
-%define        _rel    2.21
+%define        _rel    2.22
 
 %include       /usr/lib/rpm/macros.php
 Summary:       Eventum Issue / Bug tracking system
@@ -40,6 +40,7 @@ Source11:     %{name}-router-qmail.sh
 Source12:      %{name}-config-setup.php
 Source13:      %{name}-upgrade.sh
 Source14:      %{name}-router-postfix.sh
+Source15:      %{name}.logrotate
 Patch0:                %{name}-lf.patch
 Patch1:                %{name}-perms.patch
 Patch2:                %{name}-cli-wr-separated.patch
@@ -531,7 +532,8 @@ rm -rf $RPM_BUILD_ROOT
 install -d \
        $RPM_BUILD_ROOT{%{_webappdir},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \
        $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,sysconfig} \
-       $RPM_BUILD_ROOT/var/{run,log,cache,lib}/%{name} \
+       $RPM_BUILD_ROOT/var/{run,cache,lib}/%{name} \
+       $RPM_BUILD_ROOT/var/log/{archiv/,}%{name} \
        $RPM_BUILD_ROOT/var/lib/%{name}/routed_{emails,drafts,notes} \
        $RPM_BUILD_ROOT%{_appdir}/{include,htdocs/misc,upgrade} \
 
@@ -604,6 +606,8 @@ install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/router-qmail
 # postfix router
 install %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/router-postfix
 
+install -D %{SOURCE15} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -845,6 +849,8 @@ fi
 
 %dir %attr(731,root,eventum) /var/log/%{name}
 %attr(620,root,eventum) %ghost /var/log/%{name}/*
+%dir %attr(750,root,root) /var/log/archiv/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 
 %dir %{_appdir}/htdocs
 %{_appdir}/htdocs/*.php
This page took 0.07129 seconds and 4 git commands to generate.