Hello B0uncer
I was reading exactly this tuto when you send me the message. By reading I stopped on the "scripts" and "the final step" paragraph I really do not exactly understand.
http://linuxdevices.com/articles/AT8047723203.html
[HTML]
Scripts
Your package will also need a few scripts to be run by the system when installing and removing the package. (Remember, no matter how wonderful your program is, someone may wish to uninstall it later on down the road.)
The postinst script should contain any necessary steps to be done after installing your program. The prerm script should contain instructions on what should be done to remove the program. Both of these scripts are required (see Resources for more on this).
The final step
After all the prep work that goes into making a Debian package, the actual package creation is somewhat anticlimactic.
You'll use the dpkg command with the -b or --build option (-b and --build are the same). The syntax for creating a package is dpkg -b directory packagename.deb where directory contains the filesystem tree with all the requisite files for your program. Note, you can build the package without specifying the name of the new package, but then it will simply place the package file under directory as ".deb" -- which might lead you to believe that the package wasn't created at all.
So, for example, if your program has a configuration file that belongs in etc/, the program itself, which will live in usr/bin/, and some documentation that lives under usr/share/doc/package/, you'll recreate that filesystem tree in a directory that will be used to create your package.
[/HTML]
My question are :
1/ what is a scrypt? is it like shell code that I have to write?
2/ In the final step section : "you'll recreate that filesystem tree in a directory that will be used to create your package". -> not understand how a directory can contain directory information!
Thanks
Robux