summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-11-10 11:06:11 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-11-10 11:06:11 +0100
commitdf42e934d34da0e6b0e9e8c9e6e2bd85bd2c2a23 (patch)
tree7b58dd29f1465f9ce5a6d13923358f7f53465d3a
parenta7531d1ef4d226f9ffdf86805429fe4c85bc49df (diff)
mythplugins: added mythweb (not fully tested yet)
-rw-r--r--recipes/mythtv/mythplugins_0.21+0.22rc2.bb27
1 files changed, 23 insertions, 4 deletions
diff --git a/recipes/mythtv/mythplugins_0.21+0.22rc2.bb b/recipes/mythtv/mythplugins_0.21+0.22rc2.bb
index 82b61db469..2b1f4d5714 100644
--- a/recipes/mythtv/mythplugins_0.21+0.22rc2.bb
+++ b/recipes/mythtv/mythplugins_0.21+0.22rc2.bb
@@ -1,9 +1,8 @@
-# todo: add mythweb
DEPENDS = "flac taglib mythtv libvorbis libexif libvisual libsdl-x11 libcdaudio cdparanoia"
-RDEPENDS_${PN} = "mytharchive mythbrowser mythflix mythgallery \
- mythgame mythmusic mythmovies mythnews mythvideo mythweather mythzoneminder"
+RDEPENDS_${PN} = "mytharchive mythbrowser mythflix mythgallery mythgame \
+ mythmusic mythmovies mythnews mythvideo mythweather mythweb mythzoneminder"
PV = "0.21+0.22rc2"
-PR = "r4"
+PR = "r5"
QMAKE_PROFILES = "mythplugins.pro"
@@ -36,8 +35,24 @@ do_configure() {
}
do_install () {
oe_runmake install INSTALL_ROOT="${D}"
+ install -d ${D}${datadir}/apache2
+ install -d ${D}${datadir}/apache2/htdocs
+ install -d ${D}/etc/apache2
+ install -d ${D}/etc/apache2/extra
+ cp -r ${S}/mythweb/* ${D}${datadir}/apache2/htdocs/
+ cp -r ${S}/mythweb/mythweb.conf.apache ${D}/etc/apache2/extra/mythweb.conf
+ sed -i -e s:/var/www/html:/usr/share/apache2/htdocs:g ${D}/etc/apache2/extra/mythweb.conf
}
+pkg_postinst_${PN}() {
+ chgrp -R apache /usr/share/apache2/htdocs/data
+ chmod g+rw /usr/share/apache2/htdocs/data
+ grep mythweb.conf /etc/apache2/httpd.conf || \
+ echo "Include /etc/apache2/extra/mythweb.conf" >>/etc/apache2/httpd.conf
+
+}
+
+
PACKAGES =+ "mytharchive mytharchive-dbg \
mythbrowser mythbrowser-dbg \
mythflix mythflix-dbg \
@@ -48,6 +63,7 @@ PACKAGES =+ "mytharchive mytharchive-dbg \
mythnews mythnews-dbg \
mythvideo mythvideo-dbg \
mythweather mythweather-dbg \
+ mythweb \
mythzoneminder mythzoneminder-dbg"
FILES_mytharchive = "${libdir}/mythtv/plugins/libmytharchive.so \
@@ -258,6 +274,9 @@ FILES_mythweather = "${libdir}/mythtv/plugins/libmythweather.so \
"
FILES_mythweather-dbg = "${libdir}/mythtv/plugins/.debug/libmythweather.so"
+FILES_mythweb = "${datadir}/apache2/htdocs \
+ /etc/apache2/extra/mythweb.conf"
+
FILES_mythzoneminder = "${libdir}/mythtv/plugins/libmythzoneminder.so \
${datadir}/mythtv/zonemindermenu.xml \
${datadir}/mythtv/i18n/mythzoneminder* \