Fix METAR data download

PR:		237400
Submitted by:	russo@bogodyn.org
MFH:		2019Q2
This commit is contained in:
Ganael LAPLANCHE 2019-04-23 10:02:21 +00:00
parent 95d56bc092
commit bfc04bf69f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499741
3 changed files with 29 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= flightgear PORTNAME= flightgear
PORTVERSION= 2018.3.2 PORTVERSION= 2018.3.2
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= games CATEGORIES= games
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R} MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}

View File

@ -0,0 +1,14 @@
# games/flightgear: METAR data won't download
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237400
--- src/Environment/realwx_ctrl.cxx.orig 2019-04-20 07:47:41 UTC
+++ src/Environment/realwx_ctrl.cxx
@@ -426,7 +426,7 @@ void NoaaMetarRealWxController::requestMetar
)
{
static const std::string NOAA_BASE_URL =
- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/";
+ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/";
class NoaaMetarGetRequest:
public simgear::HTTP::MemoryRequest
{

View File

@ -0,0 +1,14 @@
# games/flightgear: METAR data won't download
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237400
--- src/Main/metar_main.cxx.orig 2019-04-20 07:48:18 UTC
+++ src/Main/metar_main.cxx
@@ -539,7 +539,7 @@ int main(int argc, char *argv[])
try
{
static const std::string NOAA_BASE_URL =
- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/";
+ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/";
HTTP::MemoryRequest* mr = new HTTP::MemoryRequest
(
NOAA_BASE_URL