diff options
author | 2002-11-13 05:10:55 +0000 | |
---|---|---|
committer | 2002-11-13 05:10:55 +0000 | |
commit | 026769ac64c8a593670027d5e5399aca040c5387 (patch) | |
tree | 117bdc7b7359eb3e5d4df7259372f15b896de721 /sys-apps/cronbase | |
parent | Added the new stable line, marked as testing and reintroduced the USE=ssl var... (diff) | |
download | historical-026769ac64c8a593670027d5e5399aca040c5387.tar.gz historical-026769ac64c8a593670027d5e5399aca040c5387.tar.bz2 historical-026769ac64c8a593670027d5e5399aca040c5387.zip |
fix #10409
Diffstat (limited to 'sys-apps/cronbase')
-rw-r--r-- | sys-apps/cronbase/ChangeLog | 19 | ||||
-rw-r--r-- | sys-apps/cronbase/cronbase-0.2.1-r1.ebuild | 37 | ||||
-rw-r--r-- | sys-apps/cronbase/files/digest-cronbase-0.2.1-r1 | 0 | ||||
-rw-r--r-- | sys-apps/cronbase/files/run-crons | 4 |
4 files changed, 47 insertions, 13 deletions
diff --git a/sys-apps/cronbase/ChangeLog b/sys-apps/cronbase/ChangeLog index 55e0baadb7bc..345d54c785d0 100644 --- a/sys-apps/cronbase/ChangeLog +++ b/sys-apps/cronbase/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/cronbase # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cronbase/ChangeLog,v 1.7 2002/07/14 19:20:16 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cronbase/ChangeLog,v 1.8 2002/11/13 05:10:55 woodchip Exp $ + +*cronbase-0.2.1-r1 (13 Nov 2002) + + 13 Nov 2002; Donny Davies <woodchip@gentoo.org> run-crons : Fix #10409. *cronbase-0.2.1 (27 Jun 2002) @@ -8,23 +12,16 @@ Added KEYWORDS, SLOT. 26 Jun 2002; Thilo Bangert <bangert@gentoo.org> files/run-crons : - - rethought rewrite and fixed a race. thanks go to jnelseon and george - + rethought rewrite and fixed a race. thanks go to jnelseon and george. *cronbase-0.2 (24 Jun 2002) 23 Jun 2002; Thilo Bangert <bangert@gentoo.org> files/run-crons : - minor fixors/cleanups - suggested by jon nelson - 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> files/run-crons : - + 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> files/run-crons : moved lastrun to /var/spool/cron/lastrun - *cronbase-0.01 (19 Apr 2002) - 19 Apr 2002; Thilo Bangert <bangert@gentoo.org> ChangeLog : - - initial release ;-) + 19 Apr 2002; Thilo Bangert <bangert@gentoo.org> ChangeLog : initial release. diff --git a/sys-apps/cronbase/cronbase-0.2.1-r1.ebuild b/sys-apps/cronbase/cronbase-0.2.1-r1.ebuild new file mode 100644 index 000000000000..25f58dd13588 --- /dev/null +++ b/sys-apps/cronbase/cronbase-0.2.1-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cronbase/cronbase-0.2.1-r1.ebuild,v 1.1 2002/11/13 05:10:55 woodchip Exp $ + +DESCRIPTION="The is the base for all cron ebuilds." +HOMEPAGE="http://www.gentoo.org/" +KEYWORDS="x86 ppc sparc sparc64 alpha" +SLOT="0" +LICENSE="GPL-2" + +#adds ".keep" files so that dirs aren't auto-cleaned +keepdir() { + dodir $* + local x + for x in $* + do + touch ${D}/${x}/.keep + done +} + +src_install () { + + exeinto /usr/sbin + doexe ${FILESDIR}/run-crons + + diropts -m0750; keepdir /etc/cron.hourly + diropts -m0750; keepdir /etc/cron.daily + diropts -m0750; keepdir /etc/cron.weekly + diropts -m0750; keepdir /etc/cron.monthly + + diropts -m0750 -o root -g cron; keepdir /var/spool/cron + + diropts -m0750; keepdir /var/spool/cron/lastrun + + dodoc ${FILESDIR}/README + +} diff --git a/sys-apps/cronbase/files/digest-cronbase-0.2.1-r1 b/sys-apps/cronbase/files/digest-cronbase-0.2.1-r1 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/sys-apps/cronbase/files/digest-cronbase-0.2.1-r1 diff --git a/sys-apps/cronbase/files/run-crons b/sys-apps/cronbase/files/run-crons index 614959443ce3..8455a6b96562 100644 --- a/sys-apps/cronbase/files/run-crons +++ b/sys-apps/cronbase/files/run-crons @@ -1,6 +1,6 @@ #!/bin/sh # -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cronbase/files/run-crons,v 1.6 2002/06/26 09:48:04 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cronbase/files/run-crons,v 1.7 2002/11/13 05:10:55 woodchip Exp $ # # 23 Jun 2002; Jon Nelson <jnelson@gentoo.org> run-crons: # @@ -45,7 +45,7 @@ do #>= 30 days, 5 min -=> +43204 min TIME="-cmin +43204" ;; esac - find /var/spool/cron/lastrun/cron.$BASE $TIME -exec rm {} \; + find /var/spool/cron/lastrun -name cron.$BASE $TIME -exec rm {} \; fi # if there is no touch file, make one then run the scripts |