Re: tazwok $src directory

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


if I am not wrong these variables are present in /etc/tazwok.conf
They're pretty intuitive, so u'll be able to figure it out. I dont have access to my VM, so I'm not able to tell you for sure.

regards
Sandeep


On Mon, Feb 16, 2009 at 7:18 PM, rcx <rcx@xxxxxxxxxxxxxxxx> wrote:
Hello,
 
When tazwok extracts a source archive, it extracts to the root of the package folder (e.g. /home/slitaz/wok/<package> ).  The $src variable then assumes that those source archives have a root folder of $SOURCE-$VERSION.
 
Am I missing a property that can be used to change these default source directories?  For example, some source archives don't package everything inside a root folder, so when tazwok unpackages such source archives, everything gets dumped under the wok package folder (alongside the "receipt" file, "stuff" folder, etc.), making it a mess to cleanup.  Meanwhile, $src thinks it is a directory that really doesn't exist (e.g.. /home/slitaz/wok/<package>/$SOURCE-$VERSION).
 
If there isn't a configurable property, would it be possible (without breaking too many things) to have tazwok extract the source archive to a "src" folder inside the tazwok package directory?  For example, this directory structure might look like the following:
/home/slitaz/wok/<package>/
 - src/
 - stuff/
 - receipt
 
Then, when the $src value is assigned, tazwok could check if /home/slitaz/wok/<package>/src/$SOURCE-$VERSION/ exists.  If is does exist, $src could be assigned the path where the last directory is $SOURCE-$VERSION (as it currently does); otherwise, $src could simply be assigned the value /home/slitaz/wok/<package>/src.  Optionally, if the root of the source archive only contains a single folder, $src could be assigned that folder path even if the directory name is not $SOURCE-$VERSION.
 
Does this make sense, or is there some mechanism already in place that I have missed?
 
 
Thank you,
Matthew
 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/