From owner-freebsd-ports@FreeBSD.ORG Tue May 9 15:31:15 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6C516A4A0 for ; Tue, 9 May 2006 15:31:15 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7332043D45 for ; Tue, 9 May 2006 15:31:14 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wx-out-0102.google.com with SMTP id t13so1058718wxc for ; Tue, 09 May 2006 08:31:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KsUzvRCsagIP3fDycKkBrx7ORKAwlirZuYsmzuxVQmF6AF6iOMVkMT9HLOpLCzYiiiWdp7uYllebWNjQS8eGR2lafP2aVKM6zmFSDLOZqe/5Y2RFfb3V7XXpatGS8FZfI/hsMZfcdwgojXgF7adZ/pxtc14R0Zgjf/CJWBR1VKU= Received: by 10.70.104.15 with SMTP id b15mr4045251wxc; Tue, 09 May 2006 08:31:13 -0700 (PDT) Received: by 10.70.53.10 with HTTP; Tue, 9 May 2006 08:31:13 -0700 (PDT) Message-ID: <790a9fff0605090831o4e8efbaarf53ca844bb348758@mail.gmail.com> Date: Tue, 9 May 2006 10:31:13 -0500 From: "Scot Hetzel" To: "Brian Reichert" In-Reply-To: <20060509144751.GU3099@numachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060508200926.GA6005@daemons.gr> <1147119806.18944.59.camel@ikaros.oook.cz> <20060508203709.GA32661@daemons.gr> <747dc8f30605090333s39680f91l79a2beddd2f8b829@mail.gmail.com> <20060509144751.GU3099@numachi.com> Cc: freebsd-ports@freebsd.org Subject: Re: ports structure and improvement suggestions 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: Tue, 09 May 2006 15:31:15 -0000 On 5/9/06, Brian Reichert wrote: > On Tue, May 09, 2006 at 07:33:11AM -0300, Renato Botelho wrote: > > On 5/8/06, Sideris Michael 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.