Transplanted logrotation from Mirage