diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-10 03:18:55 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-10 03:57:49 -0400 |
commit | 9c366fdb300f4abe68183df71f1da864b12546e7 (patch) | |
tree | c065537e50f984c01b93cac8727c45a546c9f46b /sys-process | |
parent | dev-lang/ekopath: Snapshot bump (diff) | |
download | gentoo-9c366fdb300f4abe68183df71f1da864b12546e7.tar.gz gentoo-9c366fdb300f4abe68183df71f1da864b12546e7.tar.bz2 gentoo-9c366fdb300f4abe68183df71f1da864b12546e7.zip |
anacron: revbump for various changes
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/anacron/anacron-2.3-r3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild new file mode 100644 index 000000000000..e723cd518969 --- /dev/null +++ b/sys-process/anacron/anacron-2.3-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="a periodic command scheduler" +HOMEPAGE="http://anacron.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4 + sys-process/cronbase" +RDEPEND="virtual/mta + virtual/cron" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch + sed -i "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile +} + +src_compile() { + emake || die +} + +src_install() { + #this does not work if the directory exists already + diropts -m0750 -o root -g cron + keepdir /var/spool/anacron + + doman anacrontab.5 anacron.8 + + newinitd "${FILESDIR}"/anacron.rc6 anacron + + dodoc ChangeLog README TODO + + insinto /usr/sbin + insopts -o root -g root -m 0750 ; doins anacron + + insinto /etc + doins "${FILESDIR}"/anacrontab +} + +pkg_postinst() { + einfo "Schedule the command \"anacron -s\" as a daily cron-job (preferably" + einfo "at some early morning hour). This will make sure that jobs are run" + einfo "when the systems is left running for a night." + einfo "" + einfo "Update /etc/anacrontab to include what you want anacron to run." + + echo + einfo "You may wish to read the Gentoo Linux Cron Guide, which can be" + einfo "found online at:" + einfo " http://www.gentoo.org/doc/en/cron-guide.xml" + echo +} |