[oe-commits] Frans Meulenbroeks : mythplugins: added mythweb (not fully tested yet)

git version control git at git.openembedded.org
Tue Nov 10 12:39:22 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: df42e934d34da0e6b0e9e8c9e6e2bd85bd2c2a23
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=df42e934d34da0e6b0e9e8c9e6e2bd85bd2c2a23

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Tue Nov 10 11:06:11 2009 +0100

mythplugins: added mythweb (not fully tested yet)

---

 recipes/mythtv/mythplugins_0.21+0.22rc2.bb |   27 +++++++++++++++++++++++----
 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 82b61db..2b1f4d5 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* \





More information about the Openembedded-commits mailing list