1 |
commit: c474dda61c900197ef05e64d1e5af35785cbb7c1 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 12:06:41 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 12:24:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c474dda6 |
7 |
|
8 |
sys-process/cronie: Bump to version 1.5.1 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-process/cronie/Manifest | 1 + |
14 |
sys-process/cronie/cronie-1.5.1.ebuild | 91 +++++++++++++++++++++++++++++ |
15 |
sys-process/cronie/files/cronie-1.3-crontab | 11 ++-- |
16 |
3 files changed, 97 insertions(+), 6 deletions(-) |
17 |
|
18 |
diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest |
19 |
index 1150470..1fa47d4 100644 |
20 |
--- a/sys-process/cronie/Manifest |
21 |
+++ b/sys-process/cronie/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST cronie-1.5.0.tar.gz 242072 SHA256 9cf0e3f4f5042a9c09413d62c8e0c055e12401f70b112465f0f81f2c84ebfb3f SHA512 cad4d78cbb58ea32d1093890b316b6599d115b29f367eecc2e4a0a3560ab85ac85aa159886c883e46defb6212432d37f425396cfca686e4dd8526102ca4dd8fe WHIRLPOOL 69cb81b1d5673137132d921f8ed917e83965c5511004f58d386bb36e40787d30c640a3527d933346f3071b781c217b3001ee089045841ff054b965638e217744 |
24 |
+DIST cronie-1.5.1.tar.gz 243384 SHA256 6c73666102a6b5d35e2eaf1bd06925f2d4b0cef8d3323c37286dda3089a85338 SHA512 01cd289c459c916bc53d1b0d8a8235060d6670d8bb401e6b324757780461e0071d247e3cc98f72a845a0b4aedea79b502e8077976cb38a37e88628e31e4c23d4 WHIRLPOOL 4540d16dff83d7c30da89896df75f83c54b688e0e89eec6820a2b5e8ee734fb2f04265508306f40eddc54dad157890ed6d6c3389e10516a1159e8cf5d9ecb733 |
25 |
|
26 |
diff --git a/sys-process/cronie/cronie-1.5.1.ebuild b/sys-process/cronie/cronie-1.5.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..62ae101 |
29 |
--- /dev/null |
30 |
+++ b/sys-process/cronie/cronie-1.5.1.ebuild |
31 |
@@ -0,0 +1,91 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit cron eutils pam systemd user |
39 |
+ |
40 |
+DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron" |
41 |
+SRC_URI="https://fedorahosted.org/releases/c/r/cronie/${P}.tar.gz" |
42 |
+HOMEPAGE="https://fedorahosted.org/cronie/wiki" |
43 |
+ |
44 |
+LICENSE="ISC BSD BSD-2 GPL-2" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
46 |
+IUSE="anacron +inotify pam selinux" |
47 |
+ |
48 |
+DEPEND="pam? ( virtual/pam ) |
49 |
+ anacron? ( !sys-process/anacron )" |
50 |
+RDEPEND="${DEPEND}" |
51 |
+ |
52 |
+#cronie supports /etc/crontab |
53 |
+CRON_SYSTEM_CRONTAB="yes" |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ enewgroup crontab |
57 |
+} |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}/cronie-systemd.patch" |
61 |
+) |
62 |
+ |
63 |
+src_configure() { |
64 |
+ SPOOL_DIR="/var/spool/cron/crontabs" \ |
65 |
+ ANACRON_SPOOL_DIR="/var/spool/anacron" \ |
66 |
+ econf \ |
67 |
+ $(use_with inotify) \ |
68 |
+ $(use_with pam) \ |
69 |
+ $(use_with selinux) \ |
70 |
+ $(use_enable anacron) \ |
71 |
+ --enable-syscrontab \ |
72 |
+ --with-daemon_username=cron \ |
73 |
+ --with-daemon_groupname=cron |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ emake install DESTDIR="${D}" |
78 |
+ |
79 |
+ docrondir -m 1730 -o root -g crontab |
80 |
+ fowners root:crontab /usr/bin/crontab |
81 |
+ fperms 2751 /usr/bin/crontab |
82 |
+ |
83 |
+ insinto /etc/conf.d |
84 |
+ newins "${S}"/crond.sysconfig ${PN} |
85 |
+ |
86 |
+ insinto /etc |
87 |
+ newins "${FILESDIR}/${PN}-1.3-crontab" crontab |
88 |
+ newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny |
89 |
+ |
90 |
+ keepdir /etc/cron.d |
91 |
+ newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN} |
92 |
+ newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond |
93 |
+ |
94 |
+ systemd_newunit contrib/cronie.systemd cronie.service |
95 |
+ |
96 |
+ if use anacron ; then |
97 |
+ local anacrondir="/var/spool/anacron" |
98 |
+ keepdir ${anacrondir} |
99 |
+ fowners root:cron ${anacrondir} |
100 |
+ fperms 0750 ${anacrondir} |
101 |
+ |
102 |
+ insinto /etc |
103 |
+ |
104 |
+ doins contrib/anacrontab |
105 |
+ |
106 |
+ insinto /etc/cron.hourly |
107 |
+ doins contrib/0anacron |
108 |
+ fperms 0750 /etc/cron.hourly/0anacron |
109 |
+ fi |
110 |
+ |
111 |
+ dodoc AUTHORS README NEWS contrib/* |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ cron_pkg_postinst |
116 |
+ |
117 |
+ if [[ -n "${REPLACING_VERSIONS}" ]] ; then |
118 |
+ ewarn "You should restart ${PN} daemon or else you might experience segfaults" |
119 |
+ ewarn "or ${PN} not working reliably anymore." |
120 |
+ einfo "(see https://bugs.gentoo.org/557406 for details.)" |
121 |
+ fi |
122 |
+} |
123 |
|
124 |
diff --git a/sys-process/cronie/files/cronie-1.3-crontab b/sys-process/cronie/files/cronie-1.3-crontab |
125 |
index c1364fa..14a6b9b 100644 |
126 |
--- a/sys-process/cronie/files/cronie-1.3-crontab |
127 |
+++ b/sys-process/cronie/files/cronie-1.3-crontab |
128 |
@@ -8,9 +8,8 @@ MAILTO=root |
129 |
HOME=/ |
130 |
|
131 |
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly |
132 |
-# if anacron is not present |
133 |
-59 * * * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.hourly |
134 |
-9 3 * * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.daily |
135 |
-19 4 * * 6 root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.weekly |
136 |
-29 5 1 * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.monthly |
137 |
-*/10 * * * * root [ ! -x /etc/cron.hourly/0anacron ] && { test -x /usr/sbin/run-crons && /usr/sbin/run-crons ; } |
138 |
+59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly |
139 |
+9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily |
140 |
+19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly |
141 |
+29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly |
142 |
+*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons |