Permalink
Browse files

Use automatic mirror selection for GNU downloads

It seems that the main GNU download site has issues in some places
outside the U.S., so we'll use the provided "ftpmirror.gnu.org" to pick
a nearby mirror.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 93a1fc6 commit d0dfc22b504062808119afd95322ef88f0e4b79b @jacknagel jacknagel committed Sep 12, 2011
Showing with 160 additions and 160 deletions.
  1. +1 −1 Library/Formula/a2ps.rb
  2. +1 −1 Library/Formula/adns.rb
  3. +91 −91 Library/Formula/aspell.rb
  4. +1 −1 Library/Formula/auctex.rb
  5. +2 −2 Library/Formula/bash.rb
  6. +1 −1 Library/Formula/binutils.rb
  7. +1 −1 Library/Formula/cflow.rb
  8. +1 −1 Library/Formula/clisp.rb
  9. +1 −1 Library/Formula/coreutils.rb
  10. +1 −1 Library/Formula/ddd.rb
  11. +1 −1 Library/Formula/ddrescue.rb
  12. +1 −1 Library/Formula/deja-gnu.rb
  13. +1 −1 Library/Formula/diction.rb
  14. +1 −1 Library/Formula/emacs.rb
  15. +1 −1 Library/Formula/findutils.rb
  16. +1 −1 Library/Formula/gawk.rb
  17. +1 −1 Library/Formula/gcal.rb
  18. +1 −1 Library/Formula/gdbm.rb
  19. +1 −1 Library/Formula/gengetopt.rb
  20. +1 −1 Library/Formula/gettext.rb
  21. +1 −1 Library/Formula/glpk.rb
  22. +1 −1 Library/Formula/gmp.rb
  23. +1 −1 Library/Formula/gnu-barcode.rb
  24. +2 −2 Library/Formula/gnu-chess.rb
  25. +1 −1 Library/Formula/gnu-go.rb
  26. +1 −1 Library/Formula/gnu-sed.rb
  27. +1 −1 Library/Formula/gnu-smalltalk.rb
  28. +1 −1 Library/Formula/gnu-tar.rb
  29. +1 −1 Library/Formula/gnu-time.rb
  30. +1 −1 Library/Formula/gnu-typist.rb
  31. +1 −1 Library/Formula/gnu-units.rb
  32. +1 −1 Library/Formula/gnutls.rb
  33. +1 −1 Library/Formula/gsl.rb
  34. +2 −2 Library/Formula/guile.rb
  35. +1 −1 Library/Formula/help2man.rb
  36. +1 −1 Library/Formula/idutils.rb
  37. +1 −1 Library/Formula/jwhois.rb
  38. +1 −1 Library/Formula/libcdio.rb
  39. +1 −1 Library/Formula/libgsasl.rb
  40. +1 −1 Library/Formula/libiconv.rb
  41. +1 −1 Library/Formula/libidn.rb
  42. +1 −1 Library/Formula/libmicrohttpd.rb
  43. +1 −1 Library/Formula/libosip.rb
  44. +1 −1 Library/Formula/libsigsegv.rb
  45. +1 −1 Library/Formula/libtasn1.rb
  46. +1 −1 Library/Formula/libunistring.rb
  47. +1 −1 Library/Formula/lightning.rb
  48. +1 −1 Library/Formula/mit-scheme.rb
  49. +1 −1 Library/Formula/ocrad.rb
  50. +1 −1 Library/Formula/octave.rb
  51. +1 −1 Library/Formula/parallel.rb
  52. +1 −1 Library/Formula/pth.rb
  53. +2 −2 Library/Formula/readline.rb
  54. +1 −1 Library/Formula/recutils.rb
  55. +1 −1 Library/Formula/rush.rb
  56. +1 −1 Library/Formula/shtool.rb
  57. +1 −1 Library/Formula/source-highlight.rb
  58. +1 −1 Library/Formula/spidermonkey.rb
  59. +1 −1 Library/Formula/stow.rb
  60. +1 −1 Library/Formula/texinfo.rb
  61. +1 −1 Library/Formula/tin.rb
  62. +1 −1 Library/Formula/unrtf.rb
  63. +1 −1 Library/Formula/vcdimager.rb
  64. +1 −1 Library/Formula/wdiff.rb
  65. +1 −1 Library/Formula/wget.rb
  66. +1 −1 Library/Formula/zile.rb
@@ -1,7 +1,7 @@
require 'formula'
class A2ps < Formula
- url 'http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz'
+ url 'http://ftpmirror.gnu.org/a2ps/a2ps-4.14.tar.gz'
homepage 'http://www.gnu.org/software/a2ps/'
md5 '781ac3d9b213fa3e1ed0d79f986dc8c7'
@@ -1,7 +1,7 @@
require 'formula'
class Adns < Formula
- url 'http://ftp.gnu.org/gnu/adns/adns-1.3.tar.gz'
+ url 'http://ftpmirror.gnu.org/adns/adns-1.3.tar.gz'
homepage 'http://www.chiark.greenend.org.uk/~ian/adns/'
md5 'd19cddcc11ce3183549bab7f136e0f73'
Oops, something went wrong.
@@ -1,7 +1,7 @@
require 'formula'
class Auctex < Formula
- url 'http://ftp.gnu.org/pub/gnu/auctex/auctex-11.86.tar.gz'
+ url 'http://ftpmirror.gnu.org/auctex/auctex-11.86.tar.gz'
homepage 'http://ftp.gnu.org/pub/gnu/auctex'
md5 '6bc33a67b6ac59db1aa238f3693b36d2'
@@ -2,15 +2,15 @@
class Bash < Formula
homepage 'http://www.gnu.org/software/bash/'
- url 'ftp://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz'
+ url 'http://ftpmirror.gnu.org/bash/bash-4.2.tar.gz'
sha256 'a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8'
version '4.2.10'
depends_on 'readline'
def patches
patch_level = version.split('.').last.to_i
- {'p0' => (1..patch_level).map { |i| "http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-%03d" % i }}
+ {'p0' => (1..patch_level).map { |i| "http://ftpmirror.gnu.org/bash/bash-4.2-patches/bash42-%03d" % i }}
end
def install
@@ -1,7 +1,7 @@
require 'formula'
class Binutils < Formula
- url 'http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2'
+ url 'http://ftpmirror.gnu.org/binutils/binutils-2.21.1a.tar.bz2'
homepage 'http://www.gnu.org/software/binutils/binutils.html'
md5 'bde820eac53fa3a8d8696667418557ad'
@@ -1,7 +1,7 @@
require 'formula'
class Cflow < Formula
- url 'http://ftp.gnu.org/gnu/cflow/cflow-1.3.tar.bz2'
+ url 'http://ftpmirror.gnu.org/cflow/cflow-1.3.tar.bz2'
homepage 'http://www.gnu.org/software/cflow/'
md5 'b3fe4bfba9d648447065b3c2d73ae66c'
@@ -1,7 +1,7 @@
require 'formula'
class Clisp < Formula
- url 'http://ftp.gnu.org/pub/gnu/clisp/release/2.49/clisp-2.49.tar.bz2'
+ url 'http://ftpmirror.gnu.org/clisp/release/2.49/clisp-2.49.tar.bz2'
homepage 'http://clisp.cons.org/'
md5 '1962b99d5e530390ec3829236d168649'
@@ -27,7 +27,7 @@ def coreutils_aliases
class Coreutils < Formula
homepage 'http://www.gnu.org/software/coreutils'
- url 'ftp://ftp.gnu.org/gnu/coreutils/coreutils-8.12.tar.gz'
+ url 'http://ftpmirror.gnu.org/coreutils/coreutils-8.12.tar.gz'
sha256 '9e233a62c98a3378a7b0483d2ae3d662dbaf6cd3917d3830d3514665e12a85c8'
def options
@@ -1,7 +1,7 @@
require 'formula'
class Ddd < Formula
- url 'http://ftp.gnu.org/gnu/ddd/ddd-3.3.12.tar.gz'
+ url 'http://ftpmirror.gnu.org/ddd/ddd-3.3.12.tar.gz'
homepage 'http://www.gnu.org/s/ddd/'
md5 'c50396db7bac3862a6d2555b3b22c34e'
@@ -1,7 +1,7 @@
require 'formula'
class Ddrescue < Formula
- url 'http://ftp.gnu.org/gnu/ddrescue/ddrescue-1.14.tar.gz'
+ url 'http://ftpmirror.gnu.org/ddrescue/ddrescue-1.14.tar.gz'
homepage 'http://www.gnu.org/software/ddrescue/ddrescue.html'
md5 'd6f6cc63df9ad352bc6e43b65c975af5'
@@ -1,7 +1,7 @@
require 'formula'
class DejaGnu < Formula
- url 'ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-1.5.tar.gz'
+ url 'http://ftpmirror.gnu.org/dejagnu/dejagnu-1.5.tar.gz'
homepage 'http://www.gnu.org/software/dejagnu/'
md5 '3df1cbca885e751e22d3ebd1ac64dc3c'
head 'git://git.sv.gnu.org/dejagnu.git'
@@ -1,7 +1,7 @@
require 'formula'
class Diction < Formula
- url 'http://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz'
+ url 'http://ftpmirror.gnu.org/diction/diction-1.11.tar.gz'
homepage 'http://www.gnu.org/software/diction/'
md5 '4cbdb115c976d7141f54b223df28012e'
@@ -1,7 +1,7 @@
require 'formula'
class Emacs < Formula
- url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2'
+ url 'http://ftpmirror.gnu.org/emacs/emacs-23.3a.tar.bz2'
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c'
homepage 'http://www.gnu.org/software/emacs/'
@@ -1,7 +1,7 @@
require 'formula'
class Findutils < Formula
- url 'http://ftp.gnu.org/pub/gnu/findutils/findutils-4.4.2.tar.gz'
+ url 'http://ftpmirror.gnu.org/findutils/findutils-4.4.2.tar.gz'
homepage 'http://www.gnu.org/software/findutils/'
md5 '351cc4adb07d54877fa15f75fb77d39f'
@@ -1,7 +1,7 @@
require 'formula'
class Gawk < Formula
- url 'http://ftp.gnu.org/gnu/gawk/gawk-4.0.0.tar.bz2'
+ url 'http://ftpmirror.gnu.org/gawk/gawk-4.0.0.tar.bz2'
homepage 'http://www.gnu.org/software/gawk/'
md5 '7cdc48e99b885a4bbe0e98dcf1706b22'
@@ -1,7 +1,7 @@
require 'formula'
class Gcal < Formula
- url 'http://ftp.gnu.org/gnu/gcal/gcal-3.6.1.tar.gz'
+ url 'http://ftpmirror.gnu.org/gcal/gcal-3.6.1.tar.gz'
homepage 'http://www.gnu.org/software/gcal/'
md5 'a89e96db054a8b23ff6cd97049527a4f'
@@ -1,7 +1,7 @@
require 'formula'
class Gdbm < Formula
- url 'ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.9.1.tar.gz'
+ url 'http://ftpmirror.gnu.org/gdbm/gdbm-1.9.1.tar.gz'
homepage 'http://www.gnu.org/software/gdbm/'
md5 '59f6e4c4193cb875964ffbe8aa384b58'
@@ -1,7 +1,7 @@
require 'formula'
class Gengetopt < Formula
- url 'ftp://ftp.gnu.org/gnu/gengetopt/gengetopt-2.22.4.tar.gz'
+ url 'http://ftpmirror.gnu.org/gengetopt/gengetopt-2.22.4.tar.gz'
homepage 'http://www.gnu.org/software/gengetopt/'
md5 'e69d1b051784eb3a1c9fae36cb8b25ea'
@@ -1,7 +1,7 @@
require 'formula'
class Gettext < Formula
- url 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz'
+ url 'http://ftpmirror.gnu.org/gettext/gettext-0.18.1.1.tar.gz'
md5 '3dd55b952826d2b32f51308f2f91aa89'
homepage 'http://www.gnu.org/software/gettext/'
@@ -1,7 +1,7 @@
require 'formula'
class Glpk < Formula
- url 'http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz'
+ url 'http://ftpmirror.gnu.org/glpk/glpk-4.47.tar.gz'
homepage 'http://www.gnu.org/software/glpk/'
md5 '8653bf20c1f7db96b9ed369a8598a1ce'
@@ -1,7 +1,7 @@
require 'formula'
class Gmp < Formula
- url 'ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.2.tar.bz2'
+ url 'http://ftpmirror.gnu.org/gmp/gmp-5.0.2.tar.bz2'
homepage 'http://gmplib.org/'
sha1 '2968220e1988eabb61f921d11e5d2db5431e0a35'
@@ -1,7 +1,7 @@
require 'formula'
class GnuBarcode < Formula
- url 'ftp://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz'
+ url 'http://ftpmirror.gnu.org/barcode/barcode-0.98.tar.gz'
homepage 'http://www.gnu.org/software/barcode/barcode.html'
md5 '7f10c3307b84a19a4ab2fa4b3f2974da'
@@ -1,7 +1,7 @@
require 'formula'
class GnuChess < Formula
- url 'http://ftp.gnu.org/pub/gnu/chess/gnuchess-5.07.tar.gz'
+ url 'http://ftpmirror.gnu.org/chess/gnuchess-5.07.tar.gz'
homepage 'http://www.gnu.org/software/chess/'
md5 '259da00aa559e5624c65279484fccaf7'
@@ -21,7 +21,7 @@ def install
# Opening book for gnuchess. This can be put in the doc directory and the
# user can optionally add the opening book. The README has details on
# adding the opening book.
- book_url = "http://ftp.gnu.org/pub/gnu/chess/book_1.01.pgn.gz"
+ book_url = "http://ftpmirror.gnu.org/chess/book_1.01.pgn.gz"
ohai "Downloading #{book_url}"
curl book_url, "-O"
@@ -1,7 +1,7 @@
require 'formula'
class GnuGo < Formula
- url 'http://ftp.gnu.org/gnu/gnugo/gnugo-3.8.tar.gz'
+ url 'http://ftpmirror.gnu.org/gnugo/gnugo-3.8.tar.gz'
homepage 'http://www.gnu.org/software/gnugo/gnugo.html'
md5 '6db0a528df58876d2b0ef1659c374a9a'
@@ -1,7 +1,7 @@
require 'formula'
class GnuSed < Formula
- url 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
+ url 'http://ftpmirror.gnu.org/sed/sed-4.2.1.tar.bz2'
homepage 'http://www.gnu.org/software/sed/'
md5 '7d310fbd76e01a01115075c1fd3f455a'
@@ -10,7 +10,7 @@
# * gdbm
class GnuSmalltalk < Formula
- url 'ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.2.2.tar.gz'
+ url 'http://ftpmirror.gnu.org/smalltalk/smalltalk-3.2.2.tar.gz'
homepage 'http://smalltalk.gnu.org/'
sha1 'a985d69e4760420614c9dfe4d3605e47c5eb8faa'
@@ -1,7 +1,7 @@
require 'formula'
class GnuTar < Formula
- url 'ftp://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz'
+ url 'http://ftpmirror.gnu.org/tar/tar-1.26.tar.gz'
homepage 'http://www.gnu.org/software/tar/'
md5 '00d1e769c6af702c542cca54b728920d'
@@ -1,7 +1,7 @@
require 'formula'
class GnuTime < Formula
- url 'http://ftp.gnu.org/gnu/time/time-1.7.tar.gz'
+ url 'http://ftpmirror.gnu.org/time/time-1.7.tar.gz'
homepage 'http://www.gnu.org/software/time/'
md5 'e38d2b8b34b1ca259cf7b053caac32b3'
@@ -1,7 +1,7 @@
require 'formula'
class GnuTypist < Formula
- url 'http://ftp.gnu.org/gnu/gtypist/gtypist-2.8.3.tar.bz2'
+ url 'http://ftpmirror.gnu.org/gtypist/gtypist-2.8.3.tar.bz2'
homepage 'http://www.gnu.org/software/gtypist/'
md5 '43be4b69315a202cccfed0efd011d66c'
@@ -1,7 +1,7 @@
require 'formula'
class GnuUnits < Formula
- url 'http://ftp.gnu.org/gnu/units/units-1.88.tar.gz'
+ url 'http://ftpmirror.gnu.org/units/units-1.88.tar.gz'
homepage 'http://www.gnu.org/software/units/'
md5 '9b2ee6e7e0e9c62741944cf33fc8a656'
@@ -2,7 +2,7 @@
class Gnutls < Formula
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
- url 'ftp://ftp.gnu.org/gnu/gnutls/gnutls-2.12.5.tar.bz2'
+ url 'http://ftpmirror.gnu.org/gnutls/gnutls-2.12.5.tar.bz2'
sha256 'bf263880f327ac34a561d8e66b5a729cbe33eea56728bfed3406ff2898448b60'
depends_on 'pkg-config' => :build
@@ -1,7 +1,7 @@
require 'formula'
class Gsl < Formula
- url 'ftp://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz'
+ url 'http://ftpmirror.gnu.org/gsl/gsl-1.15.tar.gz'
homepage 'http://www.gnu.org/software/gsl/'
md5 '494ffefd90eef4ada678c306bab4030b'
@@ -2,8 +2,8 @@
class Guile < Formula
homepage 'http://www.gnu.org/software/guile/'
- url 'ftp://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
- head 'ftp://ftp.gnu.org/pub/gnu/guile/guile-2.0.2.tar.gz'
+ url 'http://ftpmirror.gnu.org/guile/guile-1.8.7.tar.gz'
+ head 'http://ftpmirror.gnu.org/guile/guile-2.0.2.tar.gz'
if ARGV.build_head?
sha1 '1943fd22417ce1e51babbdcd7681e66a794a8da3'
@@ -1,7 +1,7 @@
require 'formula'
class Help2man < Formula
- url 'http://ftp.gnu.org/gnu/help2man/help2man-1.40.4.tar.gz'
+ url 'http://ftpmirror.gnu.org/help2man/help2man-1.40.4.tar.gz'
homepage 'http://www.gnu.org/software/help2man/'
md5 '4d79dc7cb7c20019c2a3650d35259c45'
@@ -1,7 +1,7 @@
require 'formula'
class Idutils < Formula
- url 'http://ftp.gnu.org/gnu/idutils/idutils-4.5.tar.gz'
+ url 'http://ftpmirror.gnu.org/idutils/idutils-4.5.tar.gz'
homepage 'http://www.gnu.org/s/idutils/'
md5 '6c5082ee7f70578bb35d4b6669d9e14c'
@@ -1,7 +1,7 @@
require 'formula'
class Jwhois < Formula
- url 'http://ftp.gnu.org/pub/gnu/jwhois/jwhois-4.0.tar.gz'
+ url 'http://ftpmirror.gnu.org/jwhois/jwhois-4.0.tar.gz'
homepage 'http://directory.fsf.org/project/jwhois/'
md5 '977d0ba90ee058a7998c94d933fc9546'
@@ -1,7 +1,7 @@
require 'formula'
class Libcdio < Formula
- url 'http://ftp.gnu.org/gnu/libcdio/libcdio-0.82.tar.gz'
+ url 'http://ftpmirror.gnu.org/libcdio/libcdio-0.82.tar.gz'
md5 '1c29b18e01ab2b966162bc727bf3c360'
homepage 'http://www.gnu.org/software/libcdio/'
@@ -1,7 +1,7 @@
require 'formula'
class Libgsasl < Formula
- url 'ftp://ftp.gnu.org/gnu/gsasl/libgsasl-1.6.1.tar.gz'
+ url 'http://ftpmirror.gnu.org/gsasl/libgsasl-1.6.1.tar.gz'
homepage 'http://www.gnu.org/software/gsasl/'
md5 '143ab88d06a5217915e6b649d7ffc018'
@@ -1,7 +1,7 @@
require 'formula'
class Libiconv < Formula
- url 'http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz'
+ url 'http://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz'
homepage 'http://www.gnu.org/software/libiconv/'
md5 'e34509b1623cec449dfeb73d7ce9c6c6'
@@ -2,7 +2,7 @@
class Libidn < Formula
homepage 'http://www.gnu.org/software/libidn/'
- url 'http://ftp.gnu.org/gnu/libidn/libidn-1.22.tar.gz'
+ url 'http://ftpmirror.gnu.org/libidn/libidn-1.22.tar.gz'
sha256 '2f765e868795f5478900ec9f42cb0ecc6ca22e2a85a62763c0b13c7da2f588ed'
depends_on 'pkg-config' => :build
@@ -1,7 +1,7 @@
require 'formula'
class Libmicrohttpd < Formula
- url 'ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.13.tar.gz'
+ url 'http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.13.tar.gz'
homepage 'http://www.gnu.org/software/libmicrohttpd/'
md5 'f826b70228cb0987c56515436a8e0fd7'
@@ -1,7 +1,7 @@
require 'formula'
class Libosip < Formula
- url 'http://ftp.gnu.org/gnu/osip/libosip2-3.3.0.tar.gz'
+ url 'http://ftpmirror.gnu.org/osip/libosip2-3.3.0.tar.gz'
homepage 'http://www.gnu.org/software/osip/'
md5 '81493bb4d4ae6d55b71a0d4369339125'
Oops, something went wrong.

0 comments on commit d0dfc22

Please sign in to comment.