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

Diff of /eclass/eutils.eclass

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

Revision 1.35 Revision 1.36
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.35 2003/06/22 05:44:04 drobbins Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.36 2003/06/25 03:53:29 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.
549 fi 549 fi
550 einfo " - Groups: ${egroups}" 550 einfo " - Groups: ${egroups}"
551 551
552 # handle extra and add the user 552 # handle extra and add the user
553 local eextra="$@" 553 local eextra="$@"
554 local oldsandbox="${oldsandbox}" 554 local oldsandbox=${SANDBOX_ON}
555 export SANDBOX_ON="0" 555 export SANDBOX_ON="0"
556 if [ -z "${eextra}" ] ; then 556 if [ -z "${eextra}" ] ; then
557 useradd ${opts} ${euser} \ 557 useradd ${opts} ${euser} \
558 -c "added by portage for ${PN}" \ 558 -c "added by portage for ${PN}" \
559 || die "enewuser failed" 559 || die "enewuser failed"
621 # handle extra 621 # handle extra
622 local eextra="$@" 622 local eextra="$@"
623 opts="${opts} ${eextra}" 623 opts="${opts} ${eextra}"
624 624
625 # add the group 625 # add the group
626 local oldsandbox="${oldsandbox}" 626 local oldsandbox=${SANDBOX_ON}
627 export SANDBOX_ON="0" 627 export SANDBOX_ON="0"
628 groupadd ${opts} ${egroup} || die "enewgroup failed" 628 groupadd ${opts} ${egroup} || die "enewgroup failed"
629 export SANDBOX_ON="${oldsandbox}" 629 export SANDBOX_ON="${oldsandbox}"
630} 630}
631 631

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20