From f163da899e5d0e273b5354efc959a24cead50829 Mon Sep 17 00:00:00 2001
From: Nathan Harris <nharris@eoimaging.com>
Date: Thu, 19 Feb 2009 11:16:44 -0500
Subject: new install file

---
 .../mythtv/trunk/mythtv/mythtv.install             | 55 ++++++----------------
 1 file changed, 15 insertions(+), 40 deletions(-)

diff --git a/abs/core-testing/mythtv/trunk/mythtv/mythtv.install b/abs/core-testing/mythtv/trunk/mythtv/mythtv.install
index 513852a..87507a5 100755
--- a/abs/core-testing/mythtv/trunk/mythtv/mythtv.install
+++ b/abs/core-testing/mythtv/trunk/mythtv/mythtv.install
@@ -1,53 +1,28 @@
-
 # arg 1:  the new package version
-pre_install () {
-        echo "backing up the database"
-                dbver=`pacman -Q mythtv-svn | awk  ' { print $2 } '`
-        if [ ! -e /data/databases_backup ]
-        then
-                mkdir -p /data/database_backup
-        fi
-        mysqldump -u mythtv -pmythtv mythconverg -c > /data/database_backup/${dbver}.dump.sql
-}
-
 post_install() {
-  	mkdir -p /data/home
-        /usr/sbin/useradd -G users,video,audio,optical -m -d /data/home/mythtv mythtv
-        /usr/sbin/usermod -G users,video,audio,optical mythtv
-#        mkdir /var/log/mythtv
-#        chown -R mythtv:users /var/log/mythtv
-        dbver=`pacman -Q mythtv-svn | awk  ' { print $2 } '`
-        if [ ! -e /data/database_backup ]
-        then
-                mkdir -p /data/database_backup
-        fi
-	chown mythtv:nobody /data/database_backup
-	chmod g+s  /data/database_backup
-        
-	mysqldump -u mythtv -pmythtv mythconverg -c > /data/database_backup/${dbver}.dump.sql
-
-
-}
-pre_upgrade () {
- pre_install
+	if [ ! -d /var/log/mythtv ]
+	then
+		mkdir -p /var/log/mythv
+		chown -R mythtv /var/log/mythtv
+		echo "---" > /var/log/mythtv/mythbackend.log
+		chown mythtv /var/log/mythtv/mythbackend.log
+
+	fi
 }
 
-# arg 1:  the new package version
-# arg 2:  the old package version
 post_upgrade() {
-  post_install
-
-  /bin/true
+	if [ ! -d /var/log/mythtv ]
+	then
+		mkdir -p /var/log/mythv
+		chown -R mythtv /var/log/mythtv
+	fi
 }
 
-# arg 1:  the old package version
-pre_remove() {
-  /bin/true
-}
 
 # arg 1:  the old package version
 post_remove() {
-/bint/true
+	/bin/true
+
 }
 
 op=$1
-- 
cgit v0.12

