From ee8706d41eba7efae8ee98c0c81e2b867e76e233 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Sat, 27 Jun 2009 21:39:00 -0700
Subject: Add run script for runit.

---
 abs/extra-testing/fuppes-svn/PKGBUILD | 6 ++++--
 abs/extra-testing/fuppes-svn/run      | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/abs/extra-testing/fuppes-svn/PKGBUILD b/abs/extra-testing/fuppes-svn/PKGBUILD
index 3c14ddd..295863a 100644
--- a/abs/extra-testing/fuppes-svn/PKGBUILD
+++ b/abs/extra-testing/fuppes-svn/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=fuppes-svn
 pkgver=636
-pkgrel=5
+pkgrel=6
 pkgdesc="A free, multiplatform Universal Plug and Play A/V MediaServer"
 arch=('i686' 'x86_64')
 url="http://fuppes.ulrich-voelkel.de/"
@@ -13,7 +13,7 @@ makdepends=('pkgconfig' 'autoconf' 'subversion')
 install=fuppes.install
 source=(fuppes-r634-archlinux.patch fuppes.diff fuppes.cfg run fuppes.ch)
 md5sums=('5d9f6331cc91b64aab69449ce327b214' 'c495fa1bd9a870ae36820632434319ee' \
-	 'b0cef07d8e60d01c8146a69870672e1f' 'd8615e017b9929498076c312f134b2ed' \
+	 'b0cef07d8e60d01c8146a69870672e1f' '3850001378088e5efac60487e5550d54' \
 	 '3c355b860f1b0d273f5aa8b2bea1bde6')
 
 _svnmod="fuppes"
@@ -44,6 +44,8 @@ build()
 	mkdir -p $startdir/pkg/etc/fuppes
 	cp $startdir/src/fuppes.cfg $startdir/pkg/etc/fuppes
 	mkdir -p $startdir/pkg/etc/cron.hourly
+	mkdir -p $startdir/pkg/etc/sve/fuppes/supervise
 	install -D -m755 $startdir/src/fuppes.ch $startdir/pkg/etc/cron.hourly
+	install -D -m755 $startdir/src/run $startdir/pkg/etc/sv/fuppes
 }
 
diff --git a/abs/extra-testing/fuppes-svn/run b/abs/extra-testing/fuppes-svn/run
index 670a3dd..dc69879 100755
--- a/abs/extra-testing/fuppes-svn/run
+++ b/abs/extra-testing/fuppes-svn/run
@@ -1,2 +1,2 @@
 #!/bin/bash
-exec /usr/bin/fuppes --config-dir /etc/fuppes --database-file /data/srv/fuppes/fuppes.db --temp-dir /myth/tmp
+exec su mythtv -c "/usr/bin/fuppes --config-dir /etc/fuppes --database-file /data/srv/fuppes/fuppes.db --temp-dir /myth/tmp"
-- 
cgit v0.12