diff options
author | James Meyer <james.meyer@operamail.com> | 2009-02-19 05:14:30 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-02-19 05:14:30 (GMT) |
commit | ca44dd939e49fd8dbe1058f04e7d1d31826b0c15 (patch) | |
tree | 7865054f18d7f5006072fc4987970dba8ecf855d | |
parent | e0fe3f974d42eeccc4f1d2d36eafd35d3502c0fa (diff) | |
download | linhes_pkgbuild-ca44dd939e49fd8dbe1058f04e7d1d31826b0c15.zip linhes_pkgbuild-ca44dd939e49fd8dbe1058f04e7d1d31826b0c15.tar.gz linhes_pkgbuild-ca44dd939e49fd8dbe1058f04e7d1d31826b0c15.tar.bz2 |
Create /var/log/mythtv on upgrades and install.
-rwxr-xr-x | abs/core-testing/LinHES-config/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core-testing/LinHES-config/install_proxy.sh | 5 | ||||
-rw-r--r-- | abs/core-testing/mythtv/stable/mythtv/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/core-testing/mythtv/stable/mythtv/mythtv.install | 21 |
4 files changed, 25 insertions, 5 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD index ec0c0069..cbcdf8d 100755 --- a/abs/core-testing/LinHES-config/PKGBUILD +++ b/abs/core-testing/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config pkgver=1.0 -pkgrel=267 +pkgrel=268 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev ) pkgdesc="Install and configure your system" depends=(bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan ) diff --git a/abs/core-testing/LinHES-config/install_proxy.sh b/abs/core-testing/LinHES-config/install_proxy.sh index 75ca6f0..3f626a1 100755 --- a/abs/core-testing/LinHES-config/install_proxy.sh +++ b/abs/core-testing/LinHES-config/install_proxy.sh @@ -216,6 +216,8 @@ full_install () { chmod -R 775 ${mountpoint}$SE chmod 775 "$mountpoint"/etc/systemconfig + mkdir -p "$mountpoint"/var/log/mythtv + chown mythtv "$mountpoint"/var/log/mythtv #copy over any updates that might have occured #cp -rp $MV_ROOT/bin/*.sh "$mountpoint"$MV_ROOT/bin/ cp_and_log "$MV_ROOT/bin/*.sh" "$mountpoint"$MV_ROOT/bin/ @@ -329,7 +331,8 @@ function upgrade () { cp_and_log /new_boot/etc.old/shadow /new_boot/etc/ cp_and_log /new_boot/etc.old/group /new_boot/etc/ fi - + mkdir -p "$mountpoint"/var/log/mythtv + chown mythtv "$mountpoint"/var/log/mythtv if [ x$rootfs = "xDo_not_format" ] then rootfs=`grep \/\ /tmp/etc/fstab |awk ' { print $3 } '` 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 |