HEADS UP - master/slave ports
Dan Langille
dan at langille.org
Thu Jun 17 18:41:09 GMT 2004
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/
More information about the freebsd-ports
mailing list