summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.25/mythweb/mythweb.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-02 22:20:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-02 22:20:15 (GMT)
commit7a0af293fd1a81fb643acbb954d319786035e44e (patch)
tree21d4e03a6268bbaee8a3e803f3841bd58c720e26 /abs/core/mythtv/stable-0.25/mythweb/mythweb.install
parente851f51157ac00aa3de03f4bb9743c6a7d91bea8 (diff)
downloadlinhes_pkgbuild-7a0af293fd1a81fb643acbb954d319786035e44e.zip
linhes_pkgbuild-7a0af293fd1a81fb643acbb954d319786035e44e.tar.gz
linhes_pkgbuild-7a0af293fd1a81fb643acbb954d319786035e44e.tar.bz2
mythtv: applied mythweb and php bindings patch to allow mythweb to work with php 5.4
refs #861 closes #861
Diffstat (limited to 'abs/core/mythtv/stable-0.25/mythweb/mythweb.install')
-rw-r--r--abs/core/mythtv/stable-0.25/mythweb/mythweb.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.25/mythweb/mythweb.install b/abs/core/mythtv/stable-0.25/mythweb/mythweb.install
new file mode 100644
index 0000000..f5abcea
--- /dev/null
+++ b/abs/core/mythtv/stable-0.25/mythweb/mythweb.install
@@ -0,0 +1,32 @@
+post_install() {
+ COUNT=`grep -c "mythweb.include" /etc/lighttpd/conf.include`
+ if [ $COUNT == 0 ]
+ then
+ echo "==> Adding mythweb.include to conf.include"
+ echo "include \"/etc/lighttpd/mythweb.include\"" >> /etc/lighttpd/conf.include
+ fi
+ echo
+ echo "==> Forcing a re-read of lighttpd's configuration file."
+ echo ""
+ /sbin/sv hup /service/lighttpd
+}
+post_upgrade() {
+ post_install
+
+}
+
+post_remove() {
+ COUNT=`grep -c "mythweb.include" /etc/lighttpd/conf.include`
+ if [ $COUNT -gt 0 ]
+ then
+ echo "==> Removing mythweb.include from conf.include"
+ sed -i 's#include \"/etc/lighttpd/mythweb.include\"##' -i /etc/lighttpd/conf.include
+ fi
+
+ echo
+ echo "==> Forcing a re-read of lighttpd's configuration file."
+ echo ""
+ /sbin/sv hup /service/lighttpd
+#--
+
+}