MFH: r499741

Fix METAR data download

PR:		237400
Submitted by:	russo@bogodyn.org

Approved by:	portmgr (miwi)
This commit is contained in:
Ganael LAPLANCHE 2019-04-24 10:13:48 +00:00
parent 3094b4b5d7
commit b6440305ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=499828
3 changed files with 29 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= flightgear
PORTVERSION= 2018.3.2
PORTREVISION= 1
CATEGORIES= games
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