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

Diff of /eclass/eutils.eclass

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

Revision 1.344 Revision 1.345
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.344 2010/05/20 02:21:17 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.345 2010/06/23 21:24:50 cardoe Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
706 fi 706 fi
707 ;; 707 ;;
708 708
709 *) 709 *)
710 if [[ -z $@ ]] ; then 710 if [[ -z $@ ]] ; then
711 useradd ${opts} \ 711 useradd -r ${opts} \
712 -c "added by portage for ${PN}" \ 712 -c "added by portage for ${PN}" \
713 ${euser} \ 713 ${euser} \
714 || die "enewuser failed" 714 || die "enewuser failed"
715 else 715 else
716 einfo " - Extra: $@" 716 einfo " - Extra: $@"
717 useradd ${opts} "$@" \ 717 useradd -r ${opts} "$@" \
718 ${euser} \ 718 ${euser} \
719 || die "enewuser failed" 719 || die "enewuser failed"
720 fi 720 fi
721 ;; 721 ;;
722 esac 722 esac
835 esac 835 esac
836 groupadd -g ${egid} ${egroup} || die "enewgroup failed" 836 groupadd -g ${egid} ${egroup} || die "enewgroup failed"
837 ;; 837 ;;
838 838
839 *) 839 *)
840 # We specify -r so that we get a GID in the system range from login.defs
840 groupadd ${opts} ${egroup} || die "enewgroup failed" 841 groupadd -r ${opts} ${egroup} || die "enewgroup failed"
841 ;; 842 ;;
842 esac 843 esac
843 export SANDBOX_ON="${oldsandbox}" 844 export SANDBOX_ON="${oldsandbox}"
844} 845}
845 846

Legend:
Removed from v.1.344  
changed lines
  Added in v.1.345

  ViewVC Help
Powered by ViewVC 1.1.20