summaryrefslogtreecommitdiff
path: root/sys-process/cronie
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/cronie')
-rw-r--r--sys-process/cronie/Manifest4
-rw-r--r--sys-process/cronie/cronie-1.6.0-r1.ebuild118
-rw-r--r--sys-process/cronie/files/cronie-1.3-initd2
3 files changed, 122 insertions, 2 deletions
diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest
index 66e99edbb322..cb69ed49f26c 100644
--- a/sys-process/cronie/Manifest
+++ b/sys-process/cronie/Manifest
@@ -1,8 +1,10 @@
AUX cronie-1.2-cron.deny 148 BLAKE2B 3da92c65667ccacd74e32443e1cd5623d8040a75d783bac5055ed2c6773b1967c516cba82fcfe8ab6a25b65af6d009ae7c4178b332681970c9b2d339bc6473bd SHA512 e2e3a72a527d7d905b8e36f3a988eb71baebab5eb83d4a744d7c4ff4e9d6030d17bd9d8dbea30397027f4f0bbcd8df82ca0c2dd89777aade530af832fa26b5c6
-AUX cronie-1.3-initd 274 BLAKE2B 11ea62f09ca1263b9daecfcccc422d4ce28c200e03a1edbae91db9cae770910490a5c34f0f3e8a6a7ccc677aca6c555450fd9b2e7ec7aade163552f5613cbbd8 SHA512 f80a745dd00c62518dff3faff45bc79df97254e275bd5d26a1edc7452c23cebffa1d3eb3cb1767b23f40eae462f9432cca87b5b075a143169e056b38f21e85ae
+AUX cronie-1.3-initd 270 BLAKE2B c98021f1b71578aa0ad19ec9512a58301cb9bf472b5418a523a7bb4cad142af4576b4168b141418450d46a074486e7d6b994b4bab0595840a369982004aee0b1 SHA512 4769377ee15fd58a96a4cfe9e42ef4322b4796af417ec146c8e2d6f7dc3c8f5ca94c7b115b5b57e8fb1ff999739ed8f83a45b30a022655bb26fee459cbbd734c
AUX cronie-1.4.3-pamd 231 BLAKE2B d993c025529e817435264c798bec757ead59d77540e1ff08a0f43d2d686d5c82eb9101455bc3191417323286a483e68795ec3a376c73b216ac4ea6d77fbaf2bf SHA512 32268d8b097e60eb039c023647ecd651b6940a8fe1587111ce0d49314bbb2de451214f98b7b703fd284e231c10bc4e616d4d0c63c107d9cdbc2bb470a17f2c3a
AUX cronie-1.5.3-systemd.patch 980 BLAKE2B dc11e7e1f072270f24e4ae420c2bde63412ec8d322d65972eb574cab2594388157c1ea4fb9297500de5ba4c32639792e810590e44dbc2650ae5bb5eab11c160b SHA512 a1e9fef4cff7503357785645ee91cccf54dcfd8433ed9d1fd22813849bcb47f0bb6f96b404a66450d865d586041415b480e53ef1599318df32331a657456b92f
AUX cronie-crontab 476 BLAKE2B 7e2de210328ad714647b9ec50c611573ba166b63f68643aa001f8ca2d2c6e6a5b1300cbd8e1be2ba4374def366698abe6f990673b427e7db4883a9cb74bd06c0 SHA512 0d42a8e749db5c7f057b980678dbfada3dcf1418000168380097032a69a48ab4bc8fa228fb45c65c9c2a1a8d5290da3ca84816963fb7096fd13e293a68fea0c5
DIST cronie-1.5.7.tar.gz 148739 BLAKE2B 3e9f8b78a29d2304e2ece7ce2b794b80e6023428d5b07f21936f3690eae2741b9e6814f966d8e3cb3d4f9daf32b3fe730ce6adebb76f8779c3f5039d2a19b6a4 SHA512 cddf1ffd518bf8daed8ae2634ace41da669f6d1039b1936b602200e2f2902944d8e84c80f73f6ab67b2fa755c4192f9181cf44d87bc893201b756367ab55148e
+DIST cronie-1.6.0.tar.gz 149859 BLAKE2B 0b63b07d8138c74c57ff0cbe1ae3cd3abb21178116322327d06cbc5e12a0c54e5f2512fb9f810787721f7ad1bba897f206b96fd83645bbfeeace734eedbcaf3d SHA512 9d078e2f8ffc0d2feaa16d419fcccf354f8de8021869b14d315b6f0a0acbd888da98fb47888b71672354ec221bbbaf5b77a543b909ae44b0fc6d2b39394ddf5b
EBUILD cronie-1.5.7.ebuild 2468 BLAKE2B ca601372419baeb30da062b3e0016bc4c6a69066af9c0e0585414f1761d3bde19588c3a01dca5b7ef40c04fdce25e46d00cc71b7a83cc98a9da5c4b08bb817d8 SHA512 3c362f291f88584c67f59ba70052ba0c2d22f4ce29a2f5da72c55913fe32b85dcafc7dad35c80ee36e9fd1af9f423bbeccc7f05c17f9890ccad488121361a1ff
+EBUILD cronie-1.6.0-r1.ebuild 2554 BLAKE2B 22a2f86088a0c86f982b8932624aff5357ad957354dd6828e4a8bc767a7090075307c6ab00fbcaa1d9e4b630c064f4b9d3c951356c6bbc1270c7920e9fb734e2 SHA512 06959b3685e0ab0f2f75635741c1f1283032b1a2271ed4600ac81092cde9e66fa91fc7a024ebf0f5146785cf2fc1216f36fa03d41916eb81103e7b2d02473385
MISC metadata.xml 814 BLAKE2B e8d655775cee7b2e81727a4deb0164080b87b2c64696fae76175873ecb0bd0e8f990cf3e635721e69a51f4a862446140e447ffc92a14f30d1d87011990d0e602 SHA512 ba067983624646d5d1d5ac929bb1ef5046f652da7362f9116a48302e868d3fccc01405c39ff93d2580edabd851dbdb33099297f3ab3e3dde005c303c13247ba4
diff --git a/sys-process/cronie/cronie-1.6.0-r1.ebuild b/sys-process/cronie/cronie-1.6.0-r1.ebuild
new file mode 100644
index 000000000000..93c845e1da39
--- /dev/null
+++ b/sys-process/cronie/cronie-1.6.0-r1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools cron flag-o-matic pam systemd
+
+DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron"
+HOMEPAGE="https://github.com/cronie-crond/cronie"
+SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz"
+
+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"
+
+DEPEND="
+ acct-group/crontab
+ pam? ( sys-libs/pam )
+ anacron? (
+ !sys-process/anacron
+ !sys-process/systemd-cron
+ elibc_musl? ( sys-libs/obstack-standalone )
+ )
+"
+RDEPEND="${DEPEND}
+ sys-apps/debianutils
+"
+
+#cronie supports /etc/crontab
+CRON_SYSTEM_CRONTAB="yes"
+
+S="${WORKDIR}/${PN}-${P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.5.3-systemd.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with inotify)
+ $(use_with pam)
+ $(use_with selinux)
+ $(use_enable anacron)
+ --enable-syscrontab
+ # Required for correct pidfile location #835814
+ --runstatedir="${EPREFIX}/run"
+ --with-daemon_username=cron
+ --with-daemon_groupname=cron
+ )
+
+ if use anacron ; then
+ if use elibc_musl ; then
+ append-cflags "-lobstack"
+ fi
+ fi
+ SPOOL_DIR="/var/spool/cron/crontabs" \
+ ANACRON_SPOOL_DIR="/var/spool/anacron" \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ docrondir -m 1730 -o root -g crontab
+ fowners root:crontab /usr/bin/crontab
+ fperms 2751 /usr/bin/crontab
+
+ newconfd "${S}"/crond.sysconfig ${PN}
+
+ insinto /etc
+ newins "${FILESDIR}/${PN}-crontab" crontab
+ newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
+
+ insinto /etc/cron.d
+ doins contrib/dailyjobs
+
+ newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN}
+
+ if use pam ; then
+ newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
+ fi
+
+ systemd_newunit contrib/cronie.systemd cronie.service
+
+ if use anacron ; then
+ local anacrondir="/var/spool/anacron"
+ keepdir ${anacrondir}
+ fowners root:cron ${anacrondir}
+ fperms 0750 ${anacrondir}
+
+ insinto /etc
+ doins contrib/anacrontab
+
+ insinto /etc/cron.hourly
+ doins contrib/0anacron
+ fperms 0750 /etc/cron.hourly/0anacron
+
+ insinto /etc/cron.d
+ doins contrib/0hourly
+ fi
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ cron_pkg_postinst
+
+ if [[ -n "${REPLACING_VERSIONS}" ]] ; then
+ ewarn "You should restart ${PN} daemon or else you might experience segfaults"
+ ewarn "or ${PN} not working reliably anymore."
+ einfo "(see https://bugs.gentoo.org/557406 for details.)"
+ fi
+}
diff --git a/sys-process/cronie/files/cronie-1.3-initd b/sys-process/cronie/files/cronie-1.3-initd
index 793e6213bfae..def72818357c 100644
--- a/sys-process/cronie/files/cronie-1.3-initd
+++ b/sys-process/cronie/files/cronie-1.3-initd
@@ -4,7 +4,7 @@
command="/usr/sbin/crond"
command_args="${CRONDARGS}"
-pidfile="/var/run/crond.pid"
+pidfile="/run/crond.pid"
depend() {
use clock logger