CSB asked about methods for creating manual installers for plugins.
here's what i've discovered so far through trial and error
=========
"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
save as .sh ECM.Info-UR.sh
then create .cfg of matching naming ECM.Info-UR.cfg
selecting plugin starts script of same name.
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
here's what i've discovered so far through trial and error
=========
"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: