Summary: | misc/gkrellweather2: GrabWeather - default source URL for decoded METAR data sets has been shut down | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | etteldor | ||||
Component: | Individual Port(s) | Assignee: | Carlos J. Puga Medina <cpm> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | amdmi3, cpm | ||||
Priority: | --- | Keywords: | easy, patch, patch-ready | ||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
etteldor
2016-09-14 18:26:26 UTC
Thanks for the patch :) Waiting for mentor approval. Approved. Don't forget to bump PORTREVISION :) A commit references this bug: Author: cpm Date: Fri Sep 16 23:16:47 UTC 2016 New revision: 422284 URL: https://svnweb.freebsd.org/changeset/ports/422284 Log: - Fix METAR source URL - Bump PORTREVISION PR: 212693 Submitted by: etteldor@gmail.com Reviewed by: amdmi3 (mentor) Approved by: amdmi3 (mentor) Changes: head/misc/gkrellweather2/Makefile head/misc/gkrellweather2/files/patch-GrabWeather Committed! Thanks Thanks! pkg-desc should be updated to. I just noticed that it refers to http://www.nws.noaa.gov/oso/siteloc.shtml, which delivers a 404/not found. The new URL is http://www.nws.noaa.gov/tg/siteloc.php Another URL change. This is for gkrellweather.c Here's a full replacement for the existing files/patch-gkrellweather.c # diff -u gkrellweather.c.dist gkrellweather.c --- gkrellweather.c.orig 2009-01-11 19:15:02.000000000 +0100 +++ gkrellweather.c 2016-09-17 07:43:09.380410455 +0200 @@ -777,7 +777,7 @@ " switch interval - number of seconds (0 = never)" \ " between switching display\n") }; - static gchar url[] = "http://www.nws.noaa.gov/tg/siteloc.shtml"; + static gchar url[] = "http://www.nws.noaa.gov/tg/siteloc.php"; laptop = gtk_notebook_new(); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(laptop), GTK_POS_TOP); gtk_box_pack_start(GTK_BOX(tab), laptop, TRUE, TRUE, 0); @@ -986,7 +986,7 @@ options.windspeed_unit = 1; options.pressure_unit = 1; strcpy(options.station, DEFAULT_STATION_ID); - snprintf(options.command, 512, "/usr/share/gkrellm/GrabWeather %s", options.station); + snprintf(options.command, 512, "GrabWeather %s", options.station); options.command[511] = 0; snprintf(options.filename, 512, "%s/.wmWeatherReports/%s.dat", getenv("HOME"), options.station); @@ -998,6 +998,7 @@ gkrellm_init_plugin(void) { #ifdef ENABLE_NLS + bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8"); #endif /* ENABLE_NLS */ style_id = gkrellm_add_meter_style(&air_mon, STYLE_NAME); A commit references this bug: Author: cpm Date: Sat Sep 17 10:34:57 UTC 2016 New revision: 422307 URL: https://svnweb.freebsd.org/changeset/ports/422307 Log: - Add LICENSE_FILE - Update patch due another URL change - Regenerate patches with 'make makepatch' (pet portlint) - Update pkg-descr - Bump PORTREVISION PR: 212693 Submitted by: etteldor@gmail.com Approved by: amdmi3 (mentor) Changes: head/misc/gkrellweather2/Makefile head/misc/gkrellweather2/distinfo head/misc/gkrellweather2/files/patch-Makefile head/misc/gkrellweather2/files/patch-gkrellweather.c head/misc/gkrellweather2/pkg-descr Done! |