replace the require of package['logrotate'] to the package class