From a4b2456f99852ed9286dcd65dfa7975f8c35c428 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 30 Dec 2022 11:48:37 -0500
Subject: mythplugins: update and move mythweb to /data/srv/httpd

---
 linhes/mythplugins/PKGBUILD    | 17 ++++++-----------
 linhes/mythplugins/__changelog |  1 +
 2 files changed, 7 insertions(+), 11 deletions(-)
 create mode 100644 linhes/mythplugins/__changelog

diff --git a/linhes/mythplugins/PKGBUILD b/linhes/mythplugins/PKGBUILD
index 16a196d..559281a 100644
--- a/linhes/mythplugins/PKGBUILD
+++ b/linhes/mythplugins/PKGBUILD
@@ -15,7 +15,7 @@ pkgname=('mythplugins-mytharchive'
          'mythplugins-mythzoneminder')
 br=fixes/32
 t="${br#*/}+${br%/[0-9][0-9]}"
-pkgver=32+fixes.20221129.44f88ed4
+pkgver=32+fixes.20221229.e74f587d
 pkgrel=1
 epoch=0
 arch=('any')
@@ -118,19 +118,14 @@ package_mythplugins-mythweather() {
 
 package_mythplugins-mythweb() {
   pkgdesc="Web interface for the MythTV scheduler"
-  depends=('mythtv' 'perl-cgi')
-  optdepends=('lighttpd'
-              'php7-apache'
-              'php7-fpm'
-              'nginx')
+  depends=('mythtv' 'perl-cgi' 'lighttpd')
 
   sed -i 's/unix.*-fpm\.sock;/unix:\/var\/run\/php-fpm7\/php-fpm\.sock;/' "$srcdir/mythweb/mythweb.conf.nginx"
 
-  mkdir -p "$pkgdir/var/lib/mythtv/mythweb"/{image_cache,php_sessions}
-  cp -R "$srcdir/mythweb"/* "$pkgdir/var/lib/mythtv/mythweb"
-  chown -R http:http "$pkgdir/var/lib/mythtv/mythweb"
-  chmod g+rw "$pkgdir/var/lib/mythtv/mythweb"/{image_cache,php_sessions}
-  
+  mkdir -p "$pkgdir/data/srv/httpd/mythweb"/{image_cache,php_sessions}
+  cp -R "$srcdir/mythweb"/* "$pkgdir/data/srv/httpd/mythweb"
+  chown -R http:http "$pkgdir/data/srv/httpd/mythweb"
+  chmod g+rw "$pkgdir/data/srv/httpd/mythweb"/{image_cache,php_sessions}
 }
 
 package_mythplugins-mythzoneminder() {
diff --git a/linhes/mythplugins/__changelog b/linhes/mythplugins/__changelog
new file mode 100644
index 0000000..18996b5
--- /dev/null
+++ b/linhes/mythplugins/__changelog
@@ -0,0 +1 @@
+PKGBUILD: change mythweb install path to /data/srv/httpd
-- 
cgit v0.12

