How To: Packing/Porting Plugins for UR Enigma.

ToneDeff

Inactive User
Joined
Jul 30, 2009
Messages
996
Reaction score
41
Location
127.0.0.1
CSB asked about methods for creating manual installers for plugins.

here's what i've discovered so far through trial and error :p

=========

"Packing a manual installer for plugin that uses .so/.cfg files."

as long as UR image contains the right files needed for the plugin to run it's very easy. "certain missing lib's can be added to /var/lib/ if you can find them", amanual installer is just a .tar.gz archive with the right dir structure to place files in UR image. it also keeps "chmod" settings from the linux system it was compressed on.

e.g
>/var/tuxbox/plugins/plugin.so
>/var/tuxbox/plugins/plugin.cfg

to pack these files into a manual installer, ftp into UR then create these dir's

/var/pack/var/tuxbox/plugins/

copy the .so/.cfg file into the new /plugins/ dir.

>/var/pack/tuxbox/plugins/plugin.so
>/var/pack/tuxbox/plugins/plugin.cfg

chmod 755 the .so if not set.

now telnet into UR and do

cd /var/pack/
tar -pczf plugin.tar.gz *

that has now created the installer with all files from /var/pack/ in..

>/var/pack/plugin.tar.gz

if the plugin uses different dir structure/layout just move/create whats need in /var/pack/ that is used as top level dir in installer.

=========

creating plugin from script/.sh file, just discovered this method from looking into question in other thread. seems you can make a script into a listed plugin, example i'll use is one i just created.

get script wanted as plugin, im using an ecm display script
Code:
You don't have permission to view the code content. Log in or register now.

save as .sh ECM.Info-UR.sh

then create .cfg of matching naming ECM.Info-UR.cfg

selecting plugin starts script of same name.

Code:
You don't have permission to view the code content. Log in or register now.

then make sure "type=3" this seems to allow scripts to be run, so far only been tested with ECM script.

put them both into
>/var/tuxbox/plugins/

and chmod 755 the .sh

and pack it into manual installer the same way as .so/.cfg plugins.

=========

probably otherways of doing all this but thought i might aswell post what i've found so far in one place, and possibly start some discussion/creation of more plugin installers ;P
 
Last edited:

belmando

Inactive User
Joined
Mar 27, 2010
Messages
390
Reaction score
1
hi tonedef m8

Thanks for sharing your efforts,but most plugins i found are in mipsel.ipk and those have to be put in usr/lib/enifma2/python/plugins/extension ?Some unpacked plugins went ok to put there ie dd subtitles.But since we have those in latest image it does not needed any more ,but i would like to have file browser plugin as tar.gz .did you try it?And does webinterface can be installed again?
Btw there is ecm.info allready in pli/ppanels.yellow button /ppanels then you get ecm info there.Or i use blackbox skin and it shows ecm.info in infobar


regards
 
Last edited:
TEST
Top