HEADS UP - master/slave ports

Roman Neuhauser neuhauser at chello.cz
Thu Jun 17 10:27:44 GMT 2004


# dan at langille.org / 2004-06-16 11:41:54 -0400:
> Note: FreshPorts beta is making use of this patch to obtain this 
> master/slave information (tabs will be corrupted in this paste and 
> lines will be wrapped):

    ...
 
> +MASTERPORT!=   ${ECHO_CMD} "${_MASTERDIR}" | ${SED} -Ee 's;^.*/([^/]+/[^/]+)/?$$;\1;'

    You don't need the sed, or rely on the fact that the category
    hierarchy is flat.  Instead:

    _REALPORTSDIR!= ${REALPATH} "${PORTSDIR}"
    MASTERPORT=	${MASTERDIR:S#^${_REALPORTSDIR}##}

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html


More information about the freebsd-ports mailing list