commit:     756d35dd80dde6db58e81b589fa034650bc7a317
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sun May 13 21:08:41 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sun May 13 21:08:56 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=756d35dd

sys-process/cronie: Bump to version 1.5.2

Closes: https://bugs.gentoo.org/655662
Package-Manager: Portage-2.3.36, Repoman-2.3.9

 sys-process/cronie/Manifest            |   1 +
 sys-process/cronie/cronie-1.5.2.ebuild | 103 +++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest
index d647b69d9cc..3b2145890ab 100644
--- a/sys-process/cronie/Manifest
+++ b/sys-process/cronie/Manifest
@@ -1,2 +1,3 @@
 DIST cronie-1.5.0.tar.gz 242072 BLAKE2B 
ef21cfabbc70981a0d57ff85cbdbae786aae2d01095e7da3f55c5a9c97c1b62cde2e29e7e872b34872e9b8faacb36d86cfb37a8257faf49f1586761eb8797f23
 SHA512 
cad4d78cbb58ea32d1093890b316b6599d115b29f367eecc2e4a0a3560ab85ac85aa159886c883e46defb6212432d37f425396cfca686e4dd8526102ca4dd8fe
 DIST cronie-1.5.1.tar.gz 114848 BLAKE2B 
9b2a045c2c3c18a931588c620e455c4f2efbf17a5f5826bc1b276bd2c4537fe91d7f81cdb7434dc7d8357414c14d9dc89c90bb7a5dc22956d90b6a84c731f498
 SHA512 
7e5b2e5cc782d04b84ffced21b4601ed5a041c125ec9daa3ae3c704c04b376b07f8f6e6e1351659690ce695ca4c9373456420099eefde985e15fbe5d3ebdcf5a
+DIST cronie-1.5.2.tar.gz 121604 BLAKE2B 
4225439fd13a32bba3bd24f25d7dd405cdb123e666ebbf14574143af9d161867f82ea3fc479d81a884590faaa9c42e19c971285e01a19d6ac793b7deb7fc4775
 SHA512 
6455e234becc44e6568fa25fd72abfaa293cb0bc2d2f1d124e551c068ba01083192b21e82e941158c8c1f41cb6dad3851d665b9f3baa82fd49080f3f8619740b

diff --git a/sys-process/cronie/cronie-1.5.2.ebuild 
b/sys-process/cronie/cronie-1.5.2.ebuild
new file mode 100644
index 00000000000..f9c9fbc31a1
--- /dev/null
+++ b/sys-process/cronie/cronie-1.5.2.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools cron pam systemd user
+
+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 ~s390 
~sh ~sparc ~x86"
+IUSE="+anacron +inotify pam selinux"
+
+DEPEND="pam? ( virtual/pam )
+       anacron? ( !sys-process/anacron )"
+RDEPEND="${DEPEND}
+       sys-apps/debianutils"
+
+#cronie supports /etc/crontab
+CRON_SYSTEM_CRONTAB="yes"
+
+S="${WORKDIR}/${PN}-${P}"
+
+PATCHES=(
+       "${FILESDIR}/cronie-systemd.patch"
+)
+
+pkg_setup() {
+       enewgroup crontab
+}
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_with inotify)
+               $(use_with pam)
+               $(use_with selinux)
+               $(use_enable anacron)
+               --enable-syscrontab
+               --with-daemon_username=cron
+               --with-daemon_groupname=cron
+       )
+       SPOOL_DIR="/var/spool/cron/crontabs" \
+       ANACRON_SPOOL_DIR="/var/spool/anacron" \
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       emake install DESTDIR="${D}"
+
+       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/0hourly
+
+       newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN}
+       newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
+
+       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
+       else
+               insinto /etc/cron.d
+               doins contrib/dailyjobs
+       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
+}

Reply via email to