diff options
author | James Meyer <james.meyer@operamail.com> | 2009-04-10 20:17:45 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-04-10 20:17:45 (GMT) |
commit | 34fd09ecfdc4c0b1f2742325646517064920c515 (patch) | |
tree | a85c97721ecc1e726feb48503ed8f3b0233dfddd /abs/core-testing/mythtv | |
parent | 9be4e421fa61c5afab2ec122641ddac3568da2b9 (diff) | |
download | linhes_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/core-testing/mythtv')
-rw-r--r-- | abs/core-testing/mythtv/stable/mythtv/PKGBUILD | 4 | ||||
-rw-r--r-- | abs/core-testing/mythtv/stable/mythtv/mythtv.install | 25 |
2 files changed, 23 insertions, 6 deletions
diff --git a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD index e7768c7..dc86f28 100644 --- a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD +++ b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD @@ -1,6 +1,6 @@ pkgname=mythtv pkgver=0.21 -pkgrel=55 +pkgrel=58 pkgdesc="A Homebrew PVR project" arch=('i686' 'x86_64') depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \ @@ -13,7 +13,7 @@ source=(ftp://ftp.knoppmyth.net/R6/sources/${pkgname}-${pkgver}-fixes.tar.bz2 \ # 'a0ecb7f476cb71c0c1ac90d349fc7695') license=('GPL2') -makedepends=(libgl subversion) +makedepends=(libgl subversion python perl) groups=('pvr') url="http://www.mythtv.org/" install=mythtv.install diff --git a/abs/core-testing/mythtv/stable/mythtv/mythtv.install b/abs/core-testing/mythtv/stable/mythtv/mythtv.install index e65898b..d43acf8 100644 --- a/abs/core-testing/mythtv/stable/mythtv/mythtv.install +++ b/abs/core-testing/mythtv/stable/mythtv/mythtv.install @@ -6,12 +6,27 @@ post_install() { chown -R mythtv /var/log/mythtv echo "---" > /var/log/mythtv/mythbackend.log chown mythtv /var/log/mythtv/mythbackend.log - fi + 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 } 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() { @@ -23,7 +38,9 @@ post_upgrade() { chown -R mythtv /var/log/mythtv fi } - +pre_remove () { + pre_upgrade +} # arg 1: the old package version post_remove() { |