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

Diff of /eclass/eutils.eclass

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

Revision 1.171 Revision 1.172
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.171 2005/05/13 00:30:33 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.172 2005/05/20 02:09:19 vapier 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.
1647dopamd() { 1647dopamd() {
1648 [[ -z $1 ]] && die "dopamd requires at least one argument" 1648 [[ -z $1 ]] && die "dopamd requires at least one argument"
1649 1649
1650 use pam || return 0 1650 use pam || return 0
1651 1651
1652 insinto /etc/pam.d 1652 INSDESTTREE=/etc/pam.d \
1653 doins "$@" || die "failed to install $@" 1653 doins "$@" || die "failed to install $@"
1654} 1654}
1655# newpamd <old name> <new name> 1655# newpamd <old name> <new name>
1656# 1656#
1657# Install pam file <old name> as <new name> in /etc/pam.d 1657# Install pam file <old name> as <new name> in /etc/pam.d
1658newpamd() { 1658newpamd() {
1659 [[ $# -ne 2 ]] && die "newpamd requires two arguements" 1659 [[ $# -ne 2 ]] && die "newpamd requires two arguements"
1660 1660
1661 use pam || return 0 1661 use pam || return 0
1662 1662
1663 insinto /etc/pam.d 1663 INSDESTTREE=/etc/pam.d \
1664 newins "$1" "$2" || die "failed to install $1 as $2" 1664 newins "$1" "$2" || die "failed to install $1 as $2"
1665} 1665}
1666 1666
1667# make a wrapper script ... 1667# make a wrapper script ...
1668# NOTE: this was originally games_make_wrapper, but I noticed other places where 1668# NOTE: this was originally games_make_wrapper, but I noticed other places where

Legend:
Removed from v.1.171  
changed lines
  Added in v.1.172

  ViewVC Help
Powered by ViewVC 1.1.20