Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2001 15:12:40 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Alexander Langer <alex@big.endian.de>
Cc:        arch@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: ports.conf
Message-ID:  <3B8CDC38.EC1EE32C@FreeBSD.org>
References:  <20010828221018.A31427@zerogravity.kawo2.rwth-aachen.d>

next in thread | previous in thread | raw e-mail | index | archive | help
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 </etc/ports.conf>
> +.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-arch" in the body of the message




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