common/hooks: new hooks moved from xbps-src.