diff --git a/templates/cronie/files/crond.logrotate b/templates/cronie/files/crond.logrotate new file mode 100644 index 00000000000..cb4d5e1ed10 --- /dev/null +++ b/templates/cronie/files/crond.logrotate @@ -0,0 +1,5 @@ +/var/log/cron { + sharedscripts + copytruncate + missingok +} diff --git a/templates/cronie/template b/templates/cronie/template index c582298f5e0..c56b71dfc91 100644 --- a/templates/cronie/template +++ b/templates/cronie/template @@ -1,7 +1,7 @@ # Template file for 'cronie' pkgname=cronie version=1.3 -revision=1 +revision=2 distfiles="http://mmaslano.fedorapeople.org/cronie/cronie-$version.tar.gz" build_style=gnu_configure configure_args="--with-inotify --without-selinux --with-pam @@ -24,15 +24,15 @@ Add_dependency full run-parts post_install() { - install -d ${DESTDIR}/etc/cron.d - install -d ${DESTDIR}/etc/cron.hourly - install -d ${DESTDIR}/etc/cron.daily - install -d ${DESTDIR}/etc/cron.weekly - install -d ${DESTDIR}/etc/cron.monthly + install -d ${DESTDIR}/etc/cron.d ${DESTDIR}/etc/cron.hourly \ + ${DESTDIR}/etc/cron.daily ${DESTDIR}/etc/cron.weekly \ + ${DESTDIR}/etc/cron.monthly ${DESTDIR}/etc/logrotate.d install -d -m755 ${DESTDIR}/var/spool/cron install -D -m755 ${FILESDIR}/crond.rc ${DESTDIR}/etc/init.d/crond - install -D -m644 ${FILESDIR}/crontab ${DESTDIR}/etc/crontab + install -m644 ${FILESDIR}/crontab ${DESTDIR}/etc/crontab + install -m644 ${FILESDIR}/crond.logrotate \ + ${DESTDIR}/etc/logrotate.d/crond # Add /etc/cron.deny empty, to allow all users. touch ${DESTDIR}/etc/cron.deny