From owner-freebsd-ports Wed Aug 29 6:14:17 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by hub.freebsd.org (Postfix) with ESMTP id 9D30137B407 for ; Wed, 29 Aug 2001 06:14:11 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (dialup14-42.iptelecom.net.ua [212.9.229.106]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id QAA61626; Wed, 29 Aug 2001 16:14:04 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.4/8.11.3) with ESMTP id f7TDDXo60933; Wed, 29 Aug 2001 16:13:33 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3B8CEAC4.24ACFC0@FreeBSD.org> Date: Wed, 29 Aug 2001 16:14:44 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Alexander Langer Cc: ports@FreeBSD.org Subject: Re: ports.conf References: <20010828221018.A31427@zerogravity.kawo2.rwth-aachen.d> <3B8CDC38.EC1EE32C@FreeBSD.org> <20010829142421.B14104@kawoserv.kawo2.rwth-aachen.de> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Alexander Langer wrote: > Thus spake Maxim Sobolev (sobomax@FreeBSD.ORG): > > > Ok, now I've read the thread and can give my comments on the topic. To me > > it seems that ports.conf file isn't really necessary, because it would be > > just another file that gets unconditionally included from the bsd.ports.mk, > > perhaps we could just merge content of hypotetic ports.conf with > > bsd.ports.mk instead. This would solve "where to put it" and "at which > > point to include it" problems. Comments? > > No, as David O'Brien pointed out: > bsd.port.mk is probably shared between machines, /etc/ports.conf > is not. You misunderstood my point. I meant that the *defaults* could go directly ino bsd.port.mk, while the user would be free to override them in the /etc/make.conf (I do not see much need for another make(1) configuration file in /etc). > BTW, when I just rethought the patch, and I don't want > $PORTSDIR/ports.conf included. > It should contain EXAMPLES only anyways, so it's better a > ports/examples/ports.conf (or similar). > > I only want this added to bsd.port.mk: > > > > +.if exists(/etc/ports.conf) > > > +.include > > > +.endif > > This is always correct, since it is in the admin's hand to > create this file. > > (I personally also don't want this stuff added to bsd.port.mk, since > committers should be able to add examples to ports.conf w/o explicit > approval by portmgr.) > > This include should happen at the very beginning of bsd.port.mk, > so it's also possible to set utilities like $GZIP to something > different. > > Reasonable defaults are still set in bsd.port.mk, while > examples/ports.conf is just an example file for options the > user might want to set, e.g. XFREE86_VERSION=4 or WANT_GNOME. > > Does this sound better to you? See above. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message