summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-10-12 13:52:01 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-10-12 13:52:01 +0000
commit855bc4253727748049d1c1fa4122e504af2e876b (patch)
treec79d9c37fc525ca4d7f1783933139f95da828bf0 /eclass/eutils.eclass
parentFix build problem with certain languages, see bug #108989 (diff)
downloadgentoo-2-855bc4253727748049d1c1fa4122e504af2e876b.tar.gz
gentoo-2-855bc4253727748049d1c1fa4122e504af2e876b.tar.bz2
gentoo-2-855bc4253727748049d1c1fa4122e504af2e876b.zip
Improved NetBSD support as per bug #108999. Thanks Damian for the efforts.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index f7e2ed0e9f8b..e67eca428718 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.206 2005/10/07 16:21:48 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.207 2005/10/12 13:52:01 flameeyes Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -591,6 +591,15 @@ enewuser() {
"$@" || die "enewuser failed"
fi
;;
+
+ *-netbsd*)
+ if [[ -z $@ ]] ; then
+ useradd ${opts} ${euser} || die "enewuser failed"
+ else
+ einfo " - Extra: $@"
+ useradd ${opts} ${euser} "$@" || die "enewuser failed"
+ fi
+ ;;
*)
if [[ -z $@ ]] ; then
useradd ${opts} ${euser} \
@@ -712,7 +721,7 @@ enewgroup() {
[ -z "`egetent group ${egid}`" ] && break
done
esac
- groupadd ${egroup} -g ${egid} || die "enewgroup failed"
+ groupadd -g ${egid} ${egroup} || die "enewgroup failed"
;;
*)