Uninstall phase

Norman Heino norman.heino at googlemail.com
Wed Nov 3 06:30:38 PDT 2010


On 03.11.2010, at 11:30, Ryan Schmidt wrote:

> 
> On Nov 3, 2010, at 03:42, Norman Heino wrote:
> 
>> in my Portfile I copy a few files and create symlinks in the destroot phase (using "file mkdir", "file copy" etc.). When uninstalling that port those files are not deleted automatically. Is there an uninstall phase where such things can be done?
> 
> You must mkdir, copy, etc. into directories whose paths begin with ${destroot} (generally ${destroot}${prefix}), so that they get registered to the port and uninstalled during the uninstall phase.

What about files outside ${destroot}? I create a (symlinked) launchd item in /Library/LaunchDaemons since I need WorkingDirectory to be set for my port.



More information about the macports-dev mailing list