summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2008-10-12 07:28:59 +0000
committerThilo Bangert <bangert@gentoo.org>2008-10-12 07:28:59 +0000
commit59d7dbe7dee1c60d9073d9c530ed0fc313e672a4 (patch)
tree2288a605a275ed727867636d188ef8e27ff6a4e7 /sys-process/cronbase
parentmask qmai-vmailmgr for removal (diff)
downloadgentoo-2-59d7dbe7dee1c60d9073d9c530ed0fc313e672a4.tar.gz
gentoo-2-59d7dbe7dee1c60d9073d9c530ed0fc313e672a4.tar.bz2
gentoo-2-59d7dbe7dee1c60d9073d9c530ed0fc313e672a4.zip
remove old versions
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-process/cronbase')
-rw-r--r--sys-process/cronbase/ChangeLog9
-rw-r--r--sys-process/cronbase/cronbase-0.2.1-r3.ebuild26
-rw-r--r--sys-process/cronbase/cronbase-0.3.1.ebuild24
-rw-r--r--sys-process/cronbase/cronbase-0.3.ebuild26
-rwxr-xr-xsys-process/cronbase/files/run-crons-0.2.183
-rwxr-xr-xsys-process/cronbase/files/run-crons-0.396
-rwxr-xr-xsys-process/cronbase/files/run-crons-0.3.1103
7 files changed, 7 insertions, 360 deletions
diff --git a/sys-process/cronbase/ChangeLog b/sys-process/cronbase/ChangeLog
index 4ddadd632822..23321720ae69 100644
--- a/sys-process/cronbase/ChangeLog
+++ b/sys-process/cronbase/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-process/cronbase
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/ChangeLog,v 1.29 2007/09/28 19:18:06 dertobi123 Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/ChangeLog,v 1.30 2008/10/12 07:28:59 bangert Exp $
+
+ 12 Oct 2008; Thilo Bangert <bangert@gentoo.org> -files/run-crons-0.2.1,
+ -files/run-crons-0.3, -files/run-crons-0.3.1, -cronbase-0.2.1-r3.ebuild,
+ -cronbase-0.3.ebuild, -cronbase-0.3.1.ebuild:
+ remove old versions
28 Sep 2007; Tobias Scherbaum <dertobi123@gentoo.org>
cronbase-0.3.2-r1.ebuild:
diff --git a/sys-process/cronbase/cronbase-0.2.1-r3.ebuild b/sys-process/cronbase/cronbase-0.2.1-r3.ebuild
deleted file mode 100644
index 425f167b6f85..000000000000
--- a/sys-process/cronbase/cronbase-0.2.1-r3.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/cronbase-0.2.1-r3.ebuild,v 1.2 2006/11/02 22:33:11 bangert Exp $
-
-IUSE=""
-
-DESCRIPTION="base for all cron ebuilds"
-HOMEPAGE="http://www.gentoo.org/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc ppc64 sparc mips alpha arm hppa amd64 ia64 s390"
-
-src_install() {
- exeinto /usr/sbin
- newexe ${FILESDIR}/run-crons-${PV} run-crons || die
-
- 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
-}
diff --git a/sys-process/cronbase/cronbase-0.3.1.ebuild b/sys-process/cronbase/cronbase-0.3.1.ebuild
deleted file mode 100644
index 1390b8b615db..000000000000
--- a/sys-process/cronbase/cronbase-0.3.1.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/cronbase-0.3.1.ebuild,v 1.3 2006/11/02 22:33:11 bangert Exp $
-
-DESCRIPTION="base for all cron ebuilds"
-HOMEPAGE="http://www.gentoo.org/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
-IUSE=""
-
-src_install() {
- newsbin "${FILESDIR}"/run-crons-${PV} run-crons || die
-
- 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
-}
diff --git a/sys-process/cronbase/cronbase-0.3.ebuild b/sys-process/cronbase/cronbase-0.3.ebuild
deleted file mode 100644
index eb94789ea359..000000000000
--- a/sys-process/cronbase/cronbase-0.3.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/cronbase-0.3.ebuild,v 1.2 2006/11/02 22:33:11 bangert Exp $
-
-IUSE=""
-
-DESCRIPTION="base for all cron ebuilds"
-HOMEPAGE="http://www.gentoo.org/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc ppc64 sparc mips alpha arm hppa amd64 ia64 s390"
-
-src_install() {
- exeinto /usr/sbin
- newexe ${FILESDIR}/run-crons-${PV} run-crons || die
-
- 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
-}
diff --git a/sys-process/cronbase/files/run-crons-0.2.1 b/sys-process/cronbase/files/run-crons-0.2.1
deleted file mode 100755
index 7f0ad86c7fc6..000000000000
--- a/sys-process/cronbase/files/run-crons-0.2.1
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-#
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/files/run-crons-0.2.1,v 1.1 2005/03/04 23:24:54 ciaranm Exp $
-#
-# 23 Jun 2002; Jon Nelson <jnelson@gentoo.org> run-crons:
-#
-# fixed a race condition, where cron jobs and run-crons wanted to delete
-# touch files
-#
-# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> run-crons:
-#
-# moved lastrun directory to /var/spool/cron/lastrun
-#
-# Author: Achim Gottinger <achim@gentoo.org>
-#
-# Mostly copied from SuSE
-#
-# this script looks into /etc/cron.[hourly|daily|weekly|monthly]
-# for scripts to be executed. The info about last run is stored in
-# /var/spool/cron/lastrun
-
-mkdir -p /var/spool/cron/lastrun
-
-# Make sure its not running multiple instances at once.
-if test -f /var/spool/cron/lastrun/lock
-then
- cronpid=`cat /var/spool/cron/lastrun/lock`
- if `kill -0 $cronpid >/dev/null 2>&1`
- then
- exit 0
- fi
-fi
-
-echo "$$" >/var/spool/cron/lastrun/lock
-
-for BASE in hourly daily weekly monthly
-do
- CRONDIR=/etc/cron.${BASE}
-
- test -d $CRONDIR || continue
-
- if test -e /var/spool/cron/lastrun/cron.$BASE
- then
- case $BASE in
- hourly)
- #>= 1 hour, 5 min -=> +65 min
- TIME="-cmin +65" ;;
- daily)
- #>= 1 day, 5 min -=> +1445 min
- TIME="-cmin +1445" ;;
- weekly)
- #>= 1 week, 5 min -=> +10085 min
- TIME="-cmin +10085" ;;
- monthly)
- #>= 31 days, 5 min -=> +44645 min
- TIME="-cmin +44645" ;;
- esac
- find /var/spool/cron/lastrun -name cron.$BASE $TIME -exec rm {} \;
- fi
-
- # if there is no touch file, make one then run the scripts
- if test ! -f /var/spool/cron/lastrun/cron.$BASE
- then
-
- touch /var/spool/cron/lastrun/cron.$BASE
-
- set +e
- for SCRIPT in $CRONDIR/*
- do
- test -d $SCRIPT && continue
- if test -x $SCRIPT ; then
- $SCRIPT
- fi
- done
- fi
-done
-
-# Remove lock, we're done.
-rm -f /var/spool/cron/lastrun/lock
-
-touch /var/spool/cron/lastrun
-find /var/spool/cron/lastrun -newer /var/spool/cron/lastrun -exec /bin/rm -f {} \;
-
diff --git a/sys-process/cronbase/files/run-crons-0.3 b/sys-process/cronbase/files/run-crons-0.3
deleted file mode 100755
index 3d1c46298b7a..000000000000
--- a/sys-process/cronbase/files/run-crons-0.3
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/bash
-#
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/files/run-crons-0.3,v 1.1 2005/03/04 23:24:54 ciaranm Exp $
-#
-#
-# 06 May 2004; Aron Griffis <agriffis@gentoo.org> run-crons:
-# Make the locking actually work. The old code was racy.
-# Thanks to Mathias Gumz in bug 45155 for some cleanups.
-#
-# 23 Jun 2002; Jon Nelson <jnelson@gentoo.org> run-crons:
-# fixed a race condition, where cron jobs and run-crons wanted to
-# delete touch files
-#
-# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> run-crons:
-# moved lastrun directory to /var/spool/cron/lastrun
-#
-# Author: Achim Gottinger <achim@gentoo.org>
-#
-# Mostly copied from SuSE
-#
-# this script looks into /etc/cron.[hourly|daily|weekly|monthly]
-# for scripts to be executed. The info about last run is stored in
-# /var/spool/cron/lastrun
-
-LOCKDIR=/var/spool/cron/lastrun
-LOCKFILE=${LOCKDIR}/lock
-
-mkdir -p ${LOCKDIR}
-
-# Make sure we're not running multiple instances at once.
-# Try twice to lock, otherwise give up.
-for ((i = 0; i < 2; i = i + 1)); do
- ln -sn $$ ${LOCKFILE} 2>/dev/null
- if [[ $? != 0 ]]; then
- # lock failed, check for a running process.
- # handle both old- and new-style locking.
- cronpid=$(readlink ${LOCKFILE} 2>/dev/null ||
- cat ${LOCKFILE} 2>/dev/null)
- if [[ $? == 0 ]]; then
- if kill -0 ${cronpid} 2>/dev/null; then
- # whoa, another process is really running
- exit 0
- else
- rm -f ${LOCKFILE}
- fi
- fi
- fi
-done
-
-# Set a trap to remove the lockfile when we're finished
-trap "rm -f ${LOCKFILE}" 0 1 2 3 15
-
-
-for BASE in hourly daily weekly monthly
-do
- CRONDIR=/etc/cron.${BASE}
-
- test -d $CRONDIR || continue
-
- if [ -e ${LOCKDIR}/cron.$BASE ]
- then
- case $BASE in
- hourly)
- #>= 1 hour, 5 min -=> +65 min
- TIME="-cmin +65" ;;
- daily)
- #>= 1 day, 5 min -=> +1445 min
- TIME="-cmin +1445" ;;
- weekly)
- #>= 1 week, 5 min -=> +10085 min
- TIME="-cmin +10085" ;;
- monthly)
- #>= 31 days, 5 min -=> +44645 min
- TIME="-cmin +44645" ;;
- esac
- find ${LOCKDIR} -name cron.$BASE $TIME -exec rm {} \;
- fi
-
- # if there is no touch file, make one then run the scripts
- if [ ! -e ${LOCKDIR}/cron.$BASE ]
- then
- touch ${LOCKDIR}/cron.$BASE
-
- set +e
- for SCRIPT in $CRONDIR/*
- do
- if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then
- $SCRIPT
- fi
- done
- fi
-done
-
-# Clean out bogus cron.$BASE files with future times
-touch ${LOCKDIR}
-find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \;
diff --git a/sys-process/cronbase/files/run-crons-0.3.1 b/sys-process/cronbase/files/run-crons-0.3.1
deleted file mode 100755
index 836e074900a3..000000000000
--- a/sys-process/cronbase/files/run-crons-0.3.1
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/bash
-#
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/files/run-crons-0.3.1,v 1.1 2005/03/04 23:24:54 ciaranm Exp $
-#
-#
-# 06 May 2004; Aron Griffis <agriffis@gentoo.org> run-crons:
-# Make the locking actually work. The old code was racy.
-# Thanks to Mathias Gumz in bug 45155 for some cleanups.
-#
-# 23 Jun 2002; Jon Nelson <jnelson@gentoo.org> run-crons:
-# fixed a race condition, where cron jobs and run-crons wanted to
-# delete touch files
-#
-# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> run-crons:
-# moved lastrun directory to /var/spool/cron/lastrun
-#
-# Author: Achim Gottinger <achim@gentoo.org>
-#
-# Mostly copied from SuSE
-#
-# this script looks into /etc/cron.[hourly|daily|weekly|monthly]
-# for scripts to be executed. The info about last run is stored in
-# /var/spool/cron/lastrun
-
-LOCKDIR=/var/spool/cron/lastrun
-LOCKFILE=${LOCKDIR}/lock
-
-mkdir -p ${LOCKDIR}
-
-# Make sure we're not running multiple instances at once.
-# Try twice to lock, otherwise give up.
-for ((i = 0; i < 2; i = i + 1)); do
- ln -sn $$ ${LOCKFILE} 2>/dev/null && break
-
- # lock failed, check for a running process.
- # handle both old- and new-style locking.
- cronpid=$(readlink ${LOCKFILE} 2>/dev/null) ||
- cronpid=$(cat ${LOCKFILE} 2>/dev/null) ||
- continue # lockfile disappeared? try again
-
- # better than kill -0 because we can verify that it's really
- # another run-crons process
- if [[ $(</proc/${cronpid}/cmdline) == $(</proc/$$/cmdline) ]] 2>/dev/null; then
- # whoa, another process is really running
- exit 0
- else
- rm -f ${LOCKFILE}
- fi
-done
-
-# Check to make sure locking was successful
-if [[ ! -L ${LOCKFILE} ]]; then
- echo "Can't create or read existing ${LOCKFILE}, giving up"
- exit 1
-fi
-
-# Set a trap to remove the lockfile when we're finished
-trap "rm -f ${LOCKFILE}" 0 1 2 3 15
-
-
-for BASE in hourly daily weekly monthly
-do
- CRONDIR=/etc/cron.${BASE}
-
- test -d $CRONDIR || continue
-
- if [ -e ${LOCKDIR}/cron.$BASE ]
- then
- case $BASE in
- hourly)
- #>= 1 hour, 5 min -=> +65 min
- TIME="-cmin +65" ;;
- daily)
- #>= 1 day, 5 min -=> +1445 min
- TIME="-cmin +1445" ;;
- weekly)
- #>= 1 week, 5 min -=> +10085 min
- TIME="-cmin +10085" ;;
- monthly)
- #>= 31 days, 5 min -=> +44645 min
- TIME="-cmin +44645" ;;
- esac
- find ${LOCKDIR} -name cron.$BASE $TIME -exec rm {} \;
- fi
-
- # if there is no touch file, make one then run the scripts
- if [ ! -e ${LOCKDIR}/cron.$BASE ]
- then
- touch ${LOCKDIR}/cron.$BASE
-
- set +e
- for SCRIPT in $CRONDIR/*
- do
- if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then
- $SCRIPT
- fi
- done
- fi
-done
-
-# Clean out bogus cron.$BASE files with future times
-touch ${LOCKDIR}
-find ${LOCKDIR} -newer ${LOCKDIR} -exec /bin/rm -f {} \;