From d764ffc218b28665eff19c064e56c360daf1ecc9 Mon Sep 17 00:00:00 2001 From: Dagg Date: Sat, 10 Jan 2015 13:37:12 +0000 Subject: [PATCH] add musl based cronie --- sys-process/cronie/ChangeLog | 267 +++++++++++++++++++++ sys-process/cronie/Manifest | 23 ++ sys-process/cronie/cronie-1.4.12-r99.ebuild | 87 +++++++ .../files/0001-add_limits_h_and_MAXNAMLEN.patch | 15 ++ sys-process/cronie/files/anacron-1.0-initd | 18 ++ sys-process/cronie/files/cronie-1.2-cron.deny | 5 + sys-process/cronie/files/cronie-1.2-crontab | 15 ++ sys-process/cronie/files/cronie-1.3-crontab | 16 ++ sys-process/cronie/files/cronie-1.3-initd | 14 ++ sys-process/cronie/files/cronie-1.4.3-pamd | 9 + sys-process/cronie/metadata.xml | 20 ++ 11 files changed, 489 insertions(+) create mode 100644 sys-process/cronie/ChangeLog create mode 100644 sys-process/cronie/Manifest create mode 100644 sys-process/cronie/cronie-1.4.12-r99.ebuild create mode 100644 sys-process/cronie/files/0001-add_limits_h_and_MAXNAMLEN.patch create mode 100644 sys-process/cronie/files/anacron-1.0-initd create mode 100644 sys-process/cronie/files/cronie-1.2-cron.deny create mode 100644 sys-process/cronie/files/cronie-1.2-crontab create mode 100644 sys-process/cronie/files/cronie-1.3-crontab create mode 100644 sys-process/cronie/files/cronie-1.3-initd create mode 100644 sys-process/cronie/files/cronie-1.4.3-pamd create mode 100644 sys-process/cronie/metadata.xml diff --git a/sys-process/cronie/ChangeLog b/sys-process/cronie/ChangeLog new file mode 100644 index 0000000..28ec925 --- /dev/null +++ b/sys-process/cronie/ChangeLog @@ -0,0 +1,267 @@ +# ChangeLog for sys-process/cronie +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/ChangeLog,v 1.61 2014/12/30 17:42:09 maekke Exp $ + + 30 Dec 2014; Markus Meier cronie-1.4.12.ebuild: + arm stable, bug #533276 + + 22 Dec 2014; Mikle Kolyada cronie-1.4.12.ebuild: + amd64 stable wrt bug #533276 + + 22 Dec 2014; Jeroen Roovers cronie-1.4.12.ebuild: + Stable for HPPA (bug #533276). + +*cronie-1.4.12 (22 Sep 2014) + + 22 Sep 2014; Lars Wendler +cronie-1.4.12.ebuild: + Version bump. + + 07 Sep 2014; Jack Morgan cronie-1.4.11-r3.ebuild: + sparc, ppc, ppc64 stable + + 10 Aug 2014; Sergei Trofimovich cronie-1.4.11-r1.ebuild, + cronie-1.4.11-r3.ebuild: + QA: drop trailing '.' from DESCRIPTION + + 05 Jul 2014; Mikle Kolyada cronie-1.4.11-r3.ebuild: + Add ~s390 keyword wrt bug #497394 + +*cronie-1.4.11-r3 (18 Apr 2014) + + 18 Apr 2014; Lars Wendler -cronie-1.4.11-r2.ebuild, + +cronie-1.4.11-r3.ebuild, files/cronie-1.3-crontab: + Only use anachron if /etc/cron.hourly/0anacron is executable. + +*cronie-1.4.11-r2 (30 Mar 2014) + + 30 Mar 2014; Lars Wendler +cronie-1.4.11-r2.ebuild, + +files/cronie-1.3-crontab: + Attempt to fix installation of anacron as suggested by Matthew Schultz in bug + #503666. + + 26 Mar 2014; Christian Ruppert cronie-1.4.11-r1.ebuild: + Enable inotify by default + + 04 Mar 2014; Lars Wendler files/anacron-1.0-initd, + files/cronie-1.3-initd: + Fixed pidfile location for non-linux systems. + +*cronie-1.4.11-r1 (25 Feb 2014) + + 25 Feb 2014; Lars Wendler -cronie-1.4.9-r5.ebuild, + -cronie-1.4.11.ebuild, +cronie-1.4.11-r1.ebuild, files/anacron-1.0-initd, + files/cronie-1.3-initd: + Revbump to install anacrontab as well. Thanks to Matthew Schultz for + reporting this in bug #502420 and providing an ebuild patch. Committed + straight to stable. Fixed pidfile location in init scripts. Removed old. + + 11 Jan 2014; cronie-1.4.11.ebuild: + Add ~ppc64 keyword wrt bug #497394 + + 11 Jan 2014; cronie-1.4.11.ebuild: + Add ~ppc keyword wrt bug #497394 + + 10 Jan 2014; cronie-1.4.11.ebuild: + Add ~ia64 keyword wrt bug #497394 + + 10 Jan 2014; cronie-1.4.11.ebuild: + Add ~alpha keyword wrt bug #497394 + + 09 Jan 2014; Sergey Popov cronie-1.4.11.ebuild: + Add ~mips keyword, wrt bug #497394 + + 07 Jan 2014; Jeroen Roovers cronie-1.4.11.ebuild: + Stable for HPPA (bug #497394). + + 23 Dec 2013; Agostino Sarubbo cronie-1.4.11.ebuild: + Stable for sparc, wrt bug #490368 + + 29 Nov 2013; Markus Meier cronie-1.4.11.ebuild: + arm stable, bug #490368 + + 04 Nov 2013; Sergey Popov cronie-1.4.11.ebuild: + Stable on amd64 and x86, wrt bug #490368 + + 04 Nov 2013; Lars Wendler cronie-1.4.9-r5.ebuild, + cronie-1.4.11.ebuild: + Added GPL-2 license as init scripts are covered by it (bug #426168). + +*cronie-1.4.11 (10 Aug 2013) + + 10 Aug 2013; Lars Wendler -cronie-1.4.9-r4.ebuild, + +cronie-1.4.11.ebuild: + Version bump (bug #480434). Removed old. + + 03 Aug 2013; Agostino Sarubbo cronie-1.4.9-r5.ebuild: + Stable for sparc, wrt bug #476030 + + 14 Jul 2013; Agostino Sarubbo cronie-1.4.9-r5.ebuild: + Stable for arm, wrt bug #476030 + + 07 Jul 2013; Agostino Sarubbo cronie-1.4.9-r5.ebuild: + Stable for x86, wrt bug #476030 + + 07 Jul 2013; Agostino Sarubbo cronie-1.4.9-r5.ebuild: + Stable for amd64, wrt bug #476030 + + 14 Feb 2013; Lars Wendler -files/cronie-1.2-initd, + -cronie-1.4.8.ebuild: + Removed old. + + 06 Feb 2013; Agostino Sarubbo cronie-1.4.9-r4.ebuild: + Stable for sparc, wrt bug #453364 + + 30 Jan 2013; Agostino Sarubbo cronie-1.4.9-r4.ebuild: + Stable for x86, wrt bug #453364 + +*cronie-1.4.9-r5 (23 Jan 2013) +*cronie-1.4.9-r4 (23 Jan 2013) + + 23 Jan 2013; Lars Wendler files/anacron-1.0-initd, + -cronie-1.4.9-r2.ebuild, -cronie-1.4.9-r3.ebuild, +cronie-1.4.9-r4.ebuild, + +cronie-1.4.9-r5.ebuild: + Fixed location of pidfile in anacron init script. Thanks to Marcin Mirosław + for reporting this in bug #453708. cronie-1.4.9-r4 committed straight to + stable. + +*cronie-1.4.9-r3 (23 Jan 2013) + + 23 Jan 2013; Mike Gilbert +cronie-1.4.9-r3.ebuild: + Install systemd service unit and hourly anacron file (disabled by default). + Bug 450728 by Enrico Tagliavini. + +*cronie-1.4.9-r2 (22 Jan 2013) + + 22 Jan 2013; Lars Wendler -cronie-1.4.9-r1.ebuild, + +cronie-1.4.9-r2.ebuild: + Fixed location of anacron spool directory. Thanks to Marcin Mirosław for + reporting this in bug #453548. Comitted straight to stable. + + 21 Jan 2013; Sergey Popov cronie-1.4.9-r1.ebuild: + Stable on amd64, wrt bug #453364 + + 21 Jan 2013; Sergey Popov cronie-1.4.9-r1.ebuild: + Stable on arm, wrt bug #453364 + +*cronie-1.4.9-r1 (19 Jan 2013) + + 19 Jan 2013; Lars Wendler -cronie-1.4.8-r1.ebuild, + -cronie-1.4.9.ebuild, +cronie-1.4.9-r1.ebuild: + Make cronie use /etc/crontab again. Thanks to Dave Armstrong who reported + this in bug #452970. + +*cronie-1.4.9 (18 Dec 2012) + + 18 Dec 2012; Lars Wendler cronie-1.4.8.ebuild, + cronie-1.4.8-r1.ebuild, +cronie-1.4.9.ebuild: + Version bump (bug #447772). Fixed QA warning about missing user.eclass. + + 06 Apr 2012; cronie-1.4.8-r1.ebuild: + Toggling SELinux support through USE=selinux (bug #403293) + + 13 Feb 2012; Lars Wendler cronie-1.4.8-r1.ebuild: + Don't add anacron to cron.daily + + 13 Feb 2012; Lars Wendler cronie-1.4.8-r1.ebuild: + Forgot to add some permissions for anacron. + +*cronie-1.4.8-r1 (13 Feb 2012) + + 13 Feb 2012; Lars Wendler +files/anacron-1.0-initd, + +files/cronie-1.3-initd, -cronie-1.4.4-r1.ebuild, -cronie-1.4.6.ebuild, + +cronie-1.4.8-r1.ebuild: + Added anacron functionality and conf.d file. Thanks to Florian Steinel for + providing an ebuild patch in bug #403295. Reworked init script. + + 27 Oct 2011; Mike Frysinger cronie-1.4.8.ebuild: + Arm love #388713 by Norman Shulman. + + 24 Aug 2011; Markus Meier cronie-1.4.8.ebuild: + x86 stable, bug #380057 + + 22 Aug 2011; Tony Vroon cronie-1.4.8.ebuild: + Mark stable on AMD64 based on arch testing by Agostino "ago" Sarubbo in bug + #380057 filed by Lars "Polynomial-C" Wendler. + + 31 Jul 2011; Lars Wendler cronie-1.4.8.ebuild: + Added ~sparc keyword. + + 10 Jul 2011; Lars Wendler cronie-1.4.6.ebuild: + Fixed typo + +*cronie-1.4.8 (10 Jul 2011) +*cronie-1.4.4-r1 (10 Jul 2011) + + 10 Jul 2011; Lars Wendler -cronie-1.4.4.ebuild, + +cronie-1.4.4-r1.ebuild, cronie-1.4.6.ebuild, +cronie-1.4.8.ebuild, + metadata.xml: + Fixed "crontab -e" permission bug reported by Mike Gilbert (bug #365651) who + also provided a complete fix. Committed a fixed revision straight to stable. + Version bump (bug #374011). Added myself as new package maintainer. + +*cronie-1.4.6 (08 Nov 2010) + + 08 Nov 2010; Thilo Bangert +cronie-1.4.6.ebuild: + version bump + + 12 Aug 2010; Markus Meier cronie-1.4.4.ebuild: + amd64/x86 stable, bug #329695 + + 14 Mar 2010; Thilo Bangert -cronie-1.4.ebuild, + -cronie-1.4.1.ebuild, -cronie-1.4.3.ebuild, -cronie-1.4.3-r1.ebuild: + remove vulnerable versions + +*cronie-1.4.4 (06 Mar 2010) + + 06 Mar 2010; Thilo Bangert +cronie-1.4.4.ebuild: + security version bump (bug #308055) + + 03 Dec 2009; Markus Meier cronie-1.4.3-r1.ebuild: + add ~amd64, bug #290780 + +*cronie-1.4.3-r1 (01 Dec 2009) + + 01 Dec 2009; Thilo Bangert +cronie-1.4.3-r1.ebuild: + add version bump to push pam fix to users + + 29 Nov 2009; Thilo Bangert files/cronie-1.4.3-pamd: + fix PAM - bug #294631 + +*cronie-1.4.3 (20 Nov 2009) + + 20 Nov 2009; Thilo Bangert +cronie-1.4.3.ebuild, + +files/cronie-1.4.3-pamd: + version bump + +*cronie-1.4.1 (23 Aug 2009) + + 23 Aug 2009; Thilo Bangert -cronie-1.2.ebuild, + -files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch, -cronie-1.3.ebuild, + +cronie-1.4.1.ebuild: + version bump - remove old versions + +*cronie-1.4 (28 Jul 2009) + + 28 Jul 2009; Thilo Bangert +cronie-1.4.ebuild: + version bump + + 14 May 2009; Thilo Bangert cronie-1.2.ebuild, + cronie-1.3.ebuild: + fix LICENSE - bug #263598 + + 12 May 2009; Thilo Bangert files/cronie-1.2-crontab: + reduce chance of race condition - bug #98189 + +*cronie-1.3 (12 May 2009) + + 12 May 2009; Thilo Bangert +cronie-1.3.ebuild: + version bump + +*cronie-1.2 (17 Feb 2009) + + 17 Feb 2009; Thilo Bangert + +files/cronie-1.2-cron.deny, +files/cronie-1.2-crontab, + +files/cronie-1.2-initd, + +files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch, +metadata.xml, + +cronie-1.2.ebuild: + cronie - a vixie-cron fork by the fedora people diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest new file mode 100644 index 0000000..4eb8a79 --- /dev/null +++ b/sys-process/cronie/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX anacron-1.0-initd 596 SHA256 7ff283ee8b492929d33831461b72e872fe9d3a98344cf39af442f575875b0132 SHA512 2d194102ec0925e1cb99969cac5f69028e1e94afdec590a4292c23c1b87185894c1bae8c2d220223f79fc4fde3d56030f900b764f474fca235c8cbf5adcc182a WHIRLPOOL 5afc6503ce81bb8a802d460b4eb6526a54f6844a7311c950318821c6838b0f5c5974b1d1c4d9f894af92704e25d8653eca1943ff94e4a33a32d1415b0f056124 +AUX cronie-1.2-cron.deny 216 SHA256 4a857b2c58bb10d4aefbdd7d4a41710456a8cc27774c365e361ca5271128e0b8 SHA512 88b4bf039d5677e9b63fffa5b40bcfb15bd5fe3e76db6ef8dabe2c7b2fe9f7c45ef8cc0fc2087457f5ec364bcc7dee7548df5b98f1c88cbf9df495b12a601a04 WHIRLPOOL 2f02d1db5b2650ca63345445010853016f1d397aa45c1031d0518fff3702e3eb3ed52b3835fa22f8a637a53b4de193ac74aa3ca190fa9739f161760d11398f44 +AUX cronie-1.2-crontab 605 SHA256 369665b00a9f278fb57e6c2e285d6335b38970474d27e7563b68a65aa1045d4b SHA512 12bab43416f76102441be8af99696778e4bd13c704dcda22f7bc4c4f388a2163470c37b1e7d981d49d057b7ece4a1fa8d4c2f4a168db216ecadbe0a570c46905 WHIRLPOOL 440d2d5ae1cf2ed3b2d8bd472927f6136bd6339b8f7e71896cba300b78dff63d9e3e3a55e56754708710e8307b847279761604aaa9c19fa26eb524c02bac2019 +AUX cronie-1.3-crontab 833 SHA256 700714927dea9ed271924817863e9b45cb50b3dd650bd00e072f09aadc4c3684 SHA512 9c21d9ab6f7ae45f75b3f681abdfb043f1ba61c8522fb6cd2a6ffd32a628b3dc07c4011c1fbe43228016fe670d99a230ebdcac08d0ace12ec749cff4f2a85895 WHIRLPOOL 4c60338d73a6163812802b23377ec93dfe3a29339bd01d5f24fcd17ed4b749354d5660464d334c06b04de1cfd9540ba78d732695759fc0d8880904646030d984 +AUX cronie-1.3-initd 395 SHA256 292a7b20fe33bd027357475fea6aa1194afa7e5c1c47a85299db945b9d1c847e SHA512 e52ddbf1a7235aff7756478f807e5c10cccf729d9cbd52294db767b958a5640f3645f3f5784618b55aca302808755707d3eca667637c1f93a233aa83365f567f WHIRLPOOL 112e78802d59aac029d33e3ec8cb833b29417a13ab6212393f15f09b42906d56d92501ac8bad972e3fb91d9255067795b32f4fd0589cedfd2f337572cc2576c5 +AUX cronie-1.4.3-pamd 231 SHA256 c281c9b8fb4984e20142a7e099d7032192d5c2ca2eb02ece5eb4f73ca64593dd SHA512 32268d8b097e60eb039c023647ecd651b6940a8fe1587111ce0d49314bbb2de451214f98b7b703fd284e231c10bc4e616d4d0c63c107d9cdbc2bb470a17f2c3a WHIRLPOOL 171dbaa3a49aec2731d1cd78a1a4168369a1a0596b98049fd9c026ab9af54e97fdcf81416fa4fe8201c232dcdf891c4d3e81da20ddfa103eae458094c2095424 +DIST cronie-1.4.11.tar.gz 222665 SHA256 fd08084cedddbb42499f80ddb7f2158195c3555c2ff40ee11d4ece2f9864d7be SHA512 acf998642266f812dfa5a00737f72ae2d36dfab9edddd3d99a9f6545415f7f6dc980d1401ec8a39b865cf54336853f190d3c542be3281dc368e0d5bc5c7f3e5f WHIRLPOOL 243e145b25928d4cdca22f3c85a6aa9a99e8dca239684debf4fd382bdc25945123054ac0b54e609d882550aae08eda7d8202ab29a7f122b5555b0807666edb19 +DIST cronie-1.4.12.tar.gz 234214 SHA256 0f5c9bf32f352599451c4ca0d6bc076d19e73ecfa5a90b34ecfe47c918c8bafd SHA512 ff17c9a1ba39957727db390d28d21248f05414f55119094d99a646695698e1b148b920f3fc91e9733b862bc8ce226824d290fff51abe17410a0e63ab3b424865 WHIRLPOOL 61a6a7c3a660bbbb38ff2b7b700fe6fa84b1144d20d658e26f4cde522f6fc3faa6141f4cb176f78cfb22cfb50e17f2a945aeb382761ba2aa1b25e6e16ad20082 +EBUILD cronie-1.4.11-r1.ebuild 2078 SHA256 811837bb2f2129c644a2dbe222e57b9342080f297f32917115ea36377ae6ad05 SHA512 f786deb1daa02068c9ebbe2377f7f69f151d9c39dfbdaf0c1cccc5ee506428a8a3efae5a3cad2bee76dcbc03314f1174eb2cf7c43915cabc2c727fae65c6a724 WHIRLPOOL 500a82a0e357ec4a6dedadb487b77508a443cfad7fa9dfb8f63942943b3b4f523c25cbea22c4a60bb984e2f1e37edff06e9ab5a99016221ef31c253d86bf6487 +EBUILD cronie-1.4.11-r3.ebuild 2022 SHA256 fa3a7d65eebed1c55c83940feb0850bc7b6cf606d12095f400df81fdeb1218d5 SHA512 08a3da61c64a97a80440e36b52b363650d508fc93c5136815ce7888584ebe1076fe4e833fbac948ca05aa7a29798745b7f93c4367abedfa59d11fa79b97fcebf WHIRLPOOL cf52decc671df129a9032ca5b66f21d4feb7ab0ff57e1719887bc4e8d0fb395570069ba0d75ad4aecd6828be73f30ce121e62e35471053a65f2f84d70b854ba1 +EBUILD cronie-1.4.12.ebuild 2018 SHA256 8cf80cc02d4334d26d9ba6746edaede864a5f5f973370aa481d66ab8a4fff82e SHA512 f7ab0d8d024c1288184cc82a3d1aebae6381c624628628ab7a696a5c6b50d65dca739c18f7e087bfd0a3d7d9f379c40f88d3d37b1110431d17896d43ff751736 WHIRLPOOL a145281bf3a96c227beeeecf0fa4d87cecded279f81f6f4fd4d7a0d5d1a7183df922fb65bd09161f615cb43b3c2370379816b2332010876be172305434234b93 +MISC ChangeLog 9604 SHA256 728cdafad88615bce67ea3cf4474734d60877b58d37ea01d4a45c941c3662720 SHA512 01de3be8ee6fea6004437d4b3e64ed509b61edd892a111d52794a127f95b45bb6bbbb28a81bfd82585bd4fae249929d34fd265a2eb2ce8eddba6b79bb843b324 WHIRLPOOL 68d7b3affa56231fa1e258ce8d1a044cf9d529b6c603996f23481002ca5370be135ab6488088c3d8beb14c65bbdb16ffa21501cfd2b06ec5ace621ff29bd3149 +MISC metadata.xml 799 SHA256 fe8f004016da48f9eaf570c4777bd407f210d468e8779d8db538b5fa1f0dad7d SHA512 9bae8c4edf33af2e6d25aa9db003d40525895dc21ca3388a303a7bba851a0bbe46ac0d254e0aa9c84da8f5c1d2b0e0042e1e317f717c1bd53fe388849366da82 WHIRLPOOL a9e7f4565bc909bc44dc4b676edc48794e8da7235a33b9289fcf53de65fb3406662560588d80fbed90873a9a56fcf00a0ec03fd80325ec2c8e56b9a38b66e01a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iEYEAREIAAYFAlSi4/IACgkQkKaRLQcq0GLj6QCdGet4MAvHWrXPp0NpD/MzDZPP +YSQAmwUjJ1Ufh7dAu0oplt0Hpjh7T+HZ +=9I8w +-----END PGP SIGNATURE----- diff --git a/sys-process/cronie/cronie-1.4.12-r99.ebuild b/sys-process/cronie/cronie-1.4.12-r99.ebuild new file mode 100644 index 0000000..839d664 --- /dev/null +++ b/sys-process/cronie/cronie-1.4.12-r99.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/cronie-1.4.12.ebuild,v 1.4 2014/12/30 17:42:09 maekke Exp $ + +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 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~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" + +src_prepare() { + epatch "${FILESDIR}"/0001-add_limits_h_and_MAXNAMLEN.patch +} + +pkg_setup() { + enewgroup crontab +} + +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 + + sed s:sysconfig/crond:conf.d/cronie: contrib/cronie.systemd \ + > "${T}"/cronie.service + systemd_dounit "${T}"/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 contrib/* +} + +pkg_postinst() { + cron_pkg_postinst +} diff --git a/sys-process/cronie/files/0001-add_limits_h_and_MAXNAMLEN.patch b/sys-process/cronie/files/0001-add_limits_h_and_MAXNAMLEN.patch new file mode 100644 index 0000000..fdf721b --- /dev/null +++ b/sys-process/cronie/files/0001-add_limits_h_and_MAXNAMLEN.patch @@ -0,0 +1,15 @@ +--- src/database.c 2015-01-10 13:17:11.253148769 +0000 ++++ src/database.c 2015-01-10 13:18:45.491148769 +0000 +@@ -38,6 +38,12 @@ + #include + #include + #include ++#if ! defined(__GLIBC__) && ! defined(__UCLIBC__) ++#include ++ ++/* match gnu to posix */ ++#define MAXNAMLEN NAME_MAX ++#endif + + #ifdef WITH_INOTIFY + # include diff --git a/sys-process/cronie/files/anacron-1.0-initd b/sys-process/cronie/files/anacron-1.0-initd new file mode 100644 index 0000000..6462b90 --- /dev/null +++ b/sys-process/cronie/files/anacron-1.0-initd @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/anacron-1.0-initd,v 1.4 2014/03/04 00:17:58 polynomial-c Exp $ + +# anacron forks itself when -d gets omitted. So s-s-d fails to create a valid +# pidfile. DO NOT remove -d from command_args and let s-s-d start anacron +# in background! + +command="/usr/sbin/anacron" +command_args="-d -s -S /var/spool/anacron" +pidfile="/var/run/anacron.pid" +command_background="true" + +depend() { + use clock logger + need localmount +} 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 0000000..f909922 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-cron.deny @@ -0,0 +1,5 @@ +# $Id: cronie-1.2-cron.deny,v 1.1 2009/02/17 22:09:35 bangert Exp $ +# 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.2-crontab b/sys-process/cronie/files/cronie-1.2-crontab new file mode 100644 index 0000000..e714d91 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-crontab @@ -0,0 +1,15 @@ +# for cronie +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/cronie-1.2-crontab,v 1.2 2009/05/12 09:10:59 bangert Exp $ + +# 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-crontab b/sys-process/cronie/files/cronie-1.3-crontab new file mode 100644 index 0000000..b14eeda --- /dev/null +++ b/sys-process/cronie/files/cronie-1.3-crontab @@ -0,0 +1,16 @@ +# for cronie +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/cronie-1.3-crontab,v 1.2 2014/04/18 13:24:55 polynomial-c Exp $ + +# 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 +# if anacron is not present +59 * * * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.hourly +9 3 * * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.daily +19 4 * * 6 root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.weekly +29 5 1 * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root [ ! -x /etc/cron.hourly/0anacron ] && { 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 0000000..138530f --- /dev/null +++ b/sys-process/cronie/files/cronie-1.3-initd @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/cronie-1.3-initd,v 1.3 2014/03/04 00:17:58 polynomial-c Exp $ + +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 0000000..e82be8d --- /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/metadata.xml b/sys-process/cronie/metadata.xml new file mode 100644 index 0000000..79ee246 --- /dev/null +++ b/sys-process/cronie/metadata.xml @@ -0,0 +1,20 @@ + + + +cron + + polynomial-c@gentoo.org + Lars Wendler + + + 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 + + + Install the periodic anacron command scheduler. + Enable inotify filesystem monitoring support. + + -- 2.0.5