1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils toolchain-funcs
9 DESCRIPTION="a periodic command scheduler"
10 HOMEPAGE="http://anacron.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm ~ppc ~x86"
18 DEPEND="sys-process/cronbase"
23 epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch
24 epatch "${FILESDIR}"/${P}-headers.patch
26 -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \
35 #this does not work if the directory exists already
36 diropts -m0750 -o root -g cron
37 keepdir /var/spool/anacron
39 doman anacrontab.5 anacron.8
41 newinitd "${FILESDIR}"/anacron.rc6 anacron
43 dodoc ChangeLog README TODO
48 doins "${FILESDIR}"/anacrontab
52 if [[ -z ${REPLACING_VERSIONS} ]] ; then
53 elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably"
54 elog "at some early morning hour). This will make sure that jobs are run"
55 elog "when the systems is left running for a night."
57 elog "Update /etc/anacrontab to include what you want anacron to run."
60 elog "You may wish to read the Gentoo Linux Cron Guide, which can be"
61 elog "found online at:"
62 elog " https://wiki.gentoo.org/wiki/Cron"