1 |
commit: 756d35dd80dde6db58e81b589fa034650bc7a317 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 13 21:08:41 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 13 21:08:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=756d35dd |
7 |
|
8 |
sys-process/cronie: Bump to version 1.5.2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/655662 |
11 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
12 |
|
13 |
sys-process/cronie/Manifest | 1 + |
14 |
sys-process/cronie/cronie-1.5.2.ebuild | 103 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 104 insertions(+) |
16 |
|
17 |
diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest |
18 |
index d647b69d9cc..3b2145890ab 100644 |
19 |
--- a/sys-process/cronie/Manifest |
20 |
+++ b/sys-process/cronie/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST cronie-1.5.0.tar.gz 242072 BLAKE2B ef21cfabbc70981a0d57ff85cbdbae786aae2d01095e7da3f55c5a9c97c1b62cde2e29e7e872b34872e9b8faacb36d86cfb37a8257faf49f1586761eb8797f23 SHA512 cad4d78cbb58ea32d1093890b316b6599d115b29f367eecc2e4a0a3560ab85ac85aa159886c883e46defb6212432d37f425396cfca686e4dd8526102ca4dd8fe |
23 |
DIST cronie-1.5.1.tar.gz 114848 BLAKE2B 9b2a045c2c3c18a931588c620e455c4f2efbf17a5f5826bc1b276bd2c4537fe91d7f81cdb7434dc7d8357414c14d9dc89c90bb7a5dc22956d90b6a84c731f498 SHA512 7e5b2e5cc782d04b84ffced21b4601ed5a041c125ec9daa3ae3c704c04b376b07f8f6e6e1351659690ce695ca4c9373456420099eefde985e15fbe5d3ebdcf5a |
24 |
+DIST cronie-1.5.2.tar.gz 121604 BLAKE2B 4225439fd13a32bba3bd24f25d7dd405cdb123e666ebbf14574143af9d161867f82ea3fc479d81a884590faaa9c42e19c971285e01a19d6ac793b7deb7fc4775 SHA512 6455e234becc44e6568fa25fd72abfaa293cb0bc2d2f1d124e551c068ba01083192b21e82e941158c8c1f41cb6dad3851d665b9f3baa82fd49080f3f8619740b |
25 |
|
26 |
diff --git a/sys-process/cronie/cronie-1.5.2.ebuild b/sys-process/cronie/cronie-1.5.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f9c9fbc31a1 |
29 |
--- /dev/null |
30 |
+++ b/sys-process/cronie/cronie-1.5.2.ebuild |
31 |
@@ -0,0 +1,103 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit autotools cron pam systemd user |
38 |
+ |
39 |
+DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron" |
40 |
+HOMEPAGE="https://github.com/cronie-crond/cronie" |
41 |
+SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="ISC BSD BSD-2 GPL-2" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
45 |
+IUSE="+anacron +inotify pam selinux" |
46 |
+ |
47 |
+DEPEND="pam? ( virtual/pam ) |
48 |
+ anacron? ( !sys-process/anacron )" |
49 |
+RDEPEND="${DEPEND} |
50 |
+ sys-apps/debianutils" |
51 |
+ |
52 |
+#cronie supports /etc/crontab |
53 |
+CRON_SYSTEM_CRONTAB="yes" |
54 |
+ |
55 |
+S="${WORKDIR}/${PN}-${P}" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}/cronie-systemd.patch" |
59 |
+) |
60 |
+ |
61 |
+pkg_setup() { |
62 |
+ enewgroup crontab |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ eautoreconf |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ local myeconfargs=( |
72 |
+ $(use_with inotify) |
73 |
+ $(use_with pam) |
74 |
+ $(use_with selinux) |
75 |
+ $(use_enable anacron) |
76 |
+ --enable-syscrontab |
77 |
+ --with-daemon_username=cron |
78 |
+ --with-daemon_groupname=cron |
79 |
+ ) |
80 |
+ SPOOL_DIR="/var/spool/cron/crontabs" \ |
81 |
+ ANACRON_SPOOL_DIR="/var/spool/anacron" \ |
82 |
+ econf "${myeconfargs[@]}" |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ emake install DESTDIR="${D}" |
87 |
+ |
88 |
+ docrondir -m 1730 -o root -g crontab |
89 |
+ fowners root:crontab /usr/bin/crontab |
90 |
+ fperms 2751 /usr/bin/crontab |
91 |
+ |
92 |
+ newconfd "${S}"/crond.sysconfig ${PN} |
93 |
+ |
94 |
+ insinto /etc |
95 |
+ newins "${FILESDIR}/${PN}-crontab" crontab |
96 |
+ newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny |
97 |
+ |
98 |
+ insinto /etc/cron.d |
99 |
+ doins contrib/0hourly |
100 |
+ |
101 |
+ newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN} |
102 |
+ newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond |
103 |
+ |
104 |
+ systemd_newunit contrib/cronie.systemd cronie.service |
105 |
+ |
106 |
+ if use anacron ; then |
107 |
+ local anacrondir="/var/spool/anacron" |
108 |
+ keepdir ${anacrondir} |
109 |
+ fowners root:cron ${anacrondir} |
110 |
+ fperms 0750 ${anacrondir} |
111 |
+ |
112 |
+ insinto /etc |
113 |
+ doins contrib/anacrontab |
114 |
+ |
115 |
+ insinto /etc/cron.hourly |
116 |
+ doins contrib/0anacron |
117 |
+ fperms 0750 /etc/cron.hourly/0anacron |
118 |
+ else |
119 |
+ insinto /etc/cron.d |
120 |
+ doins contrib/dailyjobs |
121 |
+ fi |
122 |
+ |
123 |
+ einstalldocs |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ cron_pkg_postinst |
128 |
+ |
129 |
+ if [[ -n "${REPLACING_VERSIONS}" ]] ; then |
130 |
+ ewarn "You should restart ${PN} daemon or else you might experience segfaults" |
131 |
+ ewarn "or ${PN} not working reliably anymore." |
132 |
+ einfo "(see https://bugs.gentoo.org/557406 for details.)" |
133 |
+ fi |
134 |
+} |