Small faq for DS Team images - Building Addons
At first of all you must create folder called - addon
Then put files which you want include in addon to this folder.
Create xml file called - install.xml ( it must be named install.xml ! )
example install.xml for
plugin
Code:
<?xml version="1.0" encoding="iso-8859-1" ?>
<install>
<addon type="plugin" />
<cpfile permission="755" from="/tmp/addon/pip.so" to="/var/tuxbox/plugins/" />
<cpfile permission="644" from="/tmp/addon/pip.cfg" to="/var/tuxbox/plugins/" />
<cpfile permission="644" from="/tmp/addon/pip.conf" to="/var/tuxbox/config/" />
<dir permission="755" make="/var/uninstall/pip/" />
<cpfile permission="644" from="/tmp/addon/install.xml" to="/var/uninstall/pip/" />
</install>
<addon type="plugin" /> - this type of addon (possiable: plugin, locale, emu )
<cpfile permission="755" from="/tmp/addon/pip.so" to="/var/tuxbox/plugins/" />
cpfile permission="755" - permission copied file
from="/tmp/addon/pip.so" -from where it must be copied ( always is /tmp/addon/ )
to="/var/tuxbox/plugins/" - location where file must be copy
<dir permission="755" make="/var/uninstall/pip/" /> - create folder to uninstalling addon ( must be always that !! )
<cpfile permission="644" from="/tmp/addon/install.xml" to="/var/uninstall/pip/" /> - copy install.xml to created folder befor for uninstall.
locale
Code:
<?xml version="1.0" encoding="iso-8859-1" ?>
<install>
<addon type="locale" language="French fr_FR" />
<dir permission="755" make="/var/share/locale/fr/" />
<cpfile permission="644" from="/tmp/addon/tuxbox-enigma.mo" to="/var/share/locale/fr/"/>
<dir permission="755" make="/var/uninstall/localefr/" />
<cpfile permission="644" from="/tmp/addon/install.xml" to="/var/uninstall/localefr/" />
</install>
<addon type="locale" language="French fr_FR" /> - language the name of lines which must be written to locale.alias
emu
When we're doing emu addon we must also create file called - emulist.xml and put it also to /addon
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<emulist>
<emu emulator="Camd3 v830" osdname="CAMD3" emuscript="" daemon="camd3"/>
</emulist>
Code:
<?xml version="1.0" encoding="iso-8859-1" ?>
<install>
<addon type="emu" />
<cpfile permission="755" from="/tmp/addon/camd3" to="/var/bin/" />
<cpfile permission="755" from="/tmp/addon/pcamd" to="/var/bin/" />
<cpfile permission="644" from="/tmp/addon/camd3.config" to="/var/****/" />
<cpfile permission="644" from="/tmp/addon/camd3.servers" to="/var/****/" />
<cpfile permission="644" from="/tmp/addon/camd3.users" to="/var/****/" />
<cpfile permission="644" from="/tmp/addon/camd3.****" to="/var/****/" />
<cpfile permission="644" from="/tmp/addon/destination" to="/var/****/" />
<dir permission="755" make="/var/uninstall/camd3830/" />
<cpfile permission="644" from="/var/tmp/addon/emulist.xml" to="/var/uninstall/camd3830/" />
<cpfile permission="644" from="/tmp/addon/install.xml" to="/var/uninstall/camd3830/" />
</install>
<cpfile permission="644" from="/tmp/addon/emulist.xml" to="/var/uninstall/camd3830/" /> - in emu type addons we also must copy emulist.tmp to uninstall folder.
After create install.xml and put all files into /addon folder just pack *.tar.gz
To build GAME, SKIN addons we must use type="plugin" and do everythink like in this faq...
Now,I think everythink will be easier...
Regards..