Uninstall phase

Ryan Schmidt ryandesign at macports.org
Wed Nov 3 03:30:41 PDT 2010


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.



More information about the macports-dev mailing list