Date: Sat, 26 Jan 2002 13:10:01 -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: <200201262110.g0QLA1H45597@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:04:54 -0500 --=-/XV0RP9154WcGkmbYP8o Content-Type: text/plain Content-Transfer-Encoding: 7bit This patch should fix the problem. Note, databases/mysql323-server has the same problem. Joe --=-/XV0RP9154WcGkmbYP8o Content-Disposition: attachment; filename=pkg-install.patch Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1 --- pkg-install.orig Sat Jan 26 16:02:24 2002 +++ pkg-install Sat Jan 26 16:02:13 2002 @@ -9,11 +9,12 @@ GROUP=3D${USER} UID=3D91 GID=3D${UID} + PW=3D/usr/sbin/pw =20 - 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 =20 - 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}\"." --=-/XV0RP9154WcGkmbYP8o-- 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?200201262110.g0QLA1H45597>