summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-12-13 14:08:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-12-13 14:08:29 +0000
commitb0ff273cd178409cd4e42314cea365661b0e0c6c (patch)
tree4082e25b24ef1dc4809065bcff50bbaabe12d815 /eclass
parentNew upstream version (diff)
downloadgentoo-2-b0ff273cd178409cd4e42314cea365661b0e0c6c.tar.gz
gentoo-2-b0ff273cd178409cd4e42314cea365661b0e0c6c.tar.bz2
gentoo-2-b0ff273cd178409cd4e42314cea365661b0e0c6c.zip
Add support for DragonFly's CHOST in user handling, it's just the same as FreeBSD. Thanks to Robert Sebastian Gerus.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 9fd8557cea1a..06d70143a82f 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.219 2005/11/29 03:37:36 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.220 2005/12/13 14:08:29 flameeyes Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -410,7 +410,7 @@ egetent() {
;;
esac
;;
- *-freebsd*)
+ *-freebsd*|*-dragonfly*)
local opts action="user"
[[ $1 == "passwd" ]] || action="group"
@@ -569,7 +569,7 @@ enewuser() {
die "Required function missing"
fi
;;
- *-freebsd*)
+ *-freebsd*|*-dragonfly*)
if [[ -z $@ ]] ; then
pw useradd ${euser} ${opts} \
-c "added by portage for ${PN}" \
@@ -707,7 +707,7 @@ enewgroup() {
dscl . create /groups/${egroup} passwd '*'
;;
- *-freebsd*)
+ *-freebsd*|*-dragonfly*)
case ${egid} in
*[!0-9]*) # Non numeric
for egid in $(seq 101 999); do