On Apr 16, 2006, at 2:14 PM, Martin Costabel wrote:
Koen van der Drift wrote:
[]
What about the lines that install stuff in the $HOME directory,
can I leave those in the info file? The program won't execute when
these files are missing, but since they are installed outside /sw,
I am not sure what to do here.
mkdir $HOME/.t_coffee
mkdir $HOME/.t_coffee/cache
mkdir $HOME/.t_coffee/methods
mkdir $HOME/.t_coffee/tmp
I have no opinion on this either way. There are many packages that
install stuff in ~/.* directories, without showing them in their
file lists. In any case, if you do this in the CompileScript
instead of the PostInstScript, these files won't exist in the *.deb
and will therefpre not be installed when the package is not built
from source but just installed from the *.deb. Another problem is
that these directories are often owned by root which can give
problems when the program is run as non-root afterwards.
There are other packages that put the stuff meant for $HOME into /
sw/share/doc/%n and tell the user via DescUsage how to put the
files into $HOME themselves.
Since part of the installation process is a test for the package,
these folders need to be created before the InstallScript is
executed, so I thought about putting them in PreInstScript. However,
you are correct about the ownership, it is root, not the username,
and the test cannot be run Is there a way to set the ownership of
these folders to the user, without knowing in advance what the user
name is?
If this is not doable, I will use your second suggestion, and remove
the test from the installation script.
cheers,
- Koen.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel