common/hooks: new post-install hook to generate pkg gitrevs file.