diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /sys-process/cronie | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'sys-process/cronie')
-rw-r--r-- | sys-process/cronie/Manifest | 2 | ||||
-rw-r--r-- | sys-process/cronie/cronie-1.6.1.ebuild | 118 |
2 files changed, 120 insertions, 0 deletions
diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest index 2ee9bb59f088..b25722b4175d 100644 --- a/sys-process/cronie/Manifest +++ b/sys-process/cronie/Manifest @@ -6,6 +6,8 @@ AUX cronie-1.6.0-crontab_entries_regression.patch 626 BLAKE2B 9d4012dcdd0bef32f5 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 +DIST cronie-1.6.1.tar.gz 149913 BLAKE2B 7b563b90f386a8df09398661e2b3ddc1f83d6c0d19290a02c0622be461e1d160218572adf132d634c60ef8fd0a4bb100e830b90e26270c28c75a69591ccc18a6 SHA512 1e095df9670ec25d6629f4cf2cacd82c6c1cb1487a859815a7881a1d130e4f18f9976396f773abae24dadc232166bb6467bbaeac1cb0254209fcadf3530d5e6f EBUILD cronie-1.5.7.ebuild 2468 BLAKE2B ca601372419baeb30da062b3e0016bc4c6a69066af9c0e0585414f1761d3bde19588c3a01dca5b7ef40c04fdce25e46d00cc71b7a83cc98a9da5c4b08bb817d8 SHA512 3c362f291f88584c67f59ba70052ba0c2d22f4ce29a2f5da72c55913fe32b85dcafc7dad35c80ee36e9fd1af9f423bbeccc7f05c17f9890ccad488121361a1ff EBUILD cronie-1.6.0-r2.ebuild 2615 BLAKE2B 6aea9c077755f0f2194b0cb455a6b988263e126ceae385fd6183f73ebb051bceacb7649491249f9b661e409c87fbfb74169f30c5b3c9e551eb91ef7404a36496 SHA512 eb38b0d7f7ed570922ea4ecc61f482b57908e879fbe3c4cbc2bcf21c83436d8b0743d6792c625c440629d2fe18397568ecb0e91654ea38efc4d93bd076801bd3 +EBUILD cronie-1.6.1.ebuild 2554 BLAKE2B 22a2f86088a0c86f982b8932624aff5357ad957354dd6828e4a8bc767a7090075307c6ab00fbcaa1d9e4b630c064f4b9d3c951356c6bbc1270c7920e9fb734e2 SHA512 06959b3685e0ab0f2f75635741c1f1283032b1a2271ed4600ac81092cde9e66fa91fc7a024ebf0f5146785cf2fc1216f36fa03d41916eb81103e7b2d02473385 MISC metadata.xml 814 BLAKE2B e8d655775cee7b2e81727a4deb0164080b87b2c64696fae76175873ecb0bd0e8f990cf3e635721e69a51f4a862446140e447ffc92a14f30d1d87011990d0e602 SHA512 ba067983624646d5d1d5ac929bb1ef5046f652da7362f9116a48302e868d3fccc01405c39ff93d2580edabd851dbdb33099297f3ab3e3dde005c303c13247ba4 diff --git a/sys-process/cronie/cronie-1.6.1.ebuild b/sys-process/cronie/cronie-1.6.1.ebuild new file mode 100644 index 000000000000..93c845e1da39 --- /dev/null +++ b/sys-process/cronie/cronie-1.6.1.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 +} |