[PATCH] fix sys-process/cronie compilation under gentoo+musl
daggs <[email protected]>
| Newsgroups | gmane.linux.gentoo.hardened |
|---|---|
| Message-ID | <trinity-305aaf64-aebc-4fda-9d60-3c516e75288b-1415997832907@3capp-mailcom-bs15> |
Greetings, I'd like to offer the following patch that fixes compilation errors of sys-process/cronie on gentoo+musl by defining a missing definition. Signed-off By: [email protected]
cronie.patch
(text/x-patch, 28.6 KB)
commit 8469ddf591582e5e391f4ee67230431f861bf8aa Author: daggs <[email protected]> Date: Fri Nov 14 20:23:22 2014 +0000 fix cronie issue diff --git a/sys-process/cronie/ChangeLog b/sys-process/cronie/ChangeLog new file mode 100644 index 0000000..c5f66fd --- /dev/null +++ b/sys-process/cronie/ChangeLog @@ -0,0 +1,258 @@ +# 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.58 2014/09/22 04:11:56 polynomial-c Exp $ + +*cronie-1.4.12 (22 Sep 2014) + + 22 Sep 2014; Lars Wendler <[email protected]> +cronie-1.4.12.ebuild: + Version bump. + + 07 Sep 2014; Jack Morgan <[email protected]> cronie-1.4.11-r3.ebuild: + sparc, ppc, ppc64 stable + + 10 Aug 2014; Sergei Trofimovich <[email protected]> cronie-1.4.11-r1.ebuild, + cronie-1.4.11-r3.ebuild: + QA: drop trailing '.' from DESCRIPTION + + 05 Jul 2014; Mikle Kolyada <[email protected]> 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 <[email protected]> -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 <[email protected]> +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 <[email protected]> cronie-1.4.11-r1.ebuild: + Enable inotify by default + + 04 Mar 2014; Lars Wendler <[email protected]> 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 <[email protected]> -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; <[email protected]> cronie-1.4.11.ebuild: + Add ~ppc64 keyword wrt bug #497394 + + 11 Jan 2014; <[email protected]> cronie-1.4.11.ebuild: + Add ~ppc keyword wrt bug #497394 + + 10 Jan 2014; <[email protected]> cronie-1.4.11.ebuild: + Add ~ia64 keyword wrt bug #497394 + + 10 Jan 2014; <[email protected]> cronie-1.4.11.ebuild: + Add ~alpha keyword wrt bug #497394 + + 09 Jan 2014; Sergey Popov <[email protected]> cronie-1.4.11.ebuild: + Add ~mips keyword, wrt bug #497394 + + 07 Jan 2014; Jeroen Roovers <[email protected]> cronie-1.4.11.ebuild: + Stable for HPPA (bug #497394). + + 23 Dec 2013; Agostino Sarubbo <[email protected]> cronie-1.4.11.ebuild: + Stable for sparc, wrt bug #490368 + + 29 Nov 2013; Markus Meier <[email protected]> cronie-1.4.11.ebuild: + arm stable, bug #490368 + + 04 Nov 2013; Sergey Popov <[email protected]> cronie-1.4.11.ebuild: + Stable on amd64 and x86, wrt bug #490368 + + 04 Nov 2013; Lars Wendler <[email protected]> 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 <[email protected]> -cronie-1.4.9-r4.ebuild, + +cronie-1.4.11.ebuild: + Version bump (bug #480434). Removed old. + + 03 Aug 2013; Agostino Sarubbo <[email protected]> cronie-1.4.9-r5.ebuild: + Stable for sparc, wrt bug #476030 + + 14 Jul 2013; Agostino Sarubbo <[email protected]> cronie-1.4.9-r5.ebuild: + Stable for arm, wrt bug #476030 + + 07 Jul 2013; Agostino Sarubbo <[email protected]> cronie-1.4.9-r5.ebuild: + Stable for x86, wrt bug #476030 + + 07 Jul 2013; Agostino Sarubbo <[email protected]> cronie-1.4.9-r5.ebuild: + Stable for amd64, wrt bug #476030 + + 14 Feb 2013; Lars Wendler <[email protected]> -files/cronie-1.2-initd, + -cronie-1.4.8.ebuild: + Removed old. + + 06 Feb 2013; Agostino Sarubbo <[email protected]> cronie-1.4.9-r4.ebuild: + Stable for sparc, wrt bug #453364 + + 30 Jan 2013; Agostino Sarubbo <[email protected]> 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 <[email protected]> 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 <[email protected]> +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 <[email protected]> -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 <[email protected]> cronie-1.4.9-r1.ebuild: + Stable on amd64, wrt bug #453364 + + 21 Jan 2013; Sergey Popov <[email protected]> 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 <[email protected]> -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 <[email protected]> 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; <[email protected]> cronie-1.4.8-r1.ebuild: + Toggling SELinux support through USE=selinux (bug #403293) + + 13 Feb 2012; Lars Wendler <[email protected]> cronie-1.4.8-r1.ebuild: + Don't add anacron to cron.daily + + 13 Feb 2012; Lars Wendler <[email protected]> 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 <[email protected]> +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 <[email protected]> cronie-1.4.8.ebuild: + Arm love #388713 by Norman Shulman. + + 24 Aug 2011; Markus Meier <[email protected]> cronie-1.4.8.ebuild: + x86 stable, bug #380057 + + 22 Aug 2011; Tony Vroon <[email protected]> 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 <[email protected]> cronie-1.4.8.ebuild: + Added ~sparc keyword. + + 10 Jul 2011; Lars Wendler <[email protected]> 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 <[email protected]> -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 <[email protected]> +cronie-1.4.6.ebuild: + version bump + + 12 Aug 2010; Markus Meier <[email protected]> cronie-1.4.4.ebuild: + amd64/x86 stable, bug #329695 + + 14 Mar 2010; Thilo Bangert <[email protected]> -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 <[email protected]> +cronie-1.4.4.ebuild: + security version bump (bug #308055) + + 03 Dec 2009; Markus Meier <[email protected]> cronie-1.4.3-r1.ebuild: + add ~amd64, bug #290780 + +*cronie-1.4.3-r1 (01 Dec 2009) + + 01 Dec 2009; Thilo Bangert <[email protected]> +cronie-1.4.3-r1.ebuild: + add version bump to push pam fix to users + + 29 Nov 2009; Thilo Bangert <[email protected]> files/cronie-1.4.3-pamd: + fix PAM - bug #294631 + +*cronie-1.4.3 (20 Nov 2009) + + 20 Nov 2009; Thilo Bangert <[email protected]> +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 <[email protected]> -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 <[email protected]> +cronie-1.4.ebuild: + version bump + + 14 May 2009; Thilo Bangert <[email protected]> cronie-1.2.ebuild, + cronie-1.3.ebuild: + fix LICENSE - bug #263598 + + 12 May 2009; Thilo Bangert <[email protected]> files/cronie-1.2-crontab: + reduce chance of race condition - bug #98189 + +*cronie-1.3 (12 May 2009) + + 12 May 2009; Thilo Bangert <[email protected]> +cronie-1.3.ebuild: + version bump + +*cronie-1.2 (17 Feb 2009) + + 17 Feb 2009; Thilo Bangert <[email protected]> + +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..5d56242 --- /dev/null +++ b/sys-process/cronie/Manifest @@ -0,0 +1,33 @@ +-----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 2027 SHA256 89028d39a81c25a04482217003d9d05fae238c0be6875475597f36b2da7225af SHA512 998994af5555a89c31ad0bb0e4994e1738a7a401017bddfbe2ad0466644a961962b648a1a59e215a38aea8f2e92533d7b101af0b440ddcc06e59183a64102499 WHIRLPOOL 8c58fe3c3a3d02f69da7e5b03eb3edc2a37dce4e58b95ab658b3cf630742d9a645f7a126dc1d82a930d757eb9bb7f477ca6ad4fc4a94d8da934678473f69954a +MISC ChangeLog 9306 SHA256 75345e030340a10558185cb7eb77b63b8bdce5e3cff630f50247c3ddbb9d27ac SHA512 7736b7139f1f5b5507de49dcab8a541173cf8def79305eb8b4f4789ad6e3a736310eee3f32a0d2fa362c22bf79207efd792297171682006b32d4c56b2ee8e2b7 WHIRLPOOL 56f376ccb19072f452a103ee71bb3e21a95b30627137b1317a77d76ff0e474c2b1ddd79b4b33fdf7d735bf3c6aafd1e52b17d19556c4a73dd326313181a179fe +MISC metadata.xml 799 SHA256 fe8f004016da48f9eaf570c4777bd407f210d468e8779d8db538b5fa1f0dad7d SHA512 9bae8c4edf33af2e6d25aa9db003d40525895dc21ca3388a303a7bba851a0bbe46ac0d254e0aa9c84da8f5c1d2b0e0042e1e317f717c1bd53fe388849366da82 WHIRLPOOL a9e7f4565bc909bc44dc4b676edc48794e8da7235a33b9289fcf53de65fb3406662560588d80fbed90873a9a56fcf00a0ec03fd80325ec2c8e56b9a38b66e01a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJUH6GNAAoJEPiazRVxLXTF7QEP/1HuSePLMr1mqk2uFebZHsUI +q8mcLIT7B3PWxdNHuDoxCfKbn3jf53altGDftJS3Ffeoc+O/nEDzbyYmRTGAs0Fg +1fDw68gudMvNHuh5a8AQINMPGkyDTTtjAekDSXrYKwZlfFliaUUOU2njUS6/QTA7 +jRGzfV7llVwp5QRRv4A48tq4DxlxCoP6OHb3d95NmkQwuw+XjmGTTc5S7SR/+Jin +ltTUg+k+RaNZo3sG5+6kHMYcazlfPzSjlHhWhcqGXdysmh46drpffslcZKC1rab6 +uEmeU1hchFYb4MDcq4/aMQ6olrPX+z7RKw8dOh86S44gE4dlVRv3Z8J7151Xb9Rw +s/LNeLRR4inNoNLCcN05dmukHgVFe3DF1XM/15WhUT8HgZB9xWnyQWwLHB3hZTgb +PZJbZ81dLeAFnC2ELcxI0iRw4KQqfMQ2BlLR1/frH/WMzCn9Uv5wEb940AVF1S4O +60AkfV4i76ZmzXrmtUeb8/DEAYMMduft1Bqw9qKpurPMx65dFyLqzqRrHS2eXUXH +eLPzxRpcgLXeO9j00uCyU4gLdR2Rs7IQWInHkMtnXQGPe4FLGRz+H8bUztagJpIP +qA1FUT4R59jPtBMcbuSX5yYotpr9SJyxAr9VLelJVGVYI2xf8eiTNqAkgLDQdXaP +lMuewXO2TM0e8lhnMvlm +=sRWb +-----END PGP SIGNATURE----- diff --git a/sys-process/cronie/cronie-1.4.11-r1.ebuild b/sys-process/cronie/cronie-1.4.11-r1.ebuild new file mode 100644 index 0000000..1ba98e0 --- /dev/null +++ b/sys-process/cronie/cronie-1.4.11-r1.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.11-r1.ebuild,v 1.3 2014/08/10 20:11:30 slyfox 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 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}"/musl-fix_missing_define.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.2-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 + keepdir /var/spool/anacron + fowners root:cron /var/spool/anacron + fperms 0750 /var/spool/anacron + + insinto /etc + + doins contrib/anacrontab + newinitd "${FILESDIR}"/anacron-1.0-initd anacron + + # Install this without execute permission. + # User can enable it with chmod +x. + insinto /etc/cron.hourly + doins contrib/0anacron + fi + + dodoc AUTHORS README contrib/* +} + +pkg_postinst() { + cron_pkg_postinst +} diff --git a/sys-process/cronie/cronie-1.4.11-r3.ebuild b/sys-process/cronie/cronie-1.4.11-r3.ebuild new file mode 100644 index 0000000..5ff74cf --- /dev/null +++ b/sys-process/cronie/cronie-1.4.11-r3.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.11-r3.ebuild,v 1.4 2014/09/07 15:27:13 jmorgan 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" + +pkg_setup() { + enewgroup crontab +} + +src_prepare() { + epatch "${FILESDIR}"/musl-fix_missing_define.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 + + 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/cronie-1.4.12.ebuild b/sys-process/cronie/cronie-1.4.12.ebuild new file mode 100644 index 0000000..3011c4e --- /dev/null +++ b/sys-process/cronie/cronie-1.4.12.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.1 2014/09/22 04:11:56 polynomial-c 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" + +pkg_setup() { + enewgroup crontab +} + +src_prepare() { + epatch "${FILESDIR}"/musl-fix_missing_define.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 + + 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/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/files/musl-fix_missing_define.patch b/sys-process/cronie/files/musl-fix_missing_define.patch new file mode 100644 index 0000000..64727be --- /dev/null +++ b/sys-process/cronie/files/musl-fix_missing_define.patch @@ -0,0 +1,20 @@ +--- a/cronie-1.4.11/src/database.c 2014-11-14 13:58:20.990000000 +0000 ++++ b/cronie-1.4.11/src/database.c 2014-11-14 13:59:26.190000000 +0000 +@@ -38,6 +38,7 @@ + #include <sys/stat.h> + #include <sys/types.h> + #include <unistd.h> ++#include <limits.h> + + #ifdef WITH_INOTIFY + # include <sys/inotify.h> +@@ -55,6 +56,9 @@ + /* reasonable guess as to size of 1024 events */ + #define BUF_LEN (1024 * (EVENT_SIZE + 16)) + ++/* match gnu to posix */ ++#define MAXNAMLEN NAME_MAX ++ + static void overwrite_database(cron_db *, cron_db *); + + static void process_crontab(const char *, const char *, 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cron</herd> +<maintainer> + <email>[email protected]</email> + <name>Lars Wendler</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> +</pkgmetadata>