summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-06 04:20:02 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-06 04:20:02 +0000
commitf428bf1d6dad6e4359af3c925e54fcf2012cdb9e (patch)
tree283554af2665c88b70161fac602ef974473a6313 /eclass
parentVersion bumped. (diff)
downloadgentoo-2-f428bf1d6dad6e4359af3c925e54fcf2012cdb9e.tar.gz
gentoo-2-f428bf1d6dad6e4359af3c925e54fcf2012cdb9e.tar.bz2
gentoo-2-f428bf1d6dad6e4359af3c925e54fcf2012cdb9e.zip
remove pointless libc DEPEND and tweak quoting
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cron.eclass23
1 files changed, 11 insertions, 12 deletions
diff --git a/eclass/cron.eclass b/eclass/cron.eclass
index 31e4ce98ab2a..89ee3e5865a8 100644
--- a/eclass/cron.eclass
+++ b/eclass/cron.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cron.eclass,v 1.8 2005/07/11 15:08:06 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cron.eclass,v 1.9 2005/09/06 04:20:02 vapier Exp $
# Original Author: Aaron Walker <ka0ttic@gentoo.org>
#
@@ -20,8 +20,7 @@ EXPORT_FUNCTIONS pkg_postinst
SLOT="0"
-DEPEND="virtual/libc
- >=sys-apps/sed-4.0.5"
+DEPEND=">=sys-apps/sed-4.0.5"
RDEPEND="!virtual/cron
virtual/mta
@@ -44,12 +43,12 @@ docrondir() {
# defaults
local perms="-m0750 -o root -g cron" dir="/var/spool/cron/crontabs"
- if [[ -n "$1" ]] ; then
+ if [[ -n $1 ]] ; then
case "$1" in
*/*)
- dir="$1"
+ dir=$1
shift
- [[ -n "$1" ]] && perms="$@"
+ [[ -n $1 ]] && perms="$@"
;;
*)
perms="$@"
@@ -76,15 +75,15 @@ docrondir() {
docron() {
local cron="cron" perms="-m 0750 -o root -g wheel"
- if [[ -n "$1" ]] ; then
+ if [[ -n $1 ]] ; then
case "$1" in
-*)
perms="$@"
;;
*)
- cron="$1"
+ cron=$1
shift
- [[ -n "$1" ]] && perms="$@"
+ [[ -n $1 ]] && perms="$@"
;;
esac
fi
@@ -106,15 +105,15 @@ docron() {
docrontab() {
local crontab="crontab" perms="-m 4750 -o root -g cron"
- if [[ -n "$1" ]] ; then
+ if [[ -n $1 ]] ; then
case "$1" in
-*)
perms="$@"
;;
*)
- crontab="$1"
+ crontab=$1
shift
- [[ -n "$1" ]] && perms="$@"
+ [[ -n $1 ]] && perms="$@"
;;
esac
fi