summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-04-05 23:59:03 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-04-05 23:59:03 (GMT)
commitf2a8d326cbb1017a27ad5dc12f73704e85b8be99 (patch)
treead059d4b3722f312d9a536827f39f217d7d73bc1
parent80a660389d4aa16525b8a57cdf15c9397fbfed41 (diff)
downloadlinhes_pkgbuild-f2a8d326cbb1017a27ad5dc12f73704e85b8be99.zip
linhes_pkgbuild-f2a8d326cbb1017a27ad5dc12f73704e85b8be99.tar.gz
linhes_pkgbuild-f2a8d326cbb1017a27ad5dc12f73704e85b8be99.tar.bz2
Copied mythtv.install from core and updated.
-rw-r--r--abs/extra-testing/community/mythtv-vdpau/mythtv.install38
1 files 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