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.


_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to