Cleaning up during uninstall and submitting Portfile

Ryan Schmidt ryandesign at macports.org
Thu Apr 2 03:11:14 PDT 2009


On Apr 2, 2009, at 04:51, Anand Buddhdev wrote:

>> You need to create the directories inside the destroot so they're  
>> registered to the port.
>>
>> Instead of:
>>
>> xinstall -d ${prefix}/somewhere
>>
>> do:
>>
>> xinstall -d ${destroot}${prefix}/somewhere
>
>
> Actually, this is what I'm already doing. However, at run-time, the  
> package creates files in these directories, so Macports doesn't  
> remove them. That's why I was asking about something like a post- 
> uninstall hook, which can remove these (possibly) nonempty  
> directories, and remove the user account created during package  
> installation.

Oh yes, understood. But sorry, no, there is no post-uninstall hook.  
There are several ports where this would be useful, but nobody has  
written it yet.




More information about the macports-dev mailing list