From 2eb9587f0e98fcf3f3e9bf3f9ab96e87ff777ea0 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Thu, 30 Apr 2009 17:53:05 -0700
Subject: Latest -fixes, VDPAU 20462 and log rotation files for back/frontend
 logs.

---
 abs/extra-testing/community/mythtv-vdpau/PKGBUILD        | 8 +++++---
 abs/extra-testing/community/mythtv-vdpau/mythbackend.lr  | 9 +++++++++
 abs/extra-testing/community/mythtv-vdpau/mythfrontend.lr | 9 +++++++++
 3 files changed, 23 insertions(+), 3 deletions(-)
 create mode 100644 abs/extra-testing/community/mythtv-vdpau/mythbackend.lr
 create mode 100644 abs/extra-testing/community/mythtv-vdpau/mythfrontend.lr

diff --git a/abs/extra-testing/community/mythtv-vdpau/PKGBUILD b/abs/extra-testing/community/mythtv-vdpau/PKGBUILD
index 2921056..8988053 100644
--- a/abs/extra-testing/community/mythtv-vdpau/PKGBUILD
+++ b/abs/extra-testing/community/mythtv-vdpau/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=mythtv-vdpau
 pkgver=0.21
-pkgrel=17
+pkgrel=18
 pkgdesc="A Homebrew PVR project"
 arch=('i686' 'x86_64')
 depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
@@ -9,7 +9,7 @@ backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt usr/share/mythtv/is.xml
 source=(ftp://ftp.knoppmyth.net/R6/sources/mythtv-${pkgver}-fixes.tar.bz2 \
 	mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch  \
 	smolt_jump.patch pretty \
-	http://www.avenard.org/files/media/vdpau/mythtv-fixes-glvdpau20405-5.patch.gz mpegpspatch)
+	http://www.avenard.org/files/media/vdpau/mythtv-fixes-glvdpau20462.patch.gz mpegpspatch mythbackend.lr mythfrontend.lr)
 
 #md5sums=('e316ed18d7ac837cf8c4af54b1478793' '7ef6de58240e7aad389a0b13d91b1cf6'\
 #         'a0ecb7f476cb71c0c1ac90d349fc7695')
@@ -32,7 +32,7 @@ build() {
 #	 patch -p0 < ../pop_be_restart.cpp.patch
 	 patch -p0 < ../smolt_jump.patch
 #	 patch -p0 < ../2.6.28_dvb_api_version.diff
-       	patch -p1 < ../mythtv-fixes-glvdpau20405-5.patch
+       	patch -p1 < ../mythtv-fixes-glvdpau20462.patch
         cd libs/libavformat
         patch -p0 < $startdir/src/mpegpspatch
         cd -
@@ -96,4 +96,6 @@ build() {
   chown 1000.1000 $startdir/pkg/var/log/mythtv
   mkdir -p $startdir/pkg/etc/cron.hourly
   install -m0755 $startdir/src/pretty $startdir/pkg/etc/cron.hourly/
+  mkdir -p $startdir/pkg/etc/logrotate.d
+  cp *.lr $startdir/pkg/etc/logrotate.d
 }
diff --git a/abs/extra-testing/community/mythtv-vdpau/mythbackend.lr b/abs/extra-testing/community/mythtv-vdpau/mythbackend.lr
new file mode 100644
index 0000000..4f218bc
--- /dev/null
+++ b/abs/extra-testing/community/mythtv-vdpau/mythbackend.lr
@@ -0,0 +1,9 @@
+/var/log/mythtv/mythbackend.log {
+	copytruncate
+	daily
+	size 10M
+	missingok
+	rotate 7
+	compress
+	notifempty
+}
diff --git a/abs/extra-testing/community/mythtv-vdpau/mythfrontend.lr b/abs/extra-testing/community/mythtv-vdpau/mythfrontend.lr
new file mode 100644
index 0000000..1580533
--- /dev/null
+++ b/abs/extra-testing/community/mythtv-vdpau/mythfrontend.lr
@@ -0,0 +1,9 @@
+/var/log/mythtv/mythfrontend.log {
+	copytruncate
+	daily
+	size 10M
+	missingok
+	rotate 7
+	compress
+	notifempty
+}
-- 
cgit v0.12

