Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 2006 10:31:13 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Brian Reichert" <reichert@numachi.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: ports structure and improvement suggestions
Message-ID:  <790a9fff0605090831o4e8efbaarf53ca844bb348758@mail.gmail.com>
In-Reply-To: <20060509144751.GU3099@numachi.com>
References:  <20060508200926.GA6005@daemons.gr> <1147119806.18944.59.camel@ikaros.oook.cz> <20060508203709.GA32661@daemons.gr> <747dc8f30605090333s39680f91l79a2beddd2f8b829@mail.gmail.com> <20060509144751.GU3099@numachi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/9/06, Brian Reichert <reichert@numachi.com> wrote:
> On Tue, May 09, 2006 at 07:33:11AM -0300, Renato Botelho wrote:
> > On 5/8/06, Sideris Michael <msid@daemons.gr> wrote:
> > >Says who? I know it is not the right way to keep my KNOBS saved, but
> > >nobody prevents me from
> > >defining a knob somewhere in a Makefile. Plus, I used it just to provi=
de
> > >an example of a way
> > >to do port customization.
> >
> > You can use /etc/make.conf to do it:
>
> Isn't this what pkgtools.conf is for?
>
> > # Vpopmail
> > .if ${.CURDIR:N*mail/vpopmail}=3D=3D""
> > RELAYCLEAR=3D40
> > WITH_SUID_VCHKPW=3Dyes
> > .endif
>
>   MAKE_ARGS =3D {
>        ...
>         'mail/vpopmail' =3D> 'RELAYCLEAR=3D40 WITH_SUID_VCHKPW=3Dyes',
>        ...
>   }
>
The problem with pkgtools.conf (and all the other port management
tools) is that it only works for the port that you are currently
building.  If that port has dependancies, the settings in
pkgtools.conf for the dependancies are not applied to the dependent
port.  Instead you need to build the dependent ports first.

Where as putting the variable into make.conf, will allow the dependent
port to always build with that setting.

Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.



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