/[gentoo-x86]/eclass/cron.eclass
Gentoo

Diff of /eclass/cron.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cron.eclass,v 1.4 2005/03/16 10:51:16 ka0ttic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cron.eclass,v 1.5 2005/05/14 16:44:37 ka0ttic Exp $
4 4
5# Original Author: Aaron Walker <ka0ttic@gentoo.org> 5# Original Author: Aaron Walker <ka0ttic@gentoo.org>
6# 6#
7# Purpose: The main motivation for this eclass was to simplify 7# Purpose: The main motivation for this eclass was to simplify
8# the jungle known as src_install() in cron ebuilds. Using these 8# the jungle known as src_install() in cron ebuilds. Using these
76# 76#
77# ex: docron -m 0700 -o root -g root ('exe' defaults to "cron") 77# ex: docron -m 0700 -o root -g root ('exe' defaults to "cron")
78# docron crond -m 0110 78# docron crond -m 0110
79 79
80docron() { 80docron() {
81 local cron="cron" perms="-m 0750 -o root -g root" 81 local cron="cron" perms="-m 0750 -o root -g wheel"
82 82
83 if [[ -n "$1" ]] ; then 83 if [[ -n "$1" ]] ; then
84 case "$1" in 84 case "$1" in
85 -*) 85 -*)
86 perms="$@" 86 perms="$@"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20