From f2a8d326cbb1017a27ad5dc12f73704e85b8be99 Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Sun, 5 Apr 2009 16:59:03 -0700 Subject: Copied mythtv.install from core and updated. --- .../community/mythtv-vdpau/mythtv.install | 38 ++++++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/abs/extra-testing/community/mythtv-vdpau/mythtv.install b/abs/extra-testing/community/mythtv-vdpau/mythtv.install index 5f911e4..3bd6b56 100644 --- a/abs/extra-testing/community/mythtv-vdpau/mythtv.install +++ b/abs/extra-testing/community/mythtv-vdpau/mythtv.install @@ -1,19 +1,43 @@ # arg 1: the new package version post_install() { - echo echo - echo "As is with no guarantee, please do not file any bug reports against this package." -} + echo + echo "As is with no guarantee, please don't file any bu reports against this package." + 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 -post_upgrade(){ - echo + fi +} +post_upgrade() { echo - echo "As is with no guarantee, please do not file any bug reports against this package." + echo + echo "As is with no guarantee, please don't file any bu reports against this package." +} +pre_upgrade() { + cp /usr/share/mythtv/is.xml /tmp + cp /usr/share/mythtv/media_settings.xml /tmp +} +post_upgrade() { + cp /tmp/is.xml /usr/share/mythtv/ + cp /tmp/media_settings.xml /usr/share/mythtv/ + if [ ! -d /var/log/mythtv ] + then + mkdir -p /var/log/mythv + chown -R mythtv /var/log/mythtv + fi } + + # arg 1: the old package version post_remove() { - echo -e "NOTE: mysql database was not removed. To remove run:\nmysql -u root -e 'drop database mythconverg;'" + echo -e "NOTE: MySQL database was not removed. To remove run:\nmysql -u root -e 'drop database mythconverg;'" + /bin/true + } op=$1 -- cgit v0.12