From owner-freebsd-ports@FreeBSD.ORG Sat Jan 9 00:38:20 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB533106566C for ; Sat, 9 Jan 2010 00:38:20 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 8FFA78FC14 for ; Sat, 9 Jan 2010 00:38:20 +0000 (UTC) Received: from eggman.experts-exchange.com (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id 114F44A45B90; Fri, 8 Jan 2010 16:10:37 -0800 (PST) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Fri, 08 Jan 2010 16:36:56 -0800 Date: Fri, 8 Jan 2010 16:36:56 -0800 From: Jason To: Florent Thoumie Message-ID: <20100109003655.GD52892@eggman.experts-exchange.com> References: <20100106202657.GD93034@eggman.experts-exchange.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.2-RELEASE-p4 X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-ports@freebsd.org Subject: Re: UIDs question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2010 00:38:20 -0000 On Fri, Jan 08, 2010 at 10:09:36AM +0000, Florent Thoumie thus spake: >On Wed, Jan 6, 2010 at 8:26 PM, Jason wrote: >> Hi, >> >> I am new to building ports, however I have started to get the hang of >> things. >> >> I am not building any ports that I intend on submitting to FreeBSD, yet, >> however maybe that isn't too far off :) >> >> I've used a guide I found to create a local ports repository that is working >> out wonderfully with the existing ports tree under /usr/ports >> >> My tree is under /usr/ports/local, and I found a way to integrate a local >> UIDs and GIDs file, by setting this variable in my Makefile: >> >> UID_FILES:=${PORTSDIR}/local/UIDs >> >> When I go to install my port it installs the user as expected, however it >> fails on the ${INSTALL_PROGRAM} function. I understand this is just using >> "install" with the appropriate flags. Obviously, the port doesn't install. >> >> If I run it again, the user is already on the system, and the port installs >> successfully. >> >> I was wondering if there is a way to have the port install the user using >> the native USERS or GROUPS directives in the do-install phase with the >> INSTALL macros, or if there is a more suggested, or conventional, way of >> doing this operation. > >Would you mind putting the files somewhere and showing us the error >log? I am aware of one caveat at the moment, which is that you can't >use users/groups created with USERS/GROUPS in pkg-plist. Every typical >use case with directives contained in Makefile should be fine AFAIK. > >-- >Florent Thoumie >flz@FreeBSD.org >FreeBSD Committer > I've uploaded to pastebin, and hope this is enough to go on. Please let me know if it is not, and I will make the information needed available. http://freebsd.pastebin.com/m359b2c91 Thanks! -jgh