How to relaize 2 MASTER_SITE Usages and 2 SUBDIR things...
Oliver Eikemeier
eikemeier at fillmore-labs.com
Tue Jul 13 07:06:10 PDT 2004
Oliver Lehmann wrote:
> Hi,
>
> what I need is something like that:
>
> MASTER_SITES= ${MASTER_SITE_LOCAL}:mime \
> http://sylpheed.good-day.net/sylpheed/:source \
> ${MASTER_SITE_SOURCEFORGE}:source
> MASTER_SITE_SUBDIR= sylpheed-claws:source oliver:mime
> DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source mime.types:mime
> EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
Try
MASTER_SITES= ${MASTER_SITE_LOCAL:S/$/:mime/} \
http://sylpheed.good-day.net/sylpheed/:source \
${MASTER_SITE_SOURCEFORGE:S/$/:source/}
MASTER_SITE_SUBDIR= sylpheed-claws/:source oliver/:mime
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source mime.types:mime
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
See also
<http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-
handbook/makefile-distfiles.html#PORTING-MASTER-SITES-N>
Btw, port devel/portmk has code to select your nearest mirror by
geographic distance or latency.
-Oliver
More information about the freebsd-ports
mailing list