--- cronie.org/cronie-1.5.5.ebuild 2020-07-28 15:39:06.000000000 -0600 +++ cronie.org/cronie-1.5.5.ebuild 2020-08-27 10:11:12.891651387 -0600 @@ -11,7 +11,9 @@ LICENSE="ISC BSD BSD-2 GPL-2" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="+anacron +inotify pam selinux" +IUSE="+anacron +inotify pam selinux vixiecron" + +RESTRICT="vixiecron? ( !anacron )" DEPEND=" pam? ( sys-libs/pam ) @@ -74,6 +76,24 @@ newconfd "${S}"/crond.sysconfig ${PN} +if use vixiecron ; then + # Make cronie behave like the old vixiecron wrt crontab processing + # which uses /usr/sbin/run-crons to run the hourly, daily, weekly, + # and montly cron jobs. + + insinto /etc + newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny + newins "${FILESDIR}/${PN}-crontab-vixiecron" crontab + + newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN} + newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond + + systemd_newunit contrib/cronie.systemd cronie.service + + keepdir /etc/cron.d + +else + insinto /etc newins "${FILESDIR}/${PN}-crontab" crontab newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny @@ -102,6 +122,7 @@ insinto /etc/cron.d doins contrib/dailyjobs fi +fi einstalldocs } --- cronie.org/files/cronie-crontab-vixiecron 1969-12-31 18:00:00.000000000 -0600 +++ cronie.org/files/cronie-crontab-vixiecron 2019-09-14 11:35:18.992499482 -0600 @@ -0,0 +1,24 @@ +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# For details see man 4 crontabs + +# Example of job definition: +# .---------------- minute (0 - 59) +# | .------------- hour (0 - 23) +# | | .---------- day of month (1 - 31) +# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... +# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat +# | | | | | +# * * * * * user-name command to be executed + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons +