Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2004 14:12:21 -0400
From:      "Dan Langille" <dan@langille.org>
To:        "Cyrille Lefevre" <clefevre-lists@9online.fr>
Cc:        ports@freebsd.org
Subject:   Re: HEADS UP - master/slave ports
Message-ID:  <40D1A6C5.13508.7C05C223@localhost>
In-Reply-To: <04b701c4547a$68a0d2d0$7890a8c0@dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 17 Jun 2004 at 16:50, Cyrille Lefevre wrote:

> there is no need to fork any sub-processes :
> 
> # Try to determine if we are a slave port.  These variables are used by
> # FreshPorts and portsmon, but not yet by the ports framework itself.
> _MASTERDIR=   ${MASTERDIR:C,/([^/]+)/\.\.,,:C,/([^/]+)/\.\.,,}
> 
> .if ${_MASTERDIR} != ${.CURDIR}
> IS_SLAVE_PORT?=        yes
> # take your pick :
> # _PORTSDIR=    ${_MASTERDIR:C|([^/]+/[^/]+)/?$||}
> # MASTERPORT=   ${_MASTERDIR:C|${_PORTSDIR}||}
> # or
> MASTERPORT=     ${_MASTERDIR:H:T}/${_MASTERDIR:T}

So far, I declare this one the winner.  I'll run with that in 
FreshPorts test and monitor.

> .else
> IS_SLAVE_PORT?=        no
> MASTERPORT=
> .endif

My thanks to all helping with this issue.  It is appreciated.

-- 
Dan Langille : http://www.langille.org/
BSDCan - http://www.bsdcan.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D1A6C5.13508.7C05C223>