> bcwhite>> Could someone please mail me a complete step-by-step instruction on > creating > bcwhite>> deb packages? The manual page is somewhat outdated... I actually > figured out > bcwhite>> how to do it simply using tar, gzip and ar (couldn't figure dpkg > out), > bcwhite>> but how do I make dpkg run some post-install shell script after > unpacking it? > bcwhite>> Thanks. > bcwhite> > bcwhite>The best way I found was to grab an existing package (hello is a good > one) > bcwhite>and learn how it does it. > > i tryed to trace it via ps but with not much luck > the only thing i got from it is a general idea (gzip :)
You don't want to trace it. If you read the "debian.rules" (or debian/rules) file, you'll see how a package is built. Basically, you create a directory ("debian-tmp") and create a directory structure just like that of the debian system and place your files in there. One call to "dpkg" will then create a package for you from that directory structure. Brian ( [EMAIL PROTECTED] ) ------------------------------------------------------------------------------- In theory, theory and practice are the same. In practice, they're not.