summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-30/mythweb/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-01-30 15:48:09 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-01-30 15:48:09 (GMT)
commitfb52b64b5af9edfe83c361916a51c28d802b1d36 (patch)
tree7f6d8c693a47eb3ab348e45785c61a9199ee277e /abs/core/mythtv/stable-30/mythweb/PKGBUILD
parent9b6c8730fe90c05fa38880963f4fea2ac7ab7391 (diff)
downloadlinhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.zip
linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.tar.gz
linhes_pkgbuild-fb52b64b5af9edfe83c361916a51c28d802b1d36.tar.bz2
mythtv mythplugins mythweb: add fixes/30 branch. refs#1034
Diffstat (limited to 'abs/core/mythtv/stable-30/mythweb/PKGBUILD')
-rw-r--r--abs/core/mythtv/stable-30/mythweb/PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-30/mythweb/PKGBUILD b/abs/core/mythtv/stable-30/mythweb/PKGBUILD
new file mode 100644
index 0000000..17e8c04
--- /dev/null
+++ b/abs/core/mythtv/stable-30/mythweb/PKGBUILD
@@ -0,0 +1,60 @@
+pkgname=mythweb
+pkgver=30.0
+pkgrel=1
+commit_hash=`cat ../git_src/git_hash_web`
+pkgdesc="Web interface for MythTV's backend, $commit_hash"
+arch=('x86_64')
+url="http://www.mythtv.org"
+license=('GPL')
+depends=('lighttpd' "mythtv>=${pkgver}" 'php' 'supplemental-web')
+groups=('mythtv-extras')
+install=mythweb.install
+
+patches=('video.css.patch'
+ 'Channel.php_remove_small_icons.patch')
+source=(`echo ${patches[@]:0}`
+ 'mythweb.include'
+ 'mythweb_gen_light.conf')
+
+build() {
+ if [ -e ${srcdir}/mythweb ]
+ then
+ msg "Removing old mythweb src"
+ rm -rf ${srcdir}/mythweb
+ fi
+
+ cd ${startdir}
+ msg "Copying in mythweb git_src"
+ cp -rp ../git_src/mythweb $srcdir
+ cd ${srcdir}/$pkgname
+
+ msg "--------------------------applying patches------------------------------"
+ for i in `echo ${patches[@]:0} `
+ do
+ echo applying $i
+ echo "-----------------------------"
+ patch -Np0 -i ${srcdir}/$i || return 1
+ done
+ msg "--------------------------done applying patches-------------------------"
+
+ [ "$CARCH" = "x86_64" ] && ARCH="x86-64"
+}
+
+package() {
+ DOCROOT=/data/srv/httpd/mythweb
+ mkdir -p $pkgdir/$DOCROOT/{image_cache,php_sessions,data}
+ rsync -arp --exclude .git* --delete-excluded $srcdir/mythweb/* $pkgdir/$DOCROOT
+ rm $pkgdir/$DOCROOT/README
+ chown -R http:http $pkgdir/$DOCROOT
+ chmod -R 775 $pkgdir/$DOCROOT/{image_cache,php_sessions,data}
+
+ #install conf files for lighttpd
+ mkdir -p $pkgdir/etc/lighttpd
+ install -D -m 644 $srcdir/mythweb.include $pkgdir/etc/lighttpd/
+ #gen_light_conf
+ install -D -m0744 ${srcdir}/mythweb_gen_light.conf ${pkgdir}/etc/gen_light_conf.d/mythweb.conf
+}
+md5sums=('668a36e404c8254f56e7a7304e655332'
+ '333d145899a1b48a7648d933344ee9ed'
+ '7645a6399434cbba35639713ac5d88e0'
+ 'df190116b3aba35720fb6631885f973f')