Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Apr 2009 15:22:16 +0200
From:      Julien Laffaye <kimelto@gmail.com>
To:        RW <rwmaillists@googlemail.com>
Cc:        ports@freebsd.org
Subject:   Re: adding users in ports
Message-ID:  <fee671620904030622r23451cc1y2882eef38d7db03e@mail.gmail.com>
In-Reply-To: <20090403134020.7f1d1331@gumby.homeunix.com>
References:  <200904031212.18475.subbsd@gmail.com> <20090403134020.7f1d1331@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 3, 2009 at 2:40 PM, RW <rwmaillists@googlemail.com> wrote:
> On Fri, 3 Apr 2009 12:12:18 +0400
> subbsd <subbsd@gmail.com> wrote:
>
>
>> My question - why do not make this facility by generic (for example
>> create add/del/check-existence procedure in
>> some /usr/ports/Mk/bsd.users.mk file) ?
>
> Presumably because the same functionality has to go into package files,
> and work for someone that doesn't have a ports tree installed.

That's where the staged installs are interesting.
You implement the functionnality into the pkg_tools and the ports tree
use them (make package before make install).
It will also ensure that all post 'make package' features are
supported by the pkg_tools because the ports tree will rely on that.

An other solution, less elegant IMHO, is that the *.mk facilities
generates the files/pkg-install.in file, which will be executed later
by make or the pkg_tools. Well... that's *very* crappy :-)



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