I wrote a quick patch to implement user-override-able mirror urls for bootstrap-prefix.sh. It allows you to do this:

GNU_URL=ftp://some.mirror.tld/gnu ./bootstrap-prefix.sh

patch attached.

-jason pepas
--- bootstrap-prefix.sh.orig	2007-05-18 18:54:18.000000000 -0500
+++ bootstrap-prefix.sh	2007-05-18 18:54:13.000000000 -0500
@@ -538,9 +538,9 @@
 DISTDIR=${PORTDIR}/distfiles
 PORTAGE_TMPDIR=${ROOT}/var/tmp
 PORTAGE_URL="http://dev.gentoo.org/~grobian/distfiles";
-GNU_URL="http://ftp.gnu.org/gnu";
+GNU_URL=${GNU_URL:="http://ftp.gnu.org/gnu"}
 GCC_APPLE_URL="http://www.opensource.apple.com/darwinsource/tarballs/other";
-GENTOO_URL="http://gentoo.osuosl.org";
+GENTOO_URL=${GENTOO_URL:="http://gentoo.osuosl.org"}
 
 export CFLAGS CXXFLAGS MAKE
 

Reply via email to