summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-02-19 05:14:30 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-02-19 05:14:30 (GMT)
commitca44dd939e49fd8dbe1058f04e7d1d31826b0c15 (patch)
tree7865054f18d7f5006072fc4987970dba8ecf855d /abs/core-testing/mythtv
parente0fe3f974d42eeccc4f1d2d36eafd35d3502c0fa (diff)
downloadlinhes_pkgbuild-ca44dd939e49fd8dbe1058f04e7d1d31826b0c15.zip
linhes_pkgbuild-ca44dd939e49fd8dbe1058f04e7d1d31826b0c15.tar.gz
linhes_pkgbuild-ca44dd939e49fd8dbe1058f04e7d1d31826b0c15.tar.bz2
Create /var/log/mythtv on upgrades and install.
Diffstat (limited to 'abs/core-testing/mythtv')
-rw-r--r--abs/core-testing/mythtv/stable/mythtv/PKGBUILD2
-rw-r--r--abs/core-testing/mythtv/stable/mythtv/mythtv.install21
2 files changed, 20 insertions, 3 deletions
diff --git a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
index 1e5b87d..941452f 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=36
+pkgrel=39
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
diff --git a/abs/core-testing/mythtv/stable/mythtv/mythtv.install b/abs/core-testing/mythtv/stable/mythtv/mythtv.install
index c460f19..87507a5 100644
--- a/abs/core-testing/mythtv/stable/mythtv/mythtv.install
+++ b/abs/core-testing/mythtv/stable/mythtv/mythtv.install
@@ -1,11 +1,28 @@
# arg 1: the new package version
post_install() {
- echo "See \"MythTV\" on the Archlinux Wiki for installation information - Extensive!!"
+ 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() {
+ 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;'"
+ /bin/true
+
}
op=$1