From 6af5a244c0420e1288f14ad730964feebdd25d34 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Thu, 30 Apr 2009 17:45:15 -0700
Subject: Added log rotation files for back/frontend logs.

---
 abs/core-testing/mythtv/trunk/mythtv/PKGBUILD        | 6 ++++--
 abs/core-testing/mythtv/trunk/mythtv/mythbackend.lr  | 9 +++++++++
 abs/core-testing/mythtv/trunk/mythtv/mythfrontend.lr | 9 +++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 abs/core-testing/mythtv/trunk/mythtv/mythbackend.lr
 create mode 100644 abs/core-testing/mythtv/trunk/mythtv/mythfrontend.lr

diff --git a/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD b/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD
index 21fd554..ec1e9cb 100755
--- a/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD
+++ b/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=mythtv-svn
 pkgver=20414
-pkgrel=1
+pkgrel=2
 pkgdesc="A personal video recorder for Linux"
 url="http://www.mythtv.org"
 license="GPL"
@@ -17,7 +17,7 @@ install='mythtv.install'
 
 patchs=('smolt_jump.patch' 'myththemedmenu.h.patch' 'myththemedmenu.cpp.patch' 'DeviceReadBuffer-polltimeout.2.patch')
 #patchs=('svn_main_menu_popup.patch' 'smolt_jump.patch' 'DeviceReadBuffer-polltimeout.2.patch')
-source=('mythbackend' 'myth.sh' `echo ${patchs[@]:0}` )
+source=('mythbackend' 'myth.sh' `echo ${patchs[@]:0}` 'mythbackend.lr' 'mythfrontend.lr')
 arch=('i686' 'x86_64')
 #md5sums=()
 
@@ -77,6 +77,8 @@ build() {
 	# make log dir
 	mkdir -p $startdir/pkg/var/log/mythtv
 	chown 1000.1000 $startdir/pkg/var/log/mythtv
+	mkdir -p $startdir/pkg/etc/logrotate.d
+	cp $startdir/src/*.lr $startdir/pkg/etc/logrotate.d
 
 }
 
diff --git a/abs/core-testing/mythtv/trunk/mythtv/mythbackend.lr b/abs/core-testing/mythtv/trunk/mythtv/mythbackend.lr
new file mode 100644
index 0000000..4f218bc
--- /dev/null
+++ b/abs/core-testing/mythtv/trunk/mythtv/mythbackend.lr
@@ -0,0 +1,9 @@
+/var/log/mythtv/mythbackend.log {
+	copytruncate
+	daily
+	size 10M
+	missingok
+	rotate 7
+	compress
+	notifempty
+}
diff --git a/abs/core-testing/mythtv/trunk/mythtv/mythfrontend.lr b/abs/core-testing/mythtv/trunk/mythtv/mythfrontend.lr
new file mode 100644
index 0000000..1580533
--- /dev/null
+++ b/abs/core-testing/mythtv/trunk/mythtv/mythfrontend.lr
@@ -0,0 +1,9 @@
+/var/log/mythtv/mythfrontend.log {
+	copytruncate
+	daily
+	size 10M
+	missingok
+	rotate 7
+	compress
+	notifempty
+}
-- 
cgit v0.12

