From 2140c6b49336ddaa530c2930b1c2bfb8d3792a93 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 6 Apr 2016 20:06:24 +0000
Subject: mythtv, mythplugins, mythweb: update to latest fixes

run add_storage.py --reconstruct_sg to .install when updating from .27
---
 abs/core/mythtv/stable-0.28/git_src/git_hash      | 2 +-
 abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD  | 2 +-
 abs/core/mythtv/stable-0.28/mythtv/PKGBUILD       | 8 ++++----
 abs/core/mythtv/stable-0.28/mythtv/mythtv.install | 9 +++++++++
 abs/core/mythtv/stable-0.28/mythweb/PKGBUILD      | 2 +-
 5 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/abs/core/mythtv/stable-0.28/git_src/git_hash b/abs/core/mythtv/stable-0.28/git_src/git_hash
index abffafd..fbd518b 100644
--- a/abs/core/mythtv/stable-0.28/git_src/git_hash
+++ b/abs/core/mythtv/stable-0.28/git_src/git_hash
@@ -1 +1 @@
-0e01f7278e9c571936fa8518b950623a0eb31438
+7c6bfc081609c545e3b7c923f0db4f708a7c1649
diff --git a/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD b/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD
index 36fb62d..5ecf00b 100644
--- a/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD
+++ b/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD
@@ -9,7 +9,7 @@ pkgname=('mytharchive'
          'mythweather'
          'mythzoneminder')
 pkgver=0.28
-pkgrel=1
+pkgrel=5
 arch=('i686' 'x86_64')
 url="http://www.mythtv.org"
 license=('GPL')
diff --git a/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD b/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD
index e0afc58..bdfedf9 100644
--- a/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD
+++ b/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=mythtv
 pkgver=0.28
-pkgrel=2
+pkgrel=5
 commit_hash=`cat ../git_src/git_hash`
 pkgdesc="A Homebrew PVR project $commit_hash"
 arch=('i686' 'x86_64')
@@ -8,8 +8,9 @@ url="http://www.mythtv.org/"
 license=('GPL')
 depends=('avahi' 'faad2' 'fftw' 'glew' 'exiv2' 'lame' 'libass' 'libavc1394' 'libcdio'
          'libcec' 'libcrystalhd-git' 'libiec61883' 'libva' 'libvdpau' 'libvpx'
-         'libxinerama' 'libxrandr' 'libxml2' 'LinHES-config>=8.1-6' 'lirc-utils'
-         'mysql-clients' 'mysql-python' 'openssl' 'perl-date-manip' 'perl-dbd-mysql'
+         'libxinerama' 'libxrandr' 'libxml2' 'LinHES-config>=8.1-6'
+         'LinHES-system>=8.4-3' 'lirc-utils' 'mysql-clients' 'mysql-python'
+         'openssl' 'perl-date-manip' 'perl-dbd-mysql'
          'perl-io-socket-inet6' 'perl-libwww' 'perl-math-round'
          'perl-net-upnp' 'perl-soap-lite' 'perl-xml-sax' 'python2-pycurl'
          'python2-lxml' 'qt5-script' 'qt5-webkit' 'sdl' 'taglib' 'urlgrabber' 'wget'
@@ -57,7 +58,6 @@ build() {
                 --disable-altivec \
                 --disable-audio-jack \
                 --disable-audio-pulseoutput \
-                --disable-ccache \
                 --disable-distcc \
                 --disable-mythlogserver \
                 --dvb-path=/usr/include \
diff --git a/abs/core/mythtv/stable-0.28/mythtv/mythtv.install b/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
index 4ca5ebc..aedebbf 100644
--- a/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
+++ b/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
@@ -6,6 +6,15 @@ post_install() {
 }
 
 pre_upgrade() {
+        if [ "`vercmp $2 0.28`" -lt 0 ]
+        then
+            . /etc/systemconfig
+            if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ]
+            then
+                echo "upgrading from 0.27, adding new storage groups..."
+                add_storage.py --reconstruct_sg
+            fi
+        fi
         /bin/true
 }
 
diff --git a/abs/core/mythtv/stable-0.28/mythweb/PKGBUILD b/abs/core/mythtv/stable-0.28/mythweb/PKGBUILD
index 33b2837..9b26bc6 100644
--- a/abs/core/mythtv/stable-0.28/mythweb/PKGBUILD
+++ b/abs/core/mythtv/stable-0.28/mythweb/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=mythweb
 pkgver=0.28
-pkgrel=1
+pkgrel=2
 commit_hash=`cat ../git_src/git_hash_web`
 pkgdesc="Web interface for MythTV's backend, $commit_hash"
 arch=('i686' 'x86_64')
-- 
cgit v0.12

