From 801bedd47392ba331b77bd89128712bfac8afd0d Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Sat, 2 May 2009 16:22:48 -0700
Subject: Should resolve 'pretty' not running.

---
 abs/core-testing/mythtv/stable/mythtv/PKGBUILD    |  4 ++--
 abs/core-testing/mythtv/stable/mythtv/pretty      |  2 +-
 abs/core-testing/mythtv/trunk/mythtv/PKGBUILD     | 10 +++++++---
 abs/core-testing/mythtv/trunk/mythtv/pretty       |  2 ++
 abs/extra-testing/community/mythtv-vdpau/PKGBUILD |  5 +++--
 5 files changed, 15 insertions(+), 8 deletions(-)
 create mode 100644 abs/core-testing/mythtv/trunk/mythtv/pretty

diff --git a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
index f534120..271d7d3 100644
--- a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
+++ b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
@@ -1,10 +1,10 @@
 pkgname=mythtv
 pkgver=0.21
-pkgrel=66
+pkgrel=67
 pkgdesc="A Homebrew PVR project"
 arch=('i686' 'x86_64')
 depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
-	'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883')
+	'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883' 'perl-net-upnp')
 backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt usr/share/mythtv/is.xmlusr/share/mythtv/media_settings.xml ) 
 source=(ftp://ftp.knoppmyth.net/R6/sources/${pkgname}-${pkgver}-fixes.tar.bz2 \
 	mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch  smolt_jump.patch pretty gnome_screensaver.patch mpegpspatch mythbackend.lr mythfrontend.lr)
diff --git a/abs/core-testing/mythtv/stable/mythtv/pretty b/abs/core-testing/mythtv/stable/mythtv/pretty
index 3bcc0b4..e47aaec 100644
--- a/abs/core-testing/mythtv/stable/mythtv/pretty
+++ b/abs/core-testing/mythtv/stable/mythtv/pretty
@@ -1,2 +1,2 @@
 #!/bin/bash
-perl /usr/share/mythtv/contrib/mythrename.pl --link /myth/pretty
+su mythtv -c "perl /usr/share/mythtv/contrib/mythrename.pl --link /myth/pretty"
diff --git a/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD b/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD
index ec1e9cb..3fb2082 100755
--- a/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD
+++ b/abs/core-testing/mythtv/trunk/mythtv/PKGBUILD
@@ -1,11 +1,12 @@
 pkgname=mythtv-svn
 pkgver=20414
-pkgrel=2
+pkgrel=3
 pkgdesc="A personal video recorder for Linux"
 url="http://www.mythtv.org"
 license="GPL"
 depends=('bash' 'mysql-clients>=5.0' 'qt' 'lame' 'lirc-utils' 'ffmpeg' \
-        'faad2' 'libxv' 'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883')
+        'faad2' 'libxv' 'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883' \
+	'perl-net-upnp')
 makedepends=('libgl' 'subversion')
 conflicts=('mythtv')
 replaces=()
@@ -17,7 +18,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}` 'mythbackend.lr' 'mythfrontend.lr')
+source=('mythbackend' 'myth.sh' `echo ${patchs[@]:0}` 'mythbackend.lr' 'mythfrontend.lr' 'pretty')
 arch=('i686' 'x86_64')
 #md5sums=()
 
@@ -79,6 +80,9 @@ build() {
 	chown 1000.1000 $startdir/pkg/var/log/mythtv
 	mkdir -p $startdir/pkg/etc/logrotate.d
 	cp $startdir/src/*.lr $startdir/pkg/etc/logrotate.d
+	mkdir -p $startdir/pkg/etc/cron.hourly/
+	cp $startdir/src/pretty $startdir/pkg/etc/cron.hourly/
+
 
 }
 
diff --git a/abs/core-testing/mythtv/trunk/mythtv/pretty b/abs/core-testing/mythtv/trunk/mythtv/pretty
new file mode 100644
index 0000000..e47aaec
--- /dev/null
+++ b/abs/core-testing/mythtv/trunk/mythtv/pretty
@@ -0,0 +1,2 @@
+#!/bin/bash
+su mythtv -c "perl /usr/share/mythtv/contrib/mythrename.pl --link /myth/pretty"
diff --git a/abs/extra-testing/community/mythtv-vdpau/PKGBUILD b/abs/extra-testing/community/mythtv-vdpau/PKGBUILD
index 8e7f2de..9299fa1 100644
--- a/abs/extra-testing/community/mythtv-vdpau/PKGBUILD
+++ b/abs/extra-testing/community/mythtv-vdpau/PKGBUILD
@@ -1,10 +1,11 @@
 pkgname=mythtv-vdpau
 pkgver=0.21
-pkgrel=18
+pkgrel=19
 pkgdesc="A Homebrew PVR project"
 arch=('i686' 'x86_64')
 depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
-	'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883' 'nvidia>=180.29')
+	'libxvmc' 'libavc1394' 'libdc1394' 'libiec61883' 'nvidia>=180.29' \
+	'perl-net-upnp')
 backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt usr/share/mythtv/is.xml usr/share/mythtv/media_settings.xml)
 source=(ftp://ftp.knoppmyth.net/R6/sources/mythtv-${pkgver}-fixes.tar.bz2 \
 	mythbackend myththemedmenu.cpp.patch myththemedmenu.h.patch  \
-- 
cgit v0.12

