Date: Sat, 4 Dec 2004 21:23:08 +0200 From: Valentin Nechayev <netch@lucky.net> To: ports@freebsd.org Subject: [patch] make index mirrorable Message-ID: <20041204192308.GD3080@lucky.net>
next in thread | raw e-mail | index | archive | help
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-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041204192308.GD3080>