Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 14:00:02 -0800 (PST)
From:      Joe Clarke <marcus@marcuscom.com>
To:        gnome@FreeBSD.org
Subject:   Re: ports/34289: gdm fails to build if /usr/sbin is not in the path
Message-ID:  <200201262200.g0QM02Q51293@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/34289; it has been noted by GNATS.

From: Joe Clarke <marcus@marcuscom.com>
To: freebsd-gnats-submit@FreeBSD.org, rbt@zort.ca
Cc:  
Subject: Re: ports/34289: gdm fails to build if /usr/sbin is not in the path
Date: 26 Jan 2002 16:49:54 -0500

 I have to remember not to attach patches for Gnats.  Sorry.
 
 Joe
 
 --- pkg-install.orig	Sat Jan 26 16:02:24 2002
 +++ pkg-install	Sat Jan 26 16:02:13 2002
 @@ -9,11 +9,12 @@
  	GROUP=${USER}
  	UID=91
  	GID=${UID}
 +	PW=/usr/sbin/pw
  
 -	if pw group show "${GROUP}" 2>/dev/null; then
 +	if ${PW} group show "${GROUP}" 2>/dev/null; then
  		echo "You already have a group \"${GROUP}\", so I will use it."
  	else
 -		if pw groupadd ${GROUP} -g ${GID}; then
 +		if ${PW} groupadd ${GROUP} -g ${GID}; then
  			echo "Added group \"${GROUP}\"."
  		else
  			echo "Adding group \"${GROUP}\" failed..."
 @@ -21,10 +22,10 @@
  		fi
  	fi
  
 -	if pw user show "${USER}" 2>/dev/null; then
 +	if ${PW} user show "${USER}" 2>/dev/null; then
  		echo "You already have a user \"${USER}\", so I will use it."
  	else
 -		if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
 +		if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
  			-d "/nonexistent" -s /sbin/nologin -c "GNOME Display Manager"
  		then
  			echo "Added user \"${USER}\"."
 
 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201262200.g0QM02Q51293>