summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/anacron/ChangeLog41
-rw-r--r--sys-process/anacron/Manifest17
-rw-r--r--sys-process/anacron/anacron-2.3.ebuild62
-rw-r--r--sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch11
-rwxr-xr-xsys-process/anacron/files/anacron.rc615
-rw-r--r--sys-process/anacron/files/anacrontab7
-rw-r--r--sys-process/anacron/files/digest-anacron-2.31
-rw-r--r--sys-process/anacron/metadata.xml5
8 files changed, 159 insertions, 0 deletions
diff --git a/sys-process/anacron/ChangeLog b/sys-process/anacron/ChangeLog
new file mode 100644
index 000000000000..528a4ef20b26
--- /dev/null
+++ b/sys-process/anacron/ChangeLog
@@ -0,0 +1,41 @@
+# ChangeLog for sys-apps/anacron
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/anacron/ChangeLog,v 1.1 2005/03/03 17:32:37 ciaranm Exp $
+
+*anacron-2.3 (03 Mar 2005)
+
+ 03 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml,
+ +files/anacron-2.3-compile-fix-from-debian.patch, +files/anacron.rc6,
+ +files/anacrontab, +anacron-2.3.ebuild:
+ Moved from sys-apps/anacron to sys-process/anacron.
+
+ 10 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> anacron-2.3.ebuild:
+ Added in a message with a link to the Cron Guide, bug #77320
+
+ 08 Oct 2004; Aaron Walker <ka0ttic@gentoo.org> files/anacron.rc6:
+ Init script should use rather than depend on logger.
+
+ 08 Oct 2004; Aaron Walker <ka0ttic@gentoo.org> metadata.xml:
+ Updated metadata info.
+
+ 24 Aug 2004; Sven Wegener <swegener@gentoo.org> anacron-2.3.ebuild:
+ Changed SRC_URI to use mirror:// syntax.
+
+ 14 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> anacron-2.3.ebuild:
+ inherit eutils for epatch; IUSE; tidy
+
+ 03 Jun 2004; Seemant Kulleen <seemant@gentoo.org>
+ +files/anacron-2.3-compile-fix-from-debian.patch, anacron-2.3.ebuild:
+ Add the compilation fix from debian (available at:
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=240043). This should close
+ bug #49029 by Meder Bakirov <bakirov@transfer.kg>. The fix was found by: Jan
+ Falkenhagen <meinspam@onlinehome.de>. Not version bumping, since this was a
+ non-working ebuild anyway, and now it works.
+
+*anacron-2.3 (03 Aug 2002)
+
+ 15 Feb 2003; Mark Guertin <gerk@gentoo.org> anacron-2.3.ebuild :
+ set ppc in keywords
+
+ 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-process/anacron/Manifest b/sys-process/anacron/Manifest
new file mode 100644
index 000000000000..1974ca7e06c6
--- /dev/null
+++ b/sys-process/anacron/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 faf3c7d729dd229a26f7ac6fff127daa ChangeLog 1504
+MD5 5671affd39a5b2dfb281175592601c6a anacron-2.3.ebuild 1540
+MD5 9c8fdf815ce980c230d763b496d4d088 metadata.xml 158
+MD5 869189865e4047f742c2d0c7fb853951 files/digest-anacron-2.3 62
+MD5 950b522f251d3fadc0628372d1f49d68 files/anacrontab 304
+MD5 c213363ea13b5d95fc7f011159b7939c files/anacron-2.3-compile-fix-from-debian.patch 315
+MD5 d2c5f1d87ad26f0695ce265d4bb41619 files/anacron.rc6 378
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB4iXNLLFUmVNQ7rkRAhkgAJ0VLiuhltVHKvuQTKZeTENWjvJHDgCgg+qz
+/PYUkbp0SoGtB66wzJRFPWk=
+=WuFg
+-----END PGP SIGNATURE-----
diff --git a/sys-process/anacron/anacron-2.3.ebuild b/sys-process/anacron/anacron-2.3.ebuild
new file mode 100644
index 000000000000..7b2b8dd05933
--- /dev/null
+++ b/sys-process/anacron/anacron-2.3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/anacron/anacron-2.3.ebuild,v 1.1 2005/03/03 17:32:37 ciaranm Exp $
+
+inherit eutils
+
+DESCRIPTION="a periodic command scheduler"
+HOMEPAGE="http://anacron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="x86 ppc amd64"
+IUSE=""
+
+DEPEND="virtual/libc
+ >=sys-apps/sed-4"
+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
+ 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."
+
+ 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
+}
diff --git a/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch b/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch
new file mode 100644
index 000000000000..174a975f0ca3
--- /dev/null
+++ b/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch
@@ -0,0 +1,11 @@
+--- anacron-2.3/gregor.c 2000-06-23 02:00:14.000000000 +0200
++++ anacron-2.3-maks/gregor.c 2004-03-26 20:45:13.000000000 +0100
+@@ -65,7 +65,7 @@
+ {
+ int dn;
+ int i;
+- const int isleap; /* save three calls to leap() */
++ int isleap; /* save three calls to leap() */
+
+ /* Some validity checks */
+
diff --git a/sys-process/anacron/files/anacron.rc6 b/sys-process/anacron/files/anacron.rc6
new file mode 100755
index 000000000000..f6b5202d301d
--- /dev/null
+++ b/sys-process/anacron/files/anacron.rc6
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/anacron/files/anacron.rc6,v 1.1 2005/03/03 17:32:37 ciaranm Exp $
+
+depend() {
+ use logger
+ need clock hostname
+}
+
+start() {
+ ebegin "Running anacron"
+ /usr/sbin/anacron -s >>/var/log/cron.log 2>&1
+ eend $?
+}
diff --git a/sys-process/anacron/files/anacrontab b/sys-process/anacron/files/anacrontab
new file mode 100644
index 000000000000..9c70b60bdaae
--- /dev/null
+++ b/sys-process/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-process/anacron/files/digest-anacron-2.3 b/sys-process/anacron/files/digest-anacron-2.3
new file mode 100644
index 000000000000..ab9203daf8e7
--- /dev/null
+++ b/sys-process/anacron/files/digest-anacron-2.3
@@ -0,0 +1 @@
+MD5 865cc1dfe1ed75c470d3e6de13763f03 anacron-2.3.tar.gz 24140
diff --git a/sys-process/anacron/metadata.xml b/sys-process/anacron/metadata.xml
new file mode 100644
index 000000000000..3f399e92bcff
--- /dev/null
+++ b/sys-process/anacron/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cron</herd>
+</pkgmetadata>