update base pkgs..
[vuplus_openvuplus] / meta-openvuplus / recipes-base / tuxcom / tuxbox-tuxcom-32bpp / add_e2_plugin.diff
diff --git a/meta-openvuplus/recipes-base/tuxcom/tuxbox-tuxcom-32bpp/add_e2_plugin.diff b/meta-openvuplus/recipes-base/tuxcom/tuxbox-tuxcom-32bpp/add_e2_plugin.diff
new file mode 100644 (file)
index 0000000..d01e7a8
--- /dev/null
@@ -0,0 +1,48 @@
+diff -Naur tuxcom_cvs/python/Makefile.am tuxcom/python/Makefile.am
+--- tuxcom_cvs/python/Makefile.am      1970-01-01 01:00:00.000000000 +0100
++++ tuxcom/python/Makefile.am  2008-11-03 13:56:54.425916639 +0100
+@@ -0,0 +1,5 @@
++installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/Tuxcom
++
++install_DATA = \
++      plugin.py \
++      __init__.py
+diff -Naur tuxcom_cvs/python/plugin.py tuxcom/python/plugin.py
+--- tuxcom_cvs/python/plugin.py        1970-01-01 01:00:00.000000000 +0100
++++ tuxcom/python/plugin.py    2008-11-03 14:22:15.705918505 +0100
+@@ -0,0 +1,35 @@
++from enigma import *
++from Screens.Screen import Screen
++from Plugins.Plugin import PluginDescriptor
++
++class TuxComStarter(Screen):
++      skin = """
++              <screen position="1,1" size="1,1" title="TuxCom" >
++                </screen>"""
++
++        def __init__(self, session, args = None):
++              self.skin = TuxComStarter.skin
++              Screen.__init__(self, session)
++              self.container=eConsoleAppContainer()
++              self.container.appClosed.append(self.finished)
++              self.runapp()
++              
++      def runapp(self):
++              eDBoxLCD.getInstance().lock()
++              eRCInput.getInstance().lock()
++              fbClass.getInstance().lock()
++              if self.container.execute("/usr/bin/tuxcom"):
++                      self.finished(-1)
++
++      def finished(self,retval):
++              fbClass.getInstance().unlock()
++              eRCInput.getInstance().unlock()
++              eDBoxLCD.getInstance().unlock()
++              self.close()
++
++def main(session, **kwargs):
++      session.open(TuxComStarter)
++
++def Plugins(**kwargs):
++      return PluginDescriptor(name="TuxCom", description="TuxBox Commander", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
++