The function runHook is often used in packages, but there doesn’t seem to be documentation anywhere.
I have usually seen before and after package phases, i.e.:
Nice writeup. That’s pretty much what I was wondering. I am overriding a postInstall hook and it turns out that it is not being called in the original package.