summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/mythtv-vdpau/mythtv.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-04-10 20:17:45 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-04-10 20:17:45 (GMT)
commit34fd09ecfdc4c0b1f2742325646517064920c515 (patch)
treea85c97721ecc1e726feb48503ed8f3b0233dfddd /abs/extra-testing/community/mythtv-vdpau/mythtv.install
parent9be4e421fa61c5afab2ec122641ddac3568da2b9 (diff)
downloadlinhes_pkgbuild-34fd09ecfdc4c0b1f2742325646517064920c515.zip
linhes_pkgbuild-34fd09ecfdc4c0b1f2742325646517064920c515.tar.gz
linhes_pkgbuild-34fd09ecfdc4c0b1f2742325646517064920c515.tar.bz2
mythtv .21: fix is.xml and media settings being wiped when switching between myth packages.
Not a huge fan of this, but it works. close FS#245
Diffstat (limited to 'abs/extra-testing/community/mythtv-vdpau/mythtv.install')
-rw-r--r--abs/extra-testing/community/mythtv-vdpau/mythtv.install42
1 files changed, 29 insertions, 13 deletions
diff --git a/abs/extra-testing/community/mythtv-vdpau/mythtv.install b/abs/extra-testing/community/mythtv-vdpau/mythtv.install
index 3bd6b56..a063766 100644
--- a/abs/extra-testing/community/mythtv-vdpau/mythtv.install
+++ b/abs/extra-testing/community/mythtv-vdpau/mythtv.install
@@ -1,25 +1,36 @@
# arg 1: the new package version
post_install() {
- echo
- 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
-
fi
-}
-post_upgrade() {
- echo
- echo
- echo "As is with no guarantee, please don't file any bu reports against this package."
+ if [ -e /tmp/is.xml ]
+ then
+ cp /tmp/is.xml /usr/share/mythtv/is.xml
+ fi
+
+ if [ -e /tmp/media_settings.xml ]
+ then
+ cp /tmp/media_settings.xml /usr/share/mythtv/media_settings.xml
+ fi
+
+ echo
+ 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
+ if [ -e /usr/share/mythtv/is.xml ]
+ then
+ cp /usr/share/mythtv/is.xml /tmp
+ fi
+
+ if [ -e /usr/share/mythtv/media_settings.xml ]
+ then
+ cp /usr/share/mythtv/media_settings.xml /tmp
+ fi
}
post_upgrade() {
@@ -30,12 +41,17 @@ post_upgrade() {
mkdir -p /var/log/mythv
chown -R mythtv /var/log/mythtv
fi
-}
+ echo
+ echo
+ echo "As is with no guarantee, please don't file any bu reports against this package."
+}
+pre_remove () {
+ pre_upgrade
+}
# 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;'"
/bin/true
}