Apps :: More questions regarding compiling extensions



Hi guys,

I have tried to convert my extension from a .tar.gz to a uci but the user.tar.gz section does not seem to work.

Is there anyway I can look into the uci to see what is inside it and the structure?

Thanks Phil

I found the mistake I made.

Can I run a script automatically from the uci during installation to create my links in /opt/bin? If so what should the script be called and where do I put it?

Or do I have to include the link in the uci so it is automatically extracted to the correct directory.

Thanks Phil

You can't run a script during installation. Adding /opt/bin/mylink to user.tar.gz should be sufficient. A symlink is essentially only as large as the number of characters in its filename, so it won't affect the size of your package.
Thanks, that is exactly what I needed to know

cheers Phil

Guys, I can't work out the directory structure to I need to set up before I create the compressed uci filesystem

In /home/dsl/work/ I have

opt/gnuplot/bin ... lib etc (the main app and subdirectories)
opt/bin/gnuplot  (link to main executable)
opt/user.tar.gz (icon and menu command)

so in /home/dsl/opt/ I type

mkisofs -R -hide-rr-moved -cache-inodes -pad ./|create_compressed_fs - 65536 > ../gnuplot.uci

When loaded the icon appears on the desktop but the /opt directory structure is not right.

instead of /opt/gnuplot/bin etc I get /opt/gnuplot/gnuplot/bin

The other issue is that the user.tar.gz  appears in /opt/gnuplot/ and I am not sure this is supposed to.

Thanks again. Phil

Next Page...
original here.