From owner-freebsd-ports Wed Aug 29 5:13:36 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 5AEAB37B403; Wed, 29 Aug 2001 05:13:23 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (dialup13-19.iptelecom.net.ua [212.9.229.19]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id PAA51088; Wed, 29 Aug 2001 15:13:01 +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 f7TCBSo60696; Wed, 29 Aug 2001 15:11:28 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3B8CDC38.EC1EE32C@FreeBSD.org> Date: Wed, 29 Aug 2001 15:12:40 +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: arch@FreeBSD.org, ports@FreeBSD.org Subject: Re: ports.conf References: <20010828221018.A31427@zerogravity.kawo2.rwth-aachen.d> 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: > Hi folks! > > You probably followed the arch-mailinglist. > > I want to move all ports-related bits into a ports-specific ports.conf. > > Now I need your help: > - Location of ports.conf? > $PORTSDIR/ports.conf ? > $PORTSDIR/defaults/ports.conf ? (my favourite) > $PORTSDIR/Mk/ports.conf ? > > I've also created this patch. 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? -Maxim > Index: bsd.port.mk > =================================================================== > RCS file: /storage/ncvs/ports/Mk/bsd.port.mk,v > retrieving revision 1.377 > diff -u -r1.377 bsd.port.mk > --- bsd.port.mk 27 Aug 2001 00:09:05 -0000 1.377 > +++ bsd.port.mk 28 Aug 2001 20:05:47 -0000 > @@ -606,6 +606,15 @@ > .else > PORTSDIR?= /usr/ports > .endif > + > +.if exists(${PORTSDIR}/ports.conf) > +.include "${PORTSDIR}/ports.conf" > +.endif > + > +.if exists(/etc/ports.conf) > +.include > +.endif > + > LOCALBASE?= ${DESTDIR}/usr/local > X11BASE?= ${DESTDIR}/usr/X11R6 > LINUXBASE?= ${DESTDIR}/compat/linux > > However, I'm not satisfied with it, since it includes it quite late, > maybe too late. But it is the first possible line after $PORTSDIR > is set. > > That's where I need your help. > > Thanks > > Alex > > PS: A _fast_ decision would be appreciated, since this also affects > src/ ;-) [I know you guys are busy :-)] > > PPS: I'd like to see it in 4.4-RELEASE! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message