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

Diff of /eclass/eutils.eclass

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

Revision 1.161 Revision 1.162
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/eutils.eclass,v 1.161 2005/03/23 04:30:51 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.162 2005/03/23 12:46:11 ka0ttic Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
1742 [[ -z $1 ]] && die "dopamd requires at least one argument" 1742 [[ -z $1 ]] && die "dopamd requires at least one argument"
1743 1743
1744 use pam || return 0 1744 use pam || return 0
1745 1745
1746 insinto /etc/pam.d 1746 insinto /etc/pam.d
1747 # these are the default doins options, but be explicit just in case
1748 insopts -m 0644 -o root -g root
1749 doins "$@" || die "failed to install $@" 1747 doins "$@" || die "failed to install $@"
1750} 1748}
1751# newpamd <old name> <new name> 1749# newpamd <old name> <new name>
1752# 1750#
1753# Install pam file <old name> as <new name> in /etc/pam.d 1751# Install pam file <old name> as <new name> in /etc/pam.d
1755 [[ $# -ne 2 ]] && die "newpamd requires two arguements" 1753 [[ $# -ne 2 ]] && die "newpamd requires two arguements"
1756 1754
1757 use pam || return 0 1755 use pam || return 0
1758 1756
1759 insinto /etc/pam.d 1757 insinto /etc/pam.d
1760 # these are the default doins options, but be explicit just in case
1761 insopts -m 0644 -o root -g root
1762 newins "$1" "$2" || die "failed to install $1 as $2" 1758 newins "$1" "$2" || die "failed to install $1 as $2"
1763} 1759}
1764 1760
1765# make a wrapper script ... 1761# make a wrapper script ...
1766# NOTE: this was originally games_make_wrapper, but I noticed other places where 1762# NOTE: this was originally games_make_wrapper, but I noticed other places where

Legend:
Removed from v.1.161  
changed lines
  Added in v.1.162

  ViewVC Help
Powered by ViewVC 1.1.20