From 1fefb19c820967ca8459414784fd4d859c3e24bd Mon Sep 17 00:00:00 2001 From: Janusz Mordarski Date: Fri, 22 Feb 2019 18:25:16 +0100 Subject: [PATCH 1/2] Change FreeTDS source server from FTP to HTTP --- ext/tiny_tds/extconsts.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/tiny_tds/extconsts.rb b/ext/tiny_tds/extconsts.rb index 2b216cfd..af2712e6 100644 --- a/ext/tiny_tds/extconsts.rb +++ b/ext/tiny_tds/extconsts.rb @@ -7,9 +7,9 @@ FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "1.00.27" FREETDS_VERSION_INFO = Hash.new { |h,k| - h[k] = {files: "ftp://ftp.freetds.org/pub/freetds/stable/freetds-#{k}.tar.bz2"} + h[k] = {files: "http://www.freetds.org/files/stable/freetds-#{k}.tar.bz2"} } -FREETDS_VERSION_INFO['1.00'] = {files: 'ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.tar.bz2'} -FREETDS_VERSION_INFO['0.99'] = {files: 'ftp://ftp.freetds.org/pub/freetds/current/freetds-dev.0.99.678.tar.gz'} -FREETDS_VERSION_INFO['0.95'] = {files: 'ftp://ftp.freetds.org/pub/freetds/stable/freetds-0.95.92.tar.gz'} +FREETDS_VERSION_INFO['1.00'] = {files: 'http://www.freetds.org/files/stable/freetds-1.00.tar.bz2'} +FREETDS_VERSION_INFO['0.99'] = {files: 'http://www.freetds.org/files/current/freetds-dev.0.99.678.tar.gz'} +FREETDS_VERSION_INFO['0.95'] = {files: 'http://www.freetds.org/files/stable/freetds-0.95.92.tar.gz'} FREETDS_SOURCE_URI = FREETDS_VERSION_INFO[FREETDS_VERSION][:files] From fbc2521aba06053c18232d2a278a74914d617e69 Mon Sep 17 00:00:00 2001 From: Janusz Mordarski Date: Fri, 22 Feb 2019 18:49:15 +0100 Subject: [PATCH 2/2] Update README and test install script --- README.md | 2 +- test/bin/install-freetds.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94fd6292..e69b3aef 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ $ apt-get wget $ apt-get install build-essential $ apt-get install libc6-dev -$ wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.21.tar.gz +$ wget http://www.freetds.org/files/stable/freetds-1.00.21.tar.gz $ tar -xzf freetds-1.00.21.tar.gz $ cd freetds-1.00.21 $ ./configure --prefix=/usr/local --with-tdsver=7.3 diff --git a/test/bin/install-freetds.sh b/test/bin/install-freetds.sh index 526f8d9d..d4ba3955 100755 --- a/test/bin/install-freetds.sh +++ b/test/bin/install-freetds.sh @@ -7,7 +7,7 @@ if [ -z "$FREETDS_VERSION" ]; then FREETDS_VERSION=$(ruby -r "./ext/tiny_tds/extconsts.rb" -e "puts FREETDS_VERSION") fi -wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-$FREETDS_VERSION.tar.gz +wget http://www.freetds.org/files/stable/freetds-$FREETDS_VERSION.tar.gz tar -xzf freetds-$FREETDS_VERSION.tar.gz cd freetds-$FREETDS_VERSION ./configure --prefix=/opt/local \