diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2002-08-03 21:01:48 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2002-08-03 21:01:48 +0000 |
commit | 189aeb58d32d34f9f93dbd6dc76e0e0d300795fc (patch) | |
tree | 94795407632be87031b6311f8c4db2f2bc7e5dc6 /sys-apps/anacron | |
parent | Version bump. Added support for unicode searching, and proper (diff) | |
download | historical-189aeb58d32d34f9f93dbd6dc76e0e0d300795fc.tar.gz historical-189aeb58d32d34f9f93dbd6dc76e0e0d300795fc.tar.bz2 historical-189aeb58d32d34f9f93dbd6dc76e0e0d300795fc.zip |
Initial import.
Diffstat (limited to 'sys-apps/anacron')
-rw-r--r-- | sys-apps/anacron/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/anacron/anacron-2.3.ebuild | 55 | ||||
-rw-r--r-- | sys-apps/anacron/files/anacron.rc6 | 14 | ||||
-rw-r--r-- | sys-apps/anacron/files/anacrontab | 7 | ||||
-rw-r--r-- | sys-apps/anacron/files/digest-anacron-2.3 | 1 |
5 files changed, 85 insertions, 0 deletions
diff --git a/sys-apps/anacron/ChangeLog b/sys-apps/anacron/ChangeLog new file mode 100644 index 000000000000..53bdd9e93bde --- /dev/null +++ b/sys-apps/anacron/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sys-apps/anacron +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/anacron/ChangeLog,v 1.1 2002/08/03 21:01:48 aliz Exp $ + +*anacron-2.3 (03 Aug 2002) + + 03 Aug 2002; Daniel Ahlberg <aliz@gentoo.org> anacron-2.3.ebuild : + Initial import. Ebuild submitted by Jim Liedeka <jliedeka@tds.net>. diff --git a/sys-apps/anacron/anacron-2.3.ebuild b/sys-apps/anacron/anacron-2.3.ebuild new file mode 100644 index 000000000000..ef287d426b84 --- /dev/null +++ b/sys-apps/anacron/anacron-2.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/anacron/anacron-2.3.ebuild,v 1.1 2002/08/03 21:01:48 aliz Exp $ + +#MY_P=${PN}-${PV} +#S=${WORKDIR}/${MY_P} +S=${WORKDIR}/${P} +DESCRIPTION="Anacron -- a periodic command scheduler" +SRC_URI=" http://umn.dl.sourceforge.net/sourceforge/anacron/${P}.tar.gz" +HOMEPAGE="http://anacron.sourceforge.net/" +KEYWORDS="x86" +SLOT="0" +LICENSE="as-is" + +DEPEND="virtual/glibc" + +RDEPEND="virtual/mta + virtual/cron" + +src_unpack() { + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + sed "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile.orig >Makefile +} + +src_compile() { + emake || die +} + +src_install() { + #this does not work if the directory exists already + diropts -m0750 -o root -g cron + dodir /var/spool/anacron + + doman anacrontab.5 anacron.8 + + exeinto /etc/init.d ; newexe ${FILESDIR}/anacron.rc6 anacron + + dodoc ChangeLog COPYING 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." +} diff --git a/sys-apps/anacron/files/anacron.rc6 b/sys-apps/anacron/files/anacron.rc6 new file mode 100644 index 000000000000..b2e892a857f8 --- /dev/null +++ b/sys-apps/anacron/files/anacron.rc6 @@ -0,0 +1,14 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/anacron/files/anacron.rc6,v 1.1 2002/08/03 21:01:48 aliz Exp $ + +depend() { + need clock hostname logger +} + +start() { + ebegin "Running anacron" + /usr/sbin/anacron -s >>/var/log/cron.log 2>&1 + eend $? +} diff --git a/sys-apps/anacron/files/anacrontab b/sys-apps/anacron/files/anacrontab new file mode 100644 index 000000000000..9c70b60bdaae --- /dev/null +++ b/sys-apps/anacron/files/anacrontab @@ -0,0 +1,7 @@ +SHELL=/bin/sh +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +# format: period delay job-identifier command +1 5 cron.daily run-parts /etc/cron.daily +7 10 cron.weekly run-parts /etc/cron.weekly +30 15 cron.monthly run-parts /etc/cron.monthly + diff --git a/sys-apps/anacron/files/digest-anacron-2.3 b/sys-apps/anacron/files/digest-anacron-2.3 new file mode 100644 index 000000000000..ab9203daf8e7 --- /dev/null +++ b/sys-apps/anacron/files/digest-anacron-2.3 @@ -0,0 +1 @@ +MD5 865cc1dfe1ed75c470d3e6de13763f03 anacron-2.3.tar.gz 24140 |