summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston A. Elder <prez@gentoo.org>2003-11-19 06:49:16 +0000
committerPreston A. Elder <prez@gentoo.org>2003-11-19 06:49:16 +0000
commiteed551a50fa0159b3c755915cc0ba61f117f2ea6 (patch)
tree21bddd8b26e7fdff9fcefdc5e2bd20b53aa7ddf2 /sys-apps
parentChanged run-crons to run every minute - requires newer cronbase. (diff)
downloadgentoo-2-eed551a50fa0159b3c755915cc0ba61f117f2ea6.tar.gz
gentoo-2-eed551a50fa0159b3c755915cc0ba61f117f2ea6.tar.bz2
gentoo-2-eed551a50fa0159b3c755915cc0ba61f117f2ea6.zip
Added changes to allow run-crons to run minutely.
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/vcron/ChangeLog8
-rw-r--r--sys-apps/vcron/files/crontab-3.0.1-r413
-rw-r--r--sys-apps/vcron/files/digest-vcron-3.0.1-r41
-rw-r--r--sys-apps/vcron/vcron-3.0.1-r4.ebuild74
4 files changed, 95 insertions, 1 deletions
diff --git a/sys-apps/vcron/ChangeLog b/sys-apps/vcron/ChangeLog
index 19b3fc2d306c..f059c233b332 100644
--- a/sys-apps/vcron/ChangeLog
+++ b/sys-apps/vcron/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/vcron
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/vcron/ChangeLog,v 1.22 2003/11/13 03:09:09 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/vcron/ChangeLog,v 1.23 2003/11/19 06:49:16 prez Exp $
+
+*vcron-3.0.1-r4 (19 Nov 2003)
+
+ 19 Nov 2003; Preston A. Elder <prez@gentoo.org> vcron-3.0.1-r4.ebuild,
+ crontab-3.0.1-r4:
+ Changed to allow run-crons to run minutely (requires newer cronbase).
*vcron-3.0.1-r3 (12 Nov 2003)
diff --git a/sys-apps/vcron/files/crontab-3.0.1-r4 b/sys-apps/vcron/files/crontab-3.0.1-r4
new file mode 100644
index 000000000000..edfe120c2e18
--- /dev/null
+++ b/sys-apps/vcron/files/crontab-3.0.1-r4
@@ -0,0 +1,13 @@
+# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
+# for vixie cron
+# remember to give cron a sighup when updating this file
+#
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/vcron/files/crontab-3.0.1-r4,v 1.1 2003/11/19 06:49:16 prez Exp $
+#
+#
+
+0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
+0 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
+0 0 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
+0 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
+* * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
diff --git a/sys-apps/vcron/files/digest-vcron-3.0.1-r4 b/sys-apps/vcron/files/digest-vcron-3.0.1-r4
new file mode 100644
index 000000000000..730747648de8
--- /dev/null
+++ b/sys-apps/vcron/files/digest-vcron-3.0.1-r4
@@ -0,0 +1 @@
+MD5 369390355808fcf947cd2f9847f88859 vixie-cron-3.0.1.tar.bz2 50376
diff --git a/sys-apps/vcron/vcron-3.0.1-r4.ebuild b/sys-apps/vcron/vcron-3.0.1-r4.ebuild
new file mode 100644
index 000000000000..39e199bfb63f
--- /dev/null
+++ b/sys-apps/vcron/vcron-3.0.1-r4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/vcron/vcron-3.0.1-r4.ebuild,v 1.1 2003/11/19 06:49:16 prez Exp $
+
+inherit eutils
+
+IUSE="selinux"
+
+SELINUX_PATCH="vcron-3.0.1-selinux.diff.bz2"
+
+MY_P=${P/vcron/vixie-cron}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="The Vixie cron daemon"
+SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
+HOMEPAGE=""
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha ~arm ~mips ~hppa ~ia64"
+SLOT="0"
+LICENSE="as-is"
+
+DEPEND=">=sys-apps/portage-2.0.47-r10
+ >=sys-apps/sed-4.0.5
+ selinux? ( sys-libs/libselinux )"
+
+RDEPEND="!virtual/cron
+ sys-apps/cronbase-0.2.1-r3
+ virtual/mta
+ selinux? ( sys-libs/libselinux )"
+
+PROVIDE="virtual/cron"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+
+ epatch ${FILESDIR}/${MY_P}-gentoo.patch
+ epatch ${FILESDIR}/${P}-close_stdin.diff
+
+ use selinux && epatch ${FILESDIR}/${SELINUX_PATCH}
+
+ sed -i "s:-O2:${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/cron/crontabs
+ keepdir /var/spool/cron/crontabs/
+
+ doman crontab.1 crontab.5 cron.8
+
+ dodoc CHANGES CONVERSION FEATURES MAIL MANIFEST README THANKS
+
+ diropts -m0755 ; dodir /etc/cron.d
+ touch ${D}/etc/cron.d/.keep
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/vcron.rc6 vcron
+
+ dodir /etc
+ install -o root -g root -m 0644 ${FILESDIR}/crontab-3.0.1-r4 ${D}/etc/crontab
+
+ dodoc ${FILESDIR}/crontab
+
+ insinto /usr/sbin
+ insopts -o root -g root -m 0750 ; doins cron
+
+ insinto /usr/bin
+ insopts -o root -g cron -m 4750 ; doins crontab
+}