diff options
-rw-r--r-- | media-tv/mythtv/ChangeLog | 7 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythtv.logrotate.d-r2 | 44 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild | 6 |
3 files changed, 53 insertions, 4 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 8de33b25355f..ebab71e2bce0 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-tv/mythtv # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.362 2012/07/12 02:27:06 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.363 2012/07/12 02:34:03 cardoe Exp $ + + 11 Jul 2012; Doug Goldstein <cardoe@gentoo.org> + mythtv-0.25.1_p20120708.ebuild, +files/mythtv.logrotate.d-r2: + Add new logrotate file but I'm not convinced this will actually work due to + how upstream does their log files now. 11 Jul 2012; Doug Goldstein <cardoe@gentoo.org> mythtv-0.25.1_p20120708.ebuild: diff --git a/media-tv/mythtv/files/mythtv.logrotate.d-r2 b/media-tv/mythtv/files/mythtv.logrotate.d-r2 new file mode 100644 index 000000000000..190280607893 --- /dev/null +++ b/media-tv/mythtv/files/mythtv.logrotate.d-r2 @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythtv.logrotate.d-r2,v 1.1 2012/07/12 02:34:03 cardoe Exp $ + +/var/log/mythtv/mythbackend.*.log { + rotate 5 + weekly + create 660 mythtv video + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + [ -f "/var/run/mythbackend.pid" ] && \ + /bin/kill -HUP `cat /var/run/mythbackend.pid` + endscript +} + +/var/log/mythtv/mythfrontend.*.log { + rotate 5 + weekly + create 660 mythtv video + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + killall -HUP mythfrontend + find /var/log/mythtv/old -name 'mythfrontend*' -type f -mtime +30 -delete + endscript +} + +/var/log/mythtv/mythpreviewgen.*.log { + rotate 5 + weekly + create 660 mythtv video + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + find /var/log/mythtv/old -name 'mythpreviwgen*' -type f -mtime +30 -delete + endscript +} diff --git a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild index 9adc7259a589..8cfa24bcaecd 100644 --- a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild +++ b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild,v 1.8 2012/07/12 02:27:06 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild,v 1.9 2012/07/12 02:34:03 cardoe Exp $ EAPI=4 @@ -246,8 +246,8 @@ src_install() { keepdir /var/log/mythtv chown -R mythtv "${ED}"/var/log/mythtv - #insinto /etc/logrotate.d - #newins "${FILESDIR}"/mythtv.logrotate.d-r2 mythtv + insinto /etc/logrotate.d + newins "${FILESDIR}"/mythtv.logrotate.d-r2 mythtv insinto /usr/share/mythtv/contrib doins -r contrib/* |