summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2013-03-24 14:06:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2013-03-24 14:06:29 +0000
commitf2d978c3a81102fc9e631aae9f53809c9c409416 (patch)
tree767b9496fb346ee2e0a17d337946aa5f6d258621 /sys-process
parentversion bump (diff)
downloadhistorical-f2d978c3a81102fc9e631aae9f53809c9c409416.tar.gz
historical-f2d978c3a81102fc9e631aae9f53809c9c409416.tar.bz2
historical-f2d978c3a81102fc9e631aae9f53809c9c409416.zip
Remove old; version bump.
Package-Manager: portage-2.2.0_alpha166/cvs/Linux x86_64 Manifest-Sign-Key: 0x1CD13C8AD4301342
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/fcron/ChangeLog10
-rw-r--r--sys-process/fcron/Manifest26
-rw-r--r--sys-process/fcron/fcron-3.0.6-r1.ebuild264
-rw-r--r--sys-process/fcron/fcron-3.0.6-r5.ebuild201
-rw-r--r--sys-process/fcron/fcron-3.1.2.ebuild (renamed from sys-process/fcron/fcron-3.1.0.ebuild)18
-rw-r--r--sys-process/fcron/files/fcron-3.0.6-buffer-overflow.patch16
-rw-r--r--sys-process/fcron/files/fcron.init.250
-rw-r--r--sys-process/fcron/files/fcrontab5
8 files changed, 39 insertions, 551 deletions
diff --git a/sys-process/fcron/ChangeLog b/sys-process/fcron/ChangeLog
index ee60b7ef3fe2..df710fd8b3c5 100644
--- a/sys-process/fcron/ChangeLog
+++ b/sys-process/fcron/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-process/fcron
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v 1.109 2013/03/03 16:28:06 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v 1.110 2013/03/24 14:06:20 flameeyes Exp $
+
+*fcron-3.1.2 (24 Mar 2013)
+
+ 24 Mar 2013; Diego E. Pettenò <flameeyes@gentoo.org> +fcron-3.1.2.ebuild,
+ -fcron-3.0.6-r1.ebuild, -fcron-3.0.6-r5.ebuild, -fcron-3.1.0.ebuild,
+ -files/fcron-3.0.6-buffer-overflow.patch, -files/fcron.init.2,
+ -files/fcrontab:
+ Remove old; version bump.
03 Mar 2013; Wolfram Schlich <wschlich@gentoo.org> files/crontab,
metadata.xml:
diff --git a/sys-process/fcron/Manifest b/sys-process/fcron/Manifest
index 51423ed51cfe..7bb83e6aa28e 100644
--- a/sys-process/fcron/Manifest
+++ b/sys-process/fcron/Manifest
@@ -1,16 +1,24 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX crontab 825 SHA256 2ce36f32bf93976b2f5f3122aad665c2d736ec77e527efa7c28e7e5c9c24dcc7 SHA512 008f4f0eb03ed8fe650ad0dae2a3bd913a7d5a92be42d2ad84f33c55a2b24011325e45325833aba144e2abe72261ebef4cf77daea77575eb3475cb51c9ace507 WHIRLPOOL 9a8764c1678211453b5f71472e30da8602830d7d48466b3cb8c34312399decdc552b4777eff5fcf74ebb384ce30c6f897f58c7e495fa5989f7474fddbbd7245f
-AUX fcron-3.0.6-buffer-overflow.patch 457 SHA256 8452d52d4447ecaeca37315dcfe7966f734a89ff9a106ff9ae870ea7158d0263 SHA512 d124f370419a622964702df5c3de0990ed0c88c8ff04c7143659ec32b34cfe981c8d7f8f062dc1787b9e0bbfd0052c8aa590887eb0dfcd6bcbd0fcb425251361 WHIRLPOOL 7b17fddc8ccc5a5ec55befd49fd1a49c1063e9fa34812a29079a698233b0bed1de4b3b1e74191ddc81540e6982caae12208e0c4dd417f87e98c32a27f39c0970
AUX fcron-3.1.1-noreadline.patch 716 SHA256 1c116e76b39895c4f86772011b7e386a529acf5b6e2385aed3e1b0a7421eecbf SHA512 152aaa299abd8ec546dc73ca7527d3162c14cec47cc670d82c7312f0fe64545a2c0c9ed82ae79ee4fe028ca009d37f6f4843e4c2ec6e6ee7cf7e8b97dc61ec71 WHIRLPOOL 4cb21ff9330cbdba72acf129c0c0075a2c063f57093965bad742801daca60d0a3ec522e895ac06ca68c3034667005623543e74775846d23f636e7810fa52a9b5
-AUX fcron.init.2 1562 SHA256 b8bd49ce367ed30e1f5d7f6eabfb8cbff14f1a7bc486f0816c53a64c2dc0ac6c SHA512 011ff7c3dc74b3df5729405f78ec5d948db0acfc809ab561bf176475a01de2ed229727da1962a6bab49d7ec8e95821bf3010ae0cd2891460beb1f5daa24d45f4 WHIRLPOOL 1757f7312463431e9837ea3ec2e7d9e40c058ab338d9d2c3524cba0650541b5de1686104dc6e5dbfc116dc2dd5975d81111351cb68d0077e407272671bb496a4
AUX fcron.init.3 1371 SHA256 ceada7a1c9e8b62cff506bc94a1813706c7de1ed23daf9c3450ad549df4fafb7 SHA512 3ae8caea11c7e05d74e601d3f1a37d21d3f5fb8958c517a0e780db2cc0333601f8911892b5a700e2ea156960bcd6ee6afbe023553c72066fd908e06a33a89470 WHIRLPOOL 0a69a211edabc10859566208f37a2a8261d6f232ceab171081cbeeb8aab6d63fd78de6f21c9cfcd49819c410d98ac4fc7dbbd28157796ebfd5975f32c60186e8
-AUX fcrontab 332 SHA256 ab5c104248c51471d61e3312f52bf738d74ab3319b8c01cd0cc5c74458fb8fcc SHA512 1c6a8f0554dd4ffbdccc3ff75451e70508bc6fe5d5269f5d022301811457b76402b2bbffbdb1e39b847a48ea0537595858893357e0a46b7e0ba05351dcb9a27a WHIRLPOOL ede39398061d983adb3c4a01790132096e306561cd918f34d83ac35cd4e78eb31bf659d2cb58eda618d9e98146ae04a342178fda4e91cc9422dcdabdc869bcbf
AUX fcrontab.2 338 SHA256 542d735935b46561a92ea36ebf33a91dd11ddc01a8576202e2474161d87e6671 SHA512 365d950f4baabd748478d1f5bf4343b6a95f0d8193d405f37ed62d70ded41daf7127c9e5b2a9d09750c7c6900b2f6109b80ecbf2902e98429de2991a3fb95464 WHIRLPOOL e7506faacf1ffa569ebaddf5dfddc4f78de5d4cada825601bb5f8dc2d61537d123d75c42d5f237c448ecd131760300d2b058a967c35cd51005bee0552382e2be
-DIST fcron-3.0.6.src.tar.gz 552805 SHA256 9c36b1bc6c931ec8b4ef55fef569ba17004b32f3ae0a72e3cc4ec4d15bee30a1 SHA512 53dfc2f57820392e4d32230d9abeaa3ec8a2c4aac6fc4888a266553806e7c31cecc655ff8cd5dbd635e40903cf649962e752e5ba6a5bd7728c79bc42771dfb99 WHIRLPOOL 49ba19f87f3190b0a04f75c48f6aaeea8572fc75ec9bc643a07817743c51ed3c23e2c606ee731d9b2994f04b9af4c8cce5ec0efdb20b5b0345b9acff519994b5
-DIST fcron-3.1.0.src.tar.gz 589052 SHA256 3b6747c02a4b9b2e12c8633742415c3d12cb0b51a7ce1c01a49e991b782907a9 SHA512 16373fe1558f1feabdfb2f7dad8d1ee3c59cd9320dddbe8510d901e81d93fb30cf5a8dca359d8c6968709548c4ae7a30b6fbb19f15df5146c2a0807950619053 WHIRLPOOL 2db3149cda667633ed582882743443ff8b28b4be5e275404d4b2bafeedbcd9cc1215cea2ffe766b9a698da5f061f2b1eca6d46d0a12153425e51ba496eb6c889
DIST fcron-3.1.1.src.tar.gz 597094 SHA256 449e21f09f80bd419d87165ba15dad94ad8ab215b7946fcf805b5340f019e952 SHA512 ce20f0aee72521f809af2be13ba797e0f6ac65f12f7797e67a4db56c3b111d24c499c135ec1c948d8385ded415da25a258daf90051a75f603f7322c23dbca945 WHIRLPOOL e3f4d056dd9926629c7ea36de2d5d768f510f256c6cdf0b051baaf5fda776d6295dd8a3213c32765d871cd6bdfc8bbb0bc7b5b0ab1da42c78441e19458594abe
-EBUILD fcron-3.0.6-r1.ebuild 9339 SHA256 5d9a2602fb395762675cbd1810d4c8035cd0e254637394e6d887223b8f6af4aa SHA512 bd8d153cb243124794e41a814d71dae79576f72d4dd5b4ff1d02e977cf33c00a0aa25f284844b51ed46c443d79f5c16e2374c6be411e0ba0343d105de2f8ed32 WHIRLPOOL 857d6887fc56577ca465c0c4a8e56d4411994adb45bdb477590450219b65ebc4dd5bc484a816716528beec6e82b509510449d217e3c7afad5dc457f1442d1d80
-EBUILD fcron-3.0.6-r5.ebuild 5624 SHA256 fcd569522cda177e474590e5303107e34e58510b21a16b84c80ead11aec3e1d8 SHA512 bc59e05955543294d3f205029c1b9f662e29f5beaf16cd89b050d7681026977e564c5def995fdc1fae3a5eca97c183b3f58429c0a87f803b0b87ab014d8aeabe WHIRLPOOL df097587e4925d39fa95d2f76c351a26ce6f14b4fc29120160b27fc3abded5062e1fcb805160e181ac52f2c880437c3d788200b923ad4fccf2ae17058bcec6b8
-EBUILD fcron-3.1.0.ebuild 5571 SHA256 d9b14f302caa70cf94548ffbf585c8e75a20beeb7ef53bc8572c2873cb486c69 SHA512 c7b547aa655f837277372fd1d1fb8661c478d9a277bb59b6a354a067aedbe2eb2db47af33295b684ce4477a161699ce51c2813c2fe75f6c235763d46a97198b5 WHIRLPOOL 2c8bc68fadfc41b0e00a9d02d20d45938783f4888797ebf6adfb6943cf06dd1426a2d11daddc084e902bb429410e52f93c67e4fc60dcd0336e4eaafebf826726
+DIST fcron-3.1.2.src.tar.gz 592409 SHA256 1c9299baab86e2b141031193c98ccd2e1b52d97a023b45a9e80266372ab11a5d SHA512 14aec35031449bb8abb81bee781215a09a6cd1d8e08a002ca391ea84c05b9c1cd07ef383e4fc3ee4ae928b60ad75f3f91114a41336110283a07fab64dc770503 WHIRLPOOL 0ec40e9921c187d87247a2bd5b0f807dda6a780e313608ba5c0933d1c470313b9db7f6d5b0ff15b7a853e966bb738c4bbac1c80a54541f402c2c51044f53cca9
EBUILD fcron-3.1.1.ebuild 5731 SHA256 91a86de81586ab63e4fe4de2bf052dc79b3b9cbb92698336bf318b3b78ac84bb SHA512 d9993825427509004ef539bbd624826f952f4bac0b61031c9a20f2e2fd5211fbac0341622aed2b8652f5563f8a7f0197779cb369bce3dfbbf3c2851a2fbf219e WHIRLPOOL fb8f1aad048faf08c49eb23913f39afc140df5c6bbc6bba498a8832604ac577c4f4ca771f350c0c282dd6cb529fbd702a73f46f26707bd2e93449da1ef606085
-MISC ChangeLog 24165 SHA256 1c1cc5153787b0024165cb3587fa7698fa87d93a6f04fe58435c851d87191864 SHA512 e32da0c2cb3585a81d2619413f153cd4f329911a36018498b3152e0b0a2c01ae17ef471e24def542e6eba4c432f46c356045bf755e038901e88395212a9b8781 WHIRLPOOL 88d6bba037b4d82f63c1e1e27dcf71a2d4f33071ee18c8f7dc795923294b2d70b3f5f0b8f082f3577d5ca6bcac89c77b387c0e7de2ee6e51a6b0557d844ff64d
+EBUILD fcron-3.1.2.ebuild 5751 SHA256 cf19dec2edb5dfbc5661f48ed88299d5e9da09569651c19d214a53279457cf21 SHA512 05adb286d8603cf0e0319439ebfd0d478e39ac3ac5e3af3a30eb44a123aaaeaeb5b46439b74a70977fca8fff3b1dce550b218c62e11bc262ea3e5087a98d9026 WHIRLPOOL a06b1a6ee145ca9fd94c0961d766c528f8aef3b4471442d09ed7d4393c4897c0655241f1369036d1a891f4615b654ac8eb7e43e351f79685d3e4b98c1f8f86b3
+MISC ChangeLog 24455 SHA256 f75f278d4b7953ea9f75fe8f72c24b62c69e19467cbaa08003f21106dfa55cc9 SHA512 377153fa5701c1d5fd10bb5cae4d1091b31ea81126b4cabc3eed42eb9289f5cff21374e3bedc3a08a2fe9cf841eed70e6d6cc092a05fedb21e1f4e897b741dd5 WHIRLPOOL c4092d66e9b521e8b8ec27a83cbdb113361745d1894a51770c1a916f04f24c9301af0003848bbfb9de193901f0c2b0c8b6a559e88214fb357332a9e5101388f9
MISC metadata.xml 977 SHA256 27a14ab853169054a1ae428784362efbc0b910552fb2285a21cc494ede1a6f7f SHA512 c868c1ae8fbb7776ee26959100962fcc4dd3027a8c935ad5a9ca5f516b49c1f85ea1277431d59dbc755c0d265bb529997ef095828386b24acfaeeb9c77537669 WHIRLPOOL 1702d1cbdb454fe15bb52aaebd46ace8926cbee8da36f68b44d228fbb082009312ba9bba325cf921be5fe42441b49d7086d89fddbafc1a36f48037b16c037a6e
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRTwhkAAoJEBzRPIrUMBNCbRwIAJGaY3Uv/yl3BFQ+jlRuz7S0
+R0wY8WoCem8DLfxR7sFyByL7scTeqqSgWDy4GFBZUKeukp82VRtNtLUsznECMsXj
+bfIGPpvXqYAjKpCOMJA6Bp2NBMjA0+81eq/KIQhya+CHBcxdaqyN7/nbILve/IXK
+rrdKCm+xMCz7Jz+3WgrzTdsJqC3gmWky+DoWyfgKe2F+KR8NlvCscSF1YCaqFIT5
+K1zYc6tjm/Bo4WmTvMFKzJo9aw5N5ZRTFKVrrCFdfLIsrvquanDi8mGn50mgxSLF
+PTOPwNHVQY85m8IIMbEIRqHz0XJF8dHr/ifEe//hqe5jYs+P/dVYt00SUKyxJsU=
+=NJLh
+-----END PGP SIGNATURE-----
diff --git a/sys-process/fcron/fcron-3.0.6-r1.ebuild b/sys-process/fcron/fcron-3.0.6-r1.ebuild
deleted file mode 100644
index e0945a59c8ff..000000000000
--- a/sys-process/fcron/fcron-3.0.6-r1.ebuild
+++ /dev/null
@@ -1,264 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.6-r1.ebuild,v 1.11 2013/01/20 13:10:30 ago Exp $
-
-inherit cron pam eutils flag-o-matic user
-
-MY_P=${P/_/-}
-DESCRIPTION="A command scheduler with extended capabilities over cron and anacron"
-HOMEPAGE="http://fcron.free.fr/"
-SRC_URI="http://fcron.free.fr/archives/${MY_P}.src.tar.gz"
-
-LICENSE="GPL-2"
-KEYWORDS="amd64 arm hppa ia64 ~mips ppc sparc x86 ~x86-fbsd"
-IUSE="debug pam selinux linguas_fr"
-
-DEPEND="selinux? ( sys-libs/libselinux )
- pam? ( virtual/pam )"
-
-# see bug 282214 for the reason to depend on bash
-RDEPEND="${DEPEND}
- app-shells/bash
- >=app-misc/editor-wrapper-3
- pam? ( >=sys-auth/pambase-20100310 )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup fcron
- enewuser fcron -1 -1 -1 fcron
- rootuser=$(egetent passwd 0 | cut -d ':' -f 1)
- rootgroup=$(egetent group 0 | cut -d ':' -f 1)
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # respect LDFLAGS
- sed -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed"
-
- sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' script/check_system_crontabs.sh || die
-}
-
-src_compile() {
- local myconf
-
- # Don't try to pass --with-debug as it'll play with cflags as
- # well, and run foreground which is a _very_ nasty idea for
- # Gentoo.
- use debug && append-flags -DDEBUG
-
- [[ -n "${rootuser}" ]] && myconf="${myconf} --with-rootname=${rootuser}"
- [[ -n "${rootgroup}" ]] && myconf="${myconf} --with-rootgroup=${rootgroup}"
-
- econf \
- --with-cflags="${CFLAGS}" \
- $(use_with pam) \
- $(use_with selinux) \
- --sysconfdir=/etc/fcron \
- --with-username=fcron \
- --with-groupname=fcron \
- --with-piddir=/var/run \
- --with-spooldir=/var/spool/fcron \
- --with-fifodir=/var/run \
- --with-fcrondyn=yes \
- --disable-checks \
- --with-editor=/usr/libexec/editor \
- --with-sendmail=/usr/sbin/sendmail \
- --with-shell=/bin/sh \
- --without-db2man --without-dsssl-dir \
- ${myconf} \
- || die "configure failed"
-
- emake || die "make failed"
-
- # bug #216460
- sed -i \
- -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \
- -e 's:/usr/local/etc:/etc:g' \
- -e 's:/usr/local/:/usr/:g' \
- doc/*/*/*.{txt,1,5,8,html} \
- || die "unable to fix documentation references"
-}
-
-src_install() {
- # create directories that don't have special permissions first so
- # that we can play with the permissions later
- dodir /usr/bin /etc /var/spool
-
- diropts -m6770 -o fcron -g fcron
- keepdir /var/spool/fcron
-
- # install fcron tools
- insinto /usr/bin
- dosbin fcron || die
-
- # fcronsighup needs to be suid root, because it sends a HUP
- # to the running fcron daemon
- insopts -m6755 -o ${rootuser:-root} -g fcron
- doins fcronsighup || die
- insopts -m6755 -o fcron -g fcron
- doins fcrondyn fcrontab || die
-
- # /etc stuff
- diropts -m0750 -o ${rootuser:-root} -g fcron
- dodir /etc/fcron
- insinto /etc/fcron
- insopts -m0640 -o ${rootuser:-root} -g fcron
- doins files/fcron.{allow,deny,conf} || die
-
- diropts -m0755
- insopts -m0644
-
- # install /etc/crontab and /etc/fcrontab
- insopts -m0640 -o ${rootuser:-root} -g ${rootgroup:-root}
- doins "${FILESDIR}"/fcrontab || die
-
- # install PAM files
- pamd_mimic system-services fcron auth account session
- cat - > "${T}"/fcrontab.pam <<EOF
-# Don't ask for the user's password; fcrontab will only allow to
-# change user if running as root.
-auth sufficient pam_permit.so
-
-# Still use the system-auth stack for account and session as the
-# sysadmin might have set up stuff properly, and also avoids
-# sidestepping limits (since fcrontab will run $EDITOR).
-account include system-auth
-session include system-auth
-EOF
- newpamd "${T}"/fcrontab.pam fcrontab
-
- # install init script
- newinitd "${FILESDIR}"/fcron.init.2 fcron || die
-
- # install the very handy check_system_crontabs script, POSIX sh variant
- newsbin script/check_system_crontabs.sh check_system_crontabs || die
-
- # doc stuff
- dodoc MANIFEST VERSION "${FILESDIR}"/crontab \
- doc/en/txt/{readme,thanks,faq,todo,relnotes,changes}.txt \
- || die
- newdoc files/fcron.conf fcron.conf.sample || die
- dohtml doc/en/HTML/*.html || die
- doman doc/en/man/*.{1,5,8} || die
-
- # localized docs
- for lang in fr; do
- use linguas_${lang} || continue
-
- doman -i18n=${lang} doc/${lang}/man/*.{1,5,8} || die
- docinto html/${lang}
- dohtml doc/${lang}/HTML/*.html || die
- done
-}
-
-pkg_postinst() {
- elog
- elog "fcron has some important differences compared to vixie-cron:"
- elog
- elog "1. fcron stores the crontabs in ${ROOT}var/spool/fcron"
- elog " instead of ${ROOT}var/spool/cron/crontabs"
- elog
- elog "2. fcron uses a special binary file format for storing the"
- elog " crontabs in ${ROOT}var/spool/fcron/USERNAME,"
- elog " but the original plain text version is saved as"
- elog " ${ROOT}var/spool/fcron/USERNAME.orig for your"
- elog " reference (and for being edited with fcrontab)."
- elog
- elog "3. fcron does not feature a system crontab in exactly the"
- elog " same way as vixie-cron does. This version of fcron"
- elog " features a crontab for a pseudo-user 'systab' for use"
- elog " as the system crontab. Running a command like"
- elog
- elog " fcrontab -u systab ${ROOT}etc/crontab"
- elog
- elog " will write ${ROOT}etc/crontab to the fcron crontabs directory as"
- elog
- elog " ${ROOT}var/spool/fcron/systab"
- elog
- elog " Please note that changes to ${ROOT}etc/crontab will not become"
- elog " active automatically! fcron also does not use the directory"
- elog " ${ROOT}etc/cron.d by default like vixie-cron does."
- elog " Fortunately, it's possible to emulate vixie-cron's behavior"
- elog " with regards to ${ROOT}etc/crontab and ${ROOT}etc/cron.d by using a"
- elog " little helper script called 'check_system_crontabs'."
- elog " The file ${ROOT}etc/fcron/fcrontab (not ${ROOT}etc/crontab!) has been set up"
- elog " to run the script once a while to check whether"
- elog " ${ROOT}etc/fcron/fcrontab, ${ROOT}etc/crontab or files in ${ROOT}etc/cron.d/ have"
- elog " changed since the last generation of the systab and"
- elog " regenerate it from those three locations as necessary."
- elog " You should now run 'check_system_crontabs' once to properly"
- elog " generate an initial systab:"
- elog
- elog " check_system_crontabs -v -i -f"
- elog
- elog " The file ${ROOT}etc/fcron/fcrontab should only be used to run that"
- elog " script in order to ensure independence from the standard"
- elog " system crontab file ${ROOT}etc/crontab."
- elog " You may of course adjust the schedule for the script"
- elog " 'check_system_crontabs' or any other setting in"
- elog " ${ROOT}etc/fcron/fcrontab as you desire."
- elog
- elog "If you do NOT want to use 'check_system_crontabs', you"
- elog "might still want to activate the use of the well known"
- elog "directories ${ROOT}etc/cron.{hourly|daily|weekly|monthly} by"
- elog "just generating a systab once from ${ROOT}etc/crontab:"
- elog
- elog " fcrontab -u systab ${ROOT}etc/crontab"
- elog
- elog "Happy fcron'ing!"
- elog
-
- ewarn
- ewarn "Fixing permissions and ownership of ${ROOT}usr/bin/fcron{tab,dyn,sighup}"
- chown fcron:fcron "${ROOT}"usr/bin/fcron{tab,dyn} >&/dev/null
- chown ${rootuser:-root}:fcron "${ROOT}"usr/bin/fcronsighup >&/dev/null
- chmod 6755 "${ROOT}"usr/bin/fcron{tab,dyn,sighup} >&/dev/null
- ewarn "Fixing permissions and ownership of ${ROOT}etc/{fcron,crontab}"
- chown -R ${rootuser:-root}:fcron "${ROOT}"etc/{fcron,crontab} >&/dev/null
- chmod -R g+rX,o= "${ROOT}"etc/fcron "${ROOT}"etc/{fcron,crontab} >&/dev/null
- ewarn
-
- ewarn
- ewarn "WARNING: fcron now uses a dedicated user and group"
- ewarn "'fcron' for the suid/sgid programs/files instead of"
- ewarn "the user and group 'cron' that were previously used."
- ewarn
- ewarn "fcron usage can now only be restricted by adding users"
- ewarn "to the following files instead of to the group 'cron':"
- ewarn
- ewarn " ${ROOT}etc/fcron/fcron.allow"
- ewarn " ${ROOT}etc/fcron/fcron.deny"
- ewarn
-
- if ls -1 "${ROOT}"var/spool/cron/fcrontabs/* >&/dev/null; then
- ewarn
- ewarn "WARNING: fcron now uses a dedicated fcron-specific"
- ewarn "spooldir ${ROOT}var/spool/fcron instead of the commonly"
- ewarn "used ${ROOT}var/spool/cron for several reasons."
- ewarn
- ewarn "Copying over existing crontabs from ${ROOT}var/spool/cron/fcrontabs"
- cp "${ROOT}"var/spool/cron/fcrontabs/* "${ROOT}"var/spool/fcron/ >&/dev/null \
- || die "failed to migrate existing crontabs"
- ewarn "You should now remove ${ROOT}var/spool/cron/fcrontabs!"
- ewarn
- ewarn "Fixing permissions and ownership of ${ROOT}var/spool/fcron"
- chown root:root "${ROOT}"var/spool/fcron/* >&/dev/null
- chmod 0600 "${ROOT}"var/spool/fcron/* >&/dev/null
- chown fcron:fcron "${ROOT}"var/spool/fcron/*.orig >&/dev/null
- chmod 0640 "${ROOT}"var/spool/fcron/*.orig >&/dev/null
- ewarn
- ewarn "*** YOU SHOULD IMMEDIATELY UPDATE THE"
- ewarn "*** fcrontabs ENTRY IN ${ROOT}etc/fcron/fcron.conf"
- ewarn "*** AND RESTART YOUR FCRON DAEMON!"
- fi
-
- elog ""
- elog "Since version 3.0.5 the fcron init script will no longer wait for LDAP, MySQL"
- elog "or PostgreSQL before starting. If you need any of these for authentication or"
- elog "for jobs that are executed by fcron, please create a /etc/conf.d/fcron file to"
- elog "set the rc_need variable to the list of services you should be waiting for."
- elog ""
-}
diff --git a/sys-process/fcron/fcron-3.0.6-r5.ebuild b/sys-process/fcron/fcron-3.0.6-r5.ebuild
deleted file mode 100644
index 0c67bfc97d6e..000000000000
--- a/sys-process/fcron/fcron-3.0.6-r5.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.6-r5.ebuild,v 1.1 2012/09/16 16:08:03 flameeyes Exp $
-
-EAPI=4
-
-inherit cron pam eutils flag-o-matic user
-
-MY_P=${P/_/-}
-DESCRIPTION="A command scheduler with extended capabilities over cron and anacron"
-HOMEPAGE="http://fcron.free.fr/"
-SRC_URI="http://fcron.free.fr/archives/${MY_P}.src.tar.gz"
-
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
-IUSE="debug pam selinux linguas_fr +system-crontab"
-
-DEPEND="selinux? ( sys-libs/libselinux )
- pam? ( virtual/pam )"
-
-# see bug 282214 for the reason to depend on bash
-RDEPEND="${DEPEND}
- app-shells/bash
- >=app-misc/editor-wrapper-3
- pam? ( >=sys-auth/pambase-20100310 )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup fcron
- enewuser fcron -1 -1 -1 fcron
- rootuser=$(egetent passwd 0 | cut -d ':' -f 1)
- [[ ${rootuser} ]] || rootuser=root
- rootgroup=$(egetent group 0 | cut -d ':' -f 1)
- [[ ${rootgroup} ]] || rootgroup=root
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-buffer-overflow.patch
-
- # respect LDFLAGS
- sed -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed"
-
- sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' script/check_system_crontabs.sh || die
-}
-
-src_configure() {
- local myconf
-
- # Don't try to pass --with-debug as it'll play with cflags as
- # well, and run foreground which is a _very_ nasty idea for
- # Gentoo.
- use debug && append-flags -DDEBUG
-
- # bindir is used just for calling fcronsighup
- econf \
- --with-cflags="${CFLAGS}" \
- --bindir=/usr/libexec \
- $(use_with pam) \
- $(use_with selinux) \
- --sysconfdir=/etc/fcron \
- --with-username=fcron \
- --with-groupname=fcron \
- --with-piddir=/var/run \
- --with-spooldir=/var/spool/fcron \
- --with-fifodir=/var/run \
- --with-fcrondyn=yes \
- --disable-checks \
- --with-editor=/usr/libexec/editor \
- --with-sendmail=/usr/sbin/sendmail \
- --with-shell=/bin/sh \
- --without-db2man --without-dsssl-dir \
- --with-rootname=${rootuser} \
- --with-rootgroup=${rootgroup}
-}
-
-src_compile() {
- default
-
- # bug #216460
- sed -i \
- -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \
- -e 's:/usr/local/etc:/etc:g' \
- -e 's:/usr/local/:/usr/:g' \
- doc/*/*/*.{txt,1,5,8,html} \
- || die "unable to fix documentation references"
-}
-
-src_install() {
- keepdir /var/spool/fcron
-
- exeinto /usr/libexec
- doexe fcron fcronsighup
-
- dobin fcrondyn fcrontab
-
- insinto /etc/fcron
- doins files/fcron.{allow,deny,conf}
-
- if use system-crontab; then
- dosym fcrontab /usr/bin/crontab
-
- exeinto /usr/libexec
- newexe script/check_system_crontabs.sh check_system_crontabs
-
- insinto /etc/fcron
- newins "${FILESDIR}"/fcrontab.2 fcrontab
-
- fowners ${rootuser}:fcron /etc/fcron/fcrontab
- fperms 0640 /etc/fcron/fcrontab
-
- insinto /etc
- doins "${FILESDIR}"/crontab
- fi
-
- fowners fcron:fcron \
- /var/spool/fcron \
- /usr/bin/fcron{dyn,tab}
-
- # fcronsighup needs to be suid root, because it sends a HUP to the
- # running fcron daemon, but only has to be called by the fcron group
- # anyway
- fowners ${rootuser}:fcron \
- /usr/libexec/fcronsighup \
- /etc/fcron/fcron.{allow,deny,conf} \
- /etc/fcron
-
- fperms 6770 /var/spool/fcron
- fperms 6775 /usr/bin/fcron{dyn,tab}
-
- fperms 4710 /usr/libexec/fcronsighup
-
- fperms 0750 /etc/fcron
- fperms 0640 /etc/fcron/fcron.{allow,deny,conf}
-
- pamd_mimic system-services fcron auth account session
- cat > "${T}"/fcrontab.pam <<- EOF
- # Don't ask for the user's password; fcrontab will only allow to
- # change user if running as root.
- auth sufficient pam_permit.so
-
- # Still use the system-auth stack for account and session as the
- # sysadmin might have set up stuff properly, and also avoids
- # sidestepping limits (since fcrontab will run \$EDITOR).
- account include system-auth
- session include system-auth
- EOF
- newpamd "${T}"/fcrontab.pam fcrontab
-
- newinitd "${FILESDIR}"/fcron.init.3 fcron
-
- dodoc MANIFEST VERSION "${FILESDIR}"/crontab \
- doc/en/txt/{readme,thanks,faq,todo,relnotes,changes}.txt
- newdoc files/fcron.conf fcron.conf.sample
- dohtml doc/en/HTML/*.html
- doman doc/en/man/*.{1,5,8}
-
- for lang in fr; do
- use linguas_${lang} || continue
-
- doman -i18n=${lang} doc/${lang}/man/*.{1,5,8} || die
- docinto html/${lang}
- dohtml doc/${lang}/HTML/*.html || die
- done
-}
-
-pkg_postinst() {
- elog "If it's the first time you install fcron make sure to execute"
- elog " emerge --config ${CATEGORY}/${PN}"
- elog "to configure the proper settings."
- if ! use system-crontab; then
- echo ""
- ewarn "Remember that fcron will *not* use /etc/cron.d in this configuration"
- echo ""
- fi
-}
-
-pkg_config() {
- if [[ $(fcrontab -l -u systab 2>/dev/null) ]]; then
- eerror "We're not going to make any change to your systab as long as"
- eerror "it contains data; please clear it before proceeding."
- return 1
- fi
-
- if use system-crontab; then
- elog "This is going to set up fcron to execute check_system_crontabs."
- elog "In this configuration, you're no longer free to edit the systab"
- elog "at your leisure, at it'll be rewritten the moment the crontabs"
- elog "are modified."
- /usr/libexec/check_system_crontabs -v -i -f
- else
- elog "This is going to set up fcron to set up a default systab that"
- elog "executes /etc/cron.{hourly,daily,weekly,monthly}."
- fcrontab -u systab - <<- EOF
- 0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly
- 1 3 * * * rm -f /var/spool/cron/lastrun/cron.daily
- 15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly
- 30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly
- EOF
- fi
-}
diff --git a/sys-process/fcron/fcron-3.1.0.ebuild b/sys-process/fcron/fcron-3.1.2.ebuild
index 6454f58dfdbf..9201275c5073 100644
--- a/sys-process/fcron/fcron-3.1.0.ebuild
+++ b/sys-process/fcron/fcron-3.1.2.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.1.0.ebuild,v 1.1 2012/12/23 12:49:38 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.1.2.ebuild,v 1.1 2013/03/24 14:06:20 flameeyes Exp $
EAPI=5
-inherit cron pam eutils flag-o-matic user
+WANT_AUTOMAKE=none
+
+inherit cron pam eutils flag-o-matic user autotools
MY_P=${P/_/-}
DESCRIPTION="A command scheduler with extended capabilities over cron and anacron"
@@ -13,10 +15,11 @@ SRC_URI="http://fcron.free.fr/archives/${MY_P}.src.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
-IUSE="debug pam selinux linguas_fr +system-crontab"
+IUSE="debug pam selinux linguas_fr +system-crontab readline"
DEPEND="selinux? ( sys-libs/libselinux )
- pam? ( virtual/pam )"
+ pam? ( virtual/pam )
+ readline? ( sys-libs/readline )"
# see bug 282214 for the reason to depend on bash
RDEPEND="${DEPEND}
@@ -40,6 +43,9 @@ src_prepare() {
sed -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed"
sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' script/check_system_crontabs.sh || die
+
+ epatch "${FILESDIR}"/${PN}-3.1.1-noreadline.patch
+ eautoconf
}
src_configure() {
@@ -56,6 +62,8 @@ src_configure() {
--bindir=/usr/libexec \
$(use_with pam) \
$(use_with selinux) \
+ $(use_with readline) \
+ --without-audit \
--sysconfdir=/etc/fcron \
--with-username=fcron \
--with-groupname=fcron \
diff --git a/sys-process/fcron/files/fcron-3.0.6-buffer-overflow.patch b/sys-process/fcron/files/fcron-3.0.6-buffer-overflow.patch
deleted file mode 100644
index 75fb0c3337f4..000000000000
--- a/sys-process/fcron/files/fcron-3.0.6-buffer-overflow.patch
+++ /dev/null
@@ -1,16 +0,0 @@
- socket.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/socket.c b/socket.c
-index ef04ebe..2f7f4ac 100644
---- a/socket.c
-+++ b/socket.c
-@@ -272,7 +272,7 @@ auth_client(struct fcrondyn_cl *client)
- len += (sizeof(FIELD_STR)-1); \
- }
- #define Add_field(FIELD_STR) \
-- strncat(fields, FIELD_STR, sizeof(fields) - len); \
-+ strncat(fields, FIELD_STR, sizeof(fields)-1 - len); \
- len += (sizeof(FIELD_STR)-1);
-
- void
diff --git a/sys-process/fcron/files/fcron.init.2 b/sys-process/fcron/files/fcron.init.2
deleted file mode 100644
index 0d0bc3e7b0b9..000000000000
--- a/sys-process/fcron/files/fcron.init.2
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/fcron.init.2,v 1.1 2010/03/10 01:38:22 flameeyes Exp $
-
-depend() {
- use logger
- need clock hostname
- # provide the cron service if we are the main instance
- if [ "${SVCNAME}" = "fcron" ]; then
- provide cron
- fi
-}
-
-checkconfig() {
- FCRON_INSTANCE=${SVCNAME##*.}
- if [ -n "${FCRON_INSTANCE}" -a "${SVCNAME}" != "fcron" ]; then
- FCRON_CONF=/etc/fcron/fcron.${FCRON_INSTANCE}.conf
- else
- FCRON_CONF=/etc/fcron/fcron.conf
- fi
- if [ ! -e ${FCRON_CONF} ]; then
- eerror "You will need an ${FCRON_CONF} first"
- eerror "There is a sample in /etc/fcron"
- return 1
- fi
- FCRON_PIDFILE=$(grep '^pidfile' ${FCRON_CONF} 2>/dev/null | sed -e 's:^pidfile[[:space:]]*=[[:space:]]*\(.*\)$:\1:')
- FCRON_PIDFILE=${FCRON_PIDFILE:-/var/run/fcron.pid}
- FCRON_SPOOLDIR=$(grep '^fcrontabs' ${FCRON_CONF} 2>/dev/null | sed -e 's:^fcrontabs[[:space:]]*=[[:space:]]*\(.*\)$:\1:')
- FCRON_SPOOLDIR=${FCRON_SPOOLDIR:-/var/spool/cron/fcrontabs}
- if [ ! -d ${FCRON_SPOOLDIR} ]; then
- ebegin "Creating missing spooldir ${FCRON_SPOOLDIR}"
- /usr/sbin/fcron --newspooldir ${FCRON_SPOOLDIR}
- eend $?
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --pidfile ${FCRON_PIDFILE} --exec /usr/sbin/fcron -- -c ${FCRON_CONF}
- eend $?
-}
-
-stop() {
- checkconfig || return 1
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --pidfile ${FCRON_PIDFILE}
- eend $?
-}
diff --git a/sys-process/fcron/files/fcrontab b/sys-process/fcron/files/fcrontab
deleted file mode 100644
index 7034eead7f6c..000000000000
--- a/sys-process/fcron/files/fcrontab
+++ /dev/null
@@ -1,5 +0,0 @@
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/fcrontab,v 1.1 2006/07/31 02:10:49 wschlich Exp $
-# Script for checking system crontabs and creating the fcron systab.
-# Runs every 10 minutes, does not mail output, doesn't log job runs
-# except for errors.
-@mail(false),nolog(true) 10 /usr/sbin/check_system_crontabs -s 0