From owner-freebsd-ports@FreeBSD.ORG Fri Jan 8 10:10:06 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 12A7A106566C for ; Fri, 8 Jan 2010 10:10:06 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 9D2718FC44 for ; Fri, 8 Jan 2010 10:10:05 +0000 (UTC) Received: by fxm27 with SMTP id 27so4512022fxm.3 for ; Fri, 08 Jan 2010 02:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=qSNJ2xeaOW8lJTHRH7DsvkksB2/mQaUtRC5kDj5s1W8=; b=DBSLSRvraFs1QWV75d4F9fTnACu88XSfbG+nc6RYNM7+vwkbP5rw0f2RK+KuXPY/8d VUvZg7gKHmuV2rSlIP1Hil1nLVCHFfAqCPu5ioDL0Ymmjhw8qxAEwv4mIf3UGwpFZCaI vzVTeFf8mIs71KJujl15RrtXD6eU/KOqgq3LY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=Wmr02jTICzNBYH5tQ/QAkFBvk8IyClJD9cLxTL1oXOc5lwPNACnwqzsHf+VhJiL2Cv WtKC0iUGTDALqwniQz/R30BWzcyMQbThQ1bN6V3NbaJ0x03hVVHPKqC4VfB7MV4GLvxW nCclPctkHMfCXNGQpKmhfHemWE/KiLblFWaUE= MIME-Version: 1.0 Sender: florent.thoumie@gmail.com Received: by 10.239.188.193 with SMTP id q1mr953926hbh.71.1262945396135; Fri, 08 Jan 2010 02:09:56 -0800 (PST) In-Reply-To: <20100106202657.GD93034@eggman.experts-exchange.com> References: <20100106202657.GD93034@eggman.experts-exchange.com> From: Florent Thoumie Date: Fri, 8 Jan 2010 10:09:36 +0000 X-Google-Sender-Auth: 558265e65dfe4f30 Message-ID: To: Jason Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 08 Jan 2010 10:10:06 -0000 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