diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/extra/community/mythtv-vdpau/mythtv.install | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/extra/community/mythtv-vdpau/mythtv.install')
-rw-r--r-- | abs/extra/community/mythtv-vdpau/mythtv.install | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/abs/extra/community/mythtv-vdpau/mythtv.install b/abs/extra/community/mythtv-vdpau/mythtv.install new file mode 100644 index 0000000..a063766 --- /dev/null +++ b/abs/extra/community/mythtv-vdpau/mythtv.install @@ -0,0 +1,61 @@ +# arg 1: the new package version +post_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 + 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() { + 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() { + 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 + 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() { + /bin/true + +} + +op=$1 +shift +$op $* |