common/hooks: add some hooks moved from xbps-src (not yet used).