stupid_idiot
Group: Members
Posts: 344
Joined: Oct. 2006 |
|
Posted: Aug. 21 2007,14:29 |
|
An example file '/usr/bla/bla' doesn't have to be in the root directory '/usr'. You can put a work directory 'usr' anywhere. When creating the .dsl:
Code Sample | tar zcvf blabla.dsl --numeric-owner --no-recursion usr/bla/bla usr/bla/blablabla |
This is okay. Even when '/usr' is used, the '/' is removed by tar. Putting files elsewhere than '/usr' means you can do testing and then remove the 'usr' directory. Let's say you just finished compiling a software package with './configure' and 'make', and you want to install the files not to '/usr' but to '/mnt/hdax/usr'. You can do this very easily:
Code Sample | DESTDIR=/mnt/hdax make install |
This will let '/mnt/hdax' be the root directory. So all the files for '/usr' will be installed in '/mnt/hdax/usr'.
|