Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 16:36:56 -0800
From:      Jason <jhelfman@e-e.com>
To:        Florent Thoumie <flz@xbsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: UIDs question
Message-ID:  <20100109003655.GD52892@eggman.experts-exchange.com>
In-Reply-To: <a01628141001080209t158f1f02qa3d6b7b077e8aab8@mail.gmail.com>
References:  <20100106202657.GD93034@eggman.experts-exchange.com> <a01628141001080209t158f1f02qa3d6b7b077e8aab8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 08, 2010 at 10:09:36AM +0000, Florent Thoumie thus spake:
>On Wed, Jan 6, 2010 at 8:26 PM, Jason <jhelfman@e-e.com> 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



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