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

Diff of /eclass/eutils.eclass

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

Revision 1.206 Revision 1.207
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.206 2005/10/07 16:21:48 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.207 2005/10/12 13:52:01 flameeyes 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.
589 einfo " - Extra: $@" 589 einfo " - Extra: $@"
590 pw useradd ${euser} ${opts} \ 590 pw useradd ${euser} ${opts} \
591 "$@" || die "enewuser failed" 591 "$@" || die "enewuser failed"
592 fi 592 fi
593 ;; 593 ;;
594
595 *-netbsd*)
596 if [[ -z $@ ]] ; then
597 useradd ${opts} ${euser} || die "enewuser failed"
598 else
599 einfo " - Extra: $@"
600 useradd ${opts} ${euser} "$@" || die "enewuser failed"
601 fi
602 ;;
594 *) 603 *)
595 if [[ -z $@ ]] ; then 604 if [[ -z $@ ]] ; then
596 useradd ${opts} ${euser} \ 605 useradd ${opts} ${euser} \
597 -c "added by portage for ${PN}" \ 606 -c "added by portage for ${PN}" \
598 || die "enewuser failed" 607 || die "enewuser failed"
710 *[!0-9]*) # Non numeric 719 *[!0-9]*) # Non numeric
711 for egid in $(seq 101 999); do 720 for egid in $(seq 101 999); do
712 [ -z "`egetent group ${egid}`" ] && break 721 [ -z "`egetent group ${egid}`" ] && break
713 done 722 done
714 esac 723 esac
715 groupadd ${egroup} -g ${egid} || die "enewgroup failed" 724 groupadd -g ${egid} ${egroup} || die "enewgroup failed"
716 ;; 725 ;;
717 726
718 *) 727 *)
719 groupadd ${opts} ${egroup} || die "enewgroup failed" 728 groupadd ${opts} ${egroup} || die "enewgroup failed"
720 ;; 729 ;;

Legend:
Removed from v.1.206  
changed lines
  Added in v.1.207

  ViewVC Help
Powered by ViewVC 1.1.20