From owner-freebsd-ports Sun Jun 25 12:47:17 2000 Delivered-To: freebsd-ports@freebsd.org Received: from server1.mich.com (server1.mich.com [198.108.16.2]) by hub.freebsd.org (Postfix) with ESMTP id F151C37BE60 for ; Sun, 25 Jun 2000 12:47:12 -0700 (PDT) (envelope-from will@almanac.yi.org) Received: from argon.gryphonsoft.com (pm001-027.dialup.bignet.net [64.79.80.27]) by server1.mich.com (8.9.3/8.9.3) with ESMTP id PAA24803; Sun, 25 Jun 2000 15:47:07 -0400 Received: by argon.gryphonsoft.com (Postfix, from userid 1000) id DB50F1912; Sun, 25 Jun 2000 15:45:23 -0400 (EDT) Date: Sun, 25 Jun 2000 15:45:23 -0400 From: Will Andrews To: "Lester A. Mesa" Cc: freebsd-ports@FreeBSD.ORG Subject: Re: problems creating a port Message-ID: <20000625154523.E85886@argon.gryphonsoft.com> References: <001901bfddf9$8c69c380$a956e3d8@workstation9> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <001901bfddf9$8c69c380$a956e3d8@workstation9>; from netadmin@primex.prontel.net on Sat, Jun 24, 2000 at 12:30:44PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Jun 24, 2000 at 12:30:44PM -0400, Lester A. Mesa wrote: > For the port to work i need to add a user and a group. I did this by using > the following: > pre-configure: > pw groupadd group; \ > pw useradd username -d /home/username -m -g group -s /bin/sh -h fd You should avoid putting things requiring root in pre-configure and such, unless absolutely necessary. If you must, then also check to make sure the user running make will get errors in pre-fetch if they are not root. > Any ideas on how can i ignore the pw group already exists error? Yes. Check to make sure the group doesn't exist first. Do this by using ``pw groupshow $GID'' and make sure pw exit code is 0. For reference, it will exit with code 65 if the group does not exist. -- Will Andrews GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message