summaryrefslogtreecommitdiff
path: root/sys-process/cronie
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-process/cronie
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/cronie')
-rw-r--r--sys-process/cronie/Manifest12
-rw-r--r--sys-process/cronie/cronie-1.5.0-r1.ebuild90
-rw-r--r--sys-process/cronie/cronie-1.5.1.ebuild95
-rw-r--r--sys-process/cronie/files/cronie-1.2-cron.deny4
-rw-r--r--sys-process/cronie/files/cronie-1.3-crontab14
-rw-r--r--sys-process/cronie/files/cronie-1.3-initd13
-rw-r--r--sys-process/cronie/files/cronie-1.4.3-pamd9
-rw-r--r--sys-process/cronie/files/cronie-systemd.patch30
-rw-r--r--sys-process/cronie/metadata.xml26
9 files changed, 293 insertions, 0 deletions
diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest
new file mode 100644
index 000000000000..d08be5833988
--- /dev/null
+++ b/sys-process/cronie/Manifest
@@ -0,0 +1,12 @@
+AUX cronie-1.2-cron.deny 148 SHA256 2da98580288864e2470b01bb781bb88111b719dfe6bcb10c8fd5e019e3f3a953 SHA512 e2e3a72a527d7d905b8e36f3a988eb71baebab5eb83d4a744d7c4ff4e9d6030d17bd9d8dbea30397027f4f0bbcd8df82ca0c2dd89777aade530af832fa26b5c6 WHIRLPOOL d562e8c6058ee7f69bdbb4828653112643ba2c60712e360aff58d6f5edb6aa36ea9a53780cc7f957fdc261795aec814334dbc817997c3a751d752360a18aa3c1
+AUX cronie-1.3-crontab 485 SHA256 0ad6f06187f477d14ead949be2e9e9609205d64dfb9ec7c18fd67c8132f921d6 SHA512 4c1723a9363ec62d466525c701c1c355a3e3e741d8fa1b34fe43b2cdffc46cfe9044d6291ef20c1b3c95f4ae219eae6d4d3f0d9c294127c6fdb6f38319a55e6c WHIRLPOOL 17a3455002efe5a2da2c84965442e2e14fdce8211662e370ca1d6a98685ed272ab6f054bd3e981420f2f0943662042190aec00e06dc5098ca2318cf0533a9e06
+AUX cronie-1.3-initd 274 SHA256 8646ff964892eeb5f6c5da444a5ef5d898fb1f3a395c5b9fc85d32d8d56fc785 SHA512 f80a745dd00c62518dff3faff45bc79df97254e275bd5d26a1edc7452c23cebffa1d3eb3cb1767b23f40eae462f9432cca87b5b075a143169e056b38f21e85ae WHIRLPOOL 555dee510de9192b3a6f8c952e40b49405c41d69178303e80eb03a2942cea4325009603e3634c2261b4d96634cca25f42b8de73d85c5b016ec277a3968f44eae
+AUX cronie-1.4.3-pamd 231 SHA256 c281c9b8fb4984e20142a7e099d7032192d5c2ca2eb02ece5eb4f73ca64593dd SHA512 32268d8b097e60eb039c023647ecd651b6940a8fe1587111ce0d49314bbb2de451214f98b7b703fd284e231c10bc4e616d4d0c63c107d9cdbc2bb470a17f2c3a WHIRLPOOL 171dbaa3a49aec2731d1cd78a1a4168369a1a0596b98049fd9c026ab9af54e97fdcf81416fa4fe8201c232dcdf891c4d3e81da20ddfa103eae458094c2095424
+AUX cronie-systemd.patch 865 SHA256 3ea3e906420fae0c90bd309b906b94d6a82c46090fffeb2e1ce1738ffad8ca40 SHA512 dcbeb3fba468f3b63965714075bb6619c768e0d14caddf8c4b62a5d6bee6a2f55be2f1d589b9ef5adefe57d9a20eb2c17216550519fd83bcea2151ccf151d4e0 WHIRLPOOL 2add3a3816a5457ad1494d2e9bc7926a37b1880ba29989659a5758fd00c95d5a3d9f0c62184913391f0afbf693fbb35b708a82a0e8ae567627dd488dfb8ff6ab
+DIST cronie-1.5.0.tar.gz 242072 SHA256 9cf0e3f4f5042a9c09413d62c8e0c055e12401f70b112465f0f81f2c84ebfb3f SHA512 cad4d78cbb58ea32d1093890b316b6599d115b29f367eecc2e4a0a3560ab85ac85aa159886c883e46defb6212432d37f425396cfca686e4dd8526102ca4dd8fe WHIRLPOOL 69cb81b1d5673137132d921f8ed917e83965c5511004f58d386bb36e40787d30c640a3527d933346f3071b781c217b3001ee089045841ff054b965638e217744
+DIST cronie-1.5.1.tar.gz 114848 SHA256 14701a1b952d3cf730ac73db626a6becd049c2d44dde43cd53e00643c573e0b6 SHA512 7e5b2e5cc782d04b84ffced21b4601ed5a041c125ec9daa3ae3c704c04b376b07f8f6e6e1351659690ce695ca4c9373456420099eefde985e15fbe5d3ebdcf5a WHIRLPOOL 9eb12a529fb5072d4b3e69a1c3d2af8c01515ff044b7f453959f992f1b60bd7ed2b7343d50e8d9ff7eca241d3a6ffcd33b8e1359747ca3c652025af18c2b409a
+EBUILD cronie-1.5.0-r1.ebuild 2149 SHA256 d596c9833f977c1b6d1036cdf5ecde52692d5f6c0e3064c81e49ef48fd524483 SHA512 345dbd19db3c032f1a3a32253b091359775ce86f0ed69b7abffdcc9603fb56d49d355c6d4e0907f20a5d560eae10f815700c9e62dd472837b39d0645f90d6638 WHIRLPOOL b1043d45b34249b297af67248e1c4643ca30fae876c94ef8dc13116195a36f212480269c5fef9ac280eee4e19e7af593ac269c7a239b2767a3bd2d524a8ecc36
+EBUILD cronie-1.5.1.ebuild 2207 SHA256 a232c2504776d1e0e9c53e022189c713e6e1d2f269a43a76c1938bd135f32b9c SHA512 4f6588e27aa00bc7ace3c8a930c84873f23d28dbda048a1b4476108ea01fc0a5e6f733c05e5366ecd7c3c9a8e0608dcddf2e4942f08c0425b07312cce230db92 WHIRLPOOL 3d2ffc62d1ff893a03f6656e2095925c9856bf89914d184d603c581b1a26558cc46de08db46be2c826c59ca61f0acf1e8735562dcbcd91228cf64efb1eef720e
+MISC ChangeLog 4692 SHA256 c20f8c61c446476e366af3ef70dc32548ff183e0ac70842dd250468a0399c212 SHA512 cb9aadc515c89c8836d5ae33dd64c8b19e0f53267d1f88d3925e71103805636436d2a2aaa004dcac5a8f04bdb5199871cebc08e3c25075c188b2457d2000bc88 WHIRLPOOL 20b75b08d4d1a791b3ee8ca4b27c263730a7d122ff37f45ee39d91776484f21742b02fa7e07d5511b40c9630d4a6c522ed72c99e7fe07e209c8cc3ff657dda9f
+MISC ChangeLog-2015 11346 SHA256 a80a874c593a1a9c93778016681ea3ac6a416257417e324f7223e62a64c63e7c SHA512 ec4d5a1c726c3d53bfee4fa525fdc105a208361a98bebfd18d1a260c1153fd3229afb4cf5c1ca683aa6ff74331f9b679d5aa91b8d4725d8077994e79624880da WHIRLPOOL 9210ffe923dc7883fa959d2ce71f76fde72b8c5584dae67bd94e2c77d8e79ebb163232ca96ef115b1e36cc17421c51cc7de23b627d209f57f3fcc0f69d31010c
+MISC metadata.xml 1014 SHA256 393b888486512fd7b7273e12422685390a93ff16bc1613d1d66e223d6358bf68 SHA512 7f8295708e5049940e4e2147494e8ee2649635b492fe9096f1d61785f6fd8126d380be1517b253e668d6355d0d2d03e97af4fcca47ed42a6b70a5d669e7ab2c5 WHIRLPOOL 2193b75097fff3a560d2ad57509450ffd7162fddf89682790df72a5db9c5fab86403b956b6098ee8d22225740694f83a39d7701691dbf23adbeae43904cd5b86
diff --git a/sys-process/cronie/cronie-1.5.0-r1.ebuild b/sys-process/cronie/cronie-1.5.0-r1.ebuild
new file mode 100644
index 000000000000..5d8fdef51b62
--- /dev/null
+++ b/sys-process/cronie/cronie-1.5.0-r1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cron eutils pam systemd user
+
+DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron"
+SRC_URI="https://fedorahosted.org/releases/c/r/cronie/${P}.tar.gz"
+HOMEPAGE="https://fedorahosted.org/cronie/wiki"
+
+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}"
+
+#cronie supports /etc/crontab
+CRON_SYSTEM_CRONTAB="yes"
+
+pkg_setup() {
+ enewgroup crontab
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/cronie-systemd.patch"
+}
+
+src_configure() {
+ SPOOL_DIR="/var/spool/cron/crontabs" \
+ ANACRON_SPOOL_DIR="/var/spool/anacron" \
+ econf \
+ $(use_with inotify) \
+ $(use_with pam) \
+ $(use_with selinux) \
+ $(use_enable anacron) \
+ --enable-syscrontab \
+ --with-daemon_username=cron \
+ --with-daemon_groupname=cron
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+
+ docrondir -m 1730 -o root -g crontab
+ fowners root:crontab /usr/bin/crontab
+ fperms 2751 /usr/bin/crontab
+
+ insinto /etc/conf.d
+ newins "${S}"/crond.sysconfig ${PN}
+
+ insinto /etc
+ newins "${FILESDIR}/${PN}-1.3-crontab" crontab
+ newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
+
+ keepdir /etc/cron.d
+ 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
+ fi
+
+ dodoc AUTHORS README NEWS contrib/*
+}
+
+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/cronie-1.5.1.ebuild b/sys-process/cronie/cronie-1.5.1.ebuild
new file mode 100644
index 000000000000..845934d32395
--- /dev/null
+++ b/sys-process/cronie/cronie-1.5.1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools cron eutils 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}"
+
+#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() {
+ SPOOL_DIR="/var/spool/cron/crontabs" \
+ ANACRON_SPOOL_DIR="/var/spool/anacron" \
+ econf \
+ $(use_with inotify) \
+ $(use_with pam) \
+ $(use_with selinux) \
+ $(use_enable anacron) \
+ --enable-syscrontab \
+ --with-daemon_username=cron \
+ --with-daemon_groupname=cron
+}
+
+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}-1.3-crontab" crontab
+ newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
+
+ keepdir /etc/cron.d
+ 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
+ fi
+
+ dodoc AUTHORS README NEWS contrib/*
+}
+
+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.2-cron.deny b/sys-process/cronie/files/cronie-1.2-cron.deny
new file mode 100644
index 000000000000..f703d5846e41
--- /dev/null
+++ b/sys-process/cronie/files/cronie-1.2-cron.deny
@@ -0,0 +1,4 @@
+# If for any reason you have users in the 'cron' group who should not
+# be allowed to run crontab, add them to this file (one username per
+# line)
+
diff --git a/sys-process/cronie/files/cronie-1.3-crontab b/sys-process/cronie/files/cronie-1.3-crontab
new file mode 100644
index 000000000000..99c2b54f3fde
--- /dev/null
+++ b/sys-process/cronie/files/cronie-1.3-crontab
@@ -0,0 +1,14 @@
+# for cronie
+
+# Global variables
+SHELL=/bin/bash
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+MAILTO=root
+HOME=/
+
+# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
+59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
+9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
+19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
+29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
+*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
diff --git a/sys-process/cronie/files/cronie-1.3-initd b/sys-process/cronie/files/cronie-1.3-initd
new file mode 100644
index 000000000000..793e6213bfae
--- /dev/null
+++ b/sys-process/cronie/files/cronie-1.3-initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/crond"
+command_args="${CRONDARGS}"
+pidfile="/var/run/crond.pid"
+
+depend() {
+ use clock logger
+ need localmount
+ provide cron
+}
diff --git a/sys-process/cronie/files/cronie-1.4.3-pamd b/sys-process/cronie/files/cronie-1.4.3-pamd
new file mode 100644
index 000000000000..e82be8d87f7b
--- /dev/null
+++ b/sys-process/cronie/files/cronie-1.4.3-pamd
@@ -0,0 +1,9 @@
+#
+# The PAM configuration file for the cron daemon
+#
+#
+auth include system-auth
+account required pam_access.so
+account include system-auth
+session required pam_loginuid.so
+session include system-auth
diff --git a/sys-process/cronie/files/cronie-systemd.patch b/sys-process/cronie/files/cronie-systemd.patch
new file mode 100644
index 000000000000..81c191737842
--- /dev/null
+++ b/sys-process/cronie/files/cronie-systemd.patch
@@ -0,0 +1,30 @@
+From 11d255eb05ae9814c16cd443a7710d99492e16c1 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Mon, 13 Jul 2015 10:59:57 -0400
+Subject: [PATCH] Adjust systemd service unit for Gentoo
+
+---
+ contrib/cronie.systemd | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/cronie.systemd b/contrib/cronie.systemd
+index ad46899..7a6c1a9 100644
+--- a/contrib/cronie.systemd
++++ b/contrib/cronie.systemd
+@@ -3,10 +3,11 @@ Description=Command Scheduler
+ After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service
+
+ [Service]
+-EnvironmentFile=/etc/sysconfig/crond
+-ExecStart=/usr/sbin/crond -n $CRONDARGS
++ExecStart=/usr/sbin/crond
+ ExecReload=/bin/kill -HUP $MAINPID
+ KillMode=process
++Type=forking
++PIDFile=/var/run/crond.pid
+
+ [Install]
+ WantedBy=multi-user.target
+--
+2.4.5
+
diff --git a/sys-process/cronie/metadata.xml b/sys-process/cronie/metadata.xml
new file mode 100644
index 000000000000..b25dd022b73c
--- /dev/null
+++ b/sys-process/cronie/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cron-bugs@gentoo.org</email>
+ <name>Gentoo Cron Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Cronie contains the standard UNIX daemon crond that runs specified programs at
+ scheduled times and related tools. It is based on the original cron and
+ has security and configuration enhancements like the ability to use pam and
+ SELinux.
+ And why cronie? See http://www.urbandictionary.com/define.php?term=cronie
+ </longdescription>
+ <use>
+ <flag name="anacron">Install the periodic anacron command scheduler.</flag>
+ <flag name="inotify">Enable inotify filesystem monitoring support.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">cronie-crond/cronie</remote-id>
+ </upstream>
+</pkgmetadata>