Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290843 - Package request: anacron from cronie (sys-process/cronie)
Summary: Package request: anacron from cronie (sys-process/cronie)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://fedorahosted.org/cronie
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 07:40 UTC by Allen Brooker (AllenJB)
Modified: 2012-06-19 21:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cronie-1.4.1.ebuild with anacron use flag (cronie-1.4.1-r1.ebuild,1.27 KB, text/plain)
2009-10-28 08:51 UTC, Allen Brooker (AllenJB)
Details
cronie-1.4.1.ebuild with anacron use flag - install examples and cron.d script (cronie-1.4.1-r1.ebuild,1.44 KB, text/plain)
2009-10-28 09:21 UTC, Allen Brooker (AllenJB)
Details
cronie-1.4.1.ebuild with correct setup of anacron (added init script, spool dir setup) (cronie-1.4.1-r1.ebuild,1.62 KB, text/plain)
2009-10-28 17:11 UTC, Allen Brooker (AllenJB)
Details
files/anacron-1.4.1-initd (anacron init script) (anacron-1.4.1-initd,353 bytes, text/plain)
2009-10-28 17:11 UTC, Allen Brooker (AllenJB)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Brooker (AllenJB) 2009-10-28 07:40:37 UTC
The cronie project includes anacron, but this isn't supplied by the existing sys-process/cronie package. It would be nice to be able to have cronie's anacron, either as a seperate package or installed by the existing sys-process/cronie package.
Comment 1 Allen Brooker (AllenJB) 2009-10-28 08:51:29 UTC
Created attachment 208488 [details]
cronie-1.4.1.ebuild with anacron use flag

I've implemented this as a use flag on the existing cronie package. Tested on amd64 both with and without the new use flag enabled. Appears to work as expected.

Changes summary:
--- /mnt/portage/sys-process/cronie/cronie-1.4.1.ebuild 2009-08-23 21:12:43.000000000 +0100
+++ cronie-1.4.1-r1.ebuild      2009-10-28 08:43:15.000000000 +0000
@@ -11,10 +11,11 @@
 HOMEPAGE="https://fedorahosted.org/cronie/wiki"

 LICENSE="ISC BSD BSD-2"
-KEYWORDS="~x86"
-IUSE="inotify pam"
+KEYWORDS="~amd64 ~x86"
+IUSE="anacron inotify pam"

-DEPEND="pam? ( virtual/pam )"
+DEPEND="anacron? ( !sys-process/anacron )
+       pam? ( virtual/pam )"
 RDEPEND="${DEPEND}"

 #cronie supports /etc/crontab
@@ -24,6 +25,7 @@
        SPOOL_DIR="/var/spool/cron/crontabs" econf \
                $(use_with inotify ) \
                $(use_with pam ) \
+               $(use_enable anacron ) \
                --with-daemon_username=cron \
                --with-daemon_groupname=cron \
                || die "econf failed"
Comment 2 Allen Brooker (AllenJB) 2009-10-28 09:21:52 UTC
Created attachment 208489 [details]
cronie-1.4.1.ebuild with anacron use flag - install examples and cron.d script

Install the contrib/0anacron script to cron.d/0anacron so anacron now works "out of the box" and install the other contrib files as documentation/examples

@@ -40,6 +42,14 @@
        newins "${FILESDIR}/${PN}-1.2-crontab" crontab
        newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny

+       if use anacron; then
+               insinto /etc/cron.d
+               newins "${S}/contrib/0anacron" 0anacron
+               fperms 755 /etc/cron.d/0anacron
+
+               dodoc contrib/0hourly contrib/anacrontab
+       fi
+
        keepdir /etc/cron.d
        newinitd "${FILESDIR}/${PN}-1.2-initd" cronie
        dodoc NEWS AUTHORS README
Comment 3 Allen Brooker (AllenJB) 2009-10-28 16:36:32 UTC
The setup of cronie in this ebuild is incorrect. I'm currently looking at this and will upload a new ebuild when done.
Comment 4 Allen Brooker (AllenJB) 2009-10-28 17:11:10 UTC
Created attachment 208557 [details]
cronie-1.4.1.ebuild with correct setup of anacron (added init script, spool dir setup)

I'm pretty sure this one should be correct now. I've added an init script for anacron and setup the spool directory correctly.
Comment 5 Allen Brooker (AllenJB) 2009-10-28 17:11:42 UTC
Created attachment 208558 [details]
files/anacron-1.4.1-initd (anacron init script)
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-07-10 21:02:37 UTC
Can you elaborate in short what anacron exactly is and what's the difference to the "normal" crond from cronie?
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-06-19 21:12:14 UTC
anacron can now be installed with latest cronie ebuilds.