[patch] make index mirrorable
Valentin Nechayev
netch at lucky.net
Sat Dec 4 11:23:16 PST 2004
Is it reasonable to have only one place for index? I think no :)
INDEX.bz2 is very big (600K) and is candidate to be mirrored.
Patch (trivial) to support it for ports/Makefile follows.
--- Makefile.0 Sat Dec 4 21:18:22 2004
+++ Makefile Sat Dec 4 21:19:43 2004
@@ -70,8 +70,9 @@
@cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE}
fetchindex:
- @cd ${.CURDIR} && ${FETCHINDEX} http://www.FreeBSD.org/ports/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE}
+ @cd ${.CURDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE}
+MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/
FETCHINDEX?= fetch -am
INDEX_JOBS?= 2
-netch-
More information about the freebsd-ports
mailing list