Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 694378 | Differences between
and this patch

Collapse All | Expand All

(-)cronie.org/cronie-1.5.5.ebuild (-1 / +22 lines)
Lines 11-17 Link Here
11
11
12
LICENSE="ISC BSD BSD-2 GPL-2"
12
LICENSE="ISC BSD BSD-2 GPL-2"
13
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
13
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
14
IUSE="+anacron +inotify pam selinux"
14
IUSE="+anacron +inotify pam selinux vixiecron"
15
16
RESTRICT="vixiecron? ( !anacron )"
15
17
16
DEPEND="
18
DEPEND="
17
	pam? ( sys-libs/pam )
19
	pam? ( sys-libs/pam )
Lines 74-79 Link Here
74
76
75
	newconfd "${S}"/crond.sysconfig ${PN}
77
	newconfd "${S}"/crond.sysconfig ${PN}
76
78
79
if use vixiecron ; then
80
	# Make cronie behave like the old vixiecron wrt crontab processing
81
	# which uses /usr/sbin/run-crons to run the hourly, daily, weekly,
82
	# and montly cron jobs.
83
84
	insinto /etc
85
	newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
86
	newins "${FILESDIR}/${PN}-crontab-vixiecron" crontab
87
88
	newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN}
89
	newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
90
91
	systemd_newunit contrib/cronie.systemd cronie.service
92
93
	keepdir /etc/cron.d
94
95
else
96
77
	insinto /etc
97
	insinto /etc
78
	newins "${FILESDIR}/${PN}-crontab" crontab
98
	newins "${FILESDIR}/${PN}-crontab" crontab
79
	newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
99
	newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
Lines 102-107 Link Here
102
		insinto /etc/cron.d
122
		insinto /etc/cron.d
103
		doins contrib/dailyjobs
123
		doins contrib/dailyjobs
104
	fi
124
	fi
125
fi
105
126
106
	einstalldocs
127
	einstalldocs
107
}
128
}
(-)cronie.org/files/cronie-crontab-vixiecron (+24 lines)
Line 0 Link Here
1
# Global variables
2
SHELL=/bin/bash
3
PATH=/sbin:/bin:/usr/sbin:/usr/bin
4
MAILTO=root
5
HOME=/
6
7
# For details see man 4 crontabs
8
9
# Example of job definition:
10
# .---------------- minute (0 - 59)
11
# |  .------------- hour (0 - 23)
12
# |  |  .---------- day of month (1 - 31)
13
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
14
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
15
# |  |  |  |  |
16
# *  *  *  *  * user-name  command to be executed
17
18
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
19
59  *  * * *    root    rm -f /var/spool/cron/lastrun/cron.hourly
20
9  3  * * *     root    rm -f /var/spool/cron/lastrun/cron.daily
21
19 4  * * 6     root    rm -f /var/spool/cron/lastrun/cron.weekly
22
29 5  1 * *     root    rm -f /var/spool/cron/lastrun/cron.monthly
23
*/10  *  * * *  root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons
24

Return to bug 694378