Date: Wed, 29 Aug 2001 16:14:44 +0300 From: Maxim Sobolev <sobomax@FreeBSD.org> To: Alexander Langer <alex@big.endian.de> Cc: ports@FreeBSD.org Subject: Re: ports.conf Message-ID: <3B8CEAC4.24ACFC0@FreeBSD.org> References: <20010828221018.A31427@zerogravity.kawo2.rwth-aachen.d> <3B8CDC38.EC1EE32C@FreeBSD.org> <20010829142421.B14104@kawoserv.kawo2.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 </etc/ports.conf> > > > +.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B8CEAC4.24ACFC0>