Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2016 12:33:16 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429503 - in head/x11/temperature.app: . files
Message-ID:  <201612261233.uBQCXGpp093774@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Dec 26 12:33:16 2016
New Revision: 429503
URL: https://svnweb.freebsd.org/changeset/ports/429503

Log:
  - Fix wget argument, --cache=off -> --no-cache
  - Fix execlp call, terminate argument list with NULL instead of 0 (otherwise execve returns EFAULT)
  - Fix data url, as the previous one was discontinued
  
  PR:		212126
  Submitted by:	manny@computer.org

Modified:
  head/x11/temperature.app/Makefile
  head/x11/temperature.app/files/patch-Temperature.cc
  head/x11/temperature.app/files/patch-Temperature.h

Modified: head/x11/temperature.app/Makefile
==============================================================================
--- head/x11/temperature.app/Makefile	Mon Dec 26 12:32:00 2016	(r429502)
+++ head/x11/temperature.app/Makefile	Mon Dec 26 12:33:16 2016	(r429503)
@@ -3,7 +3,7 @@
 
 PORTNAME=	temperature.app
 PORTVERSION=	1.4
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	x11 windowmaker
 MASTER_SITES=	http://www.fukt.bsnet.se/~per/temperature/
 DISTNAME=	Temperature.app-${PORTVERSION}

Modified: head/x11/temperature.app/files/patch-Temperature.cc
==============================================================================
--- head/x11/temperature.app/files/patch-Temperature.cc	Mon Dec 26 12:32:00 2016	(r429502)
+++ head/x11/temperature.app/files/patch-Temperature.cc	Mon Dec 26 12:33:16 2016	(r429503)
@@ -1,5 +1,5 @@
---- Temperature.cc.bak	2002-04-06 08:44:09.000000000 +0900
-+++ Temperature.cc	2013-12-07 17:25:30.000000000 +0900
+--- Temperature.cc.bak	2016-08-24 21:28:41.551324000 -0400
++++ Temperature.cc	2016-08-24 21:26:25.860220000 -0400
 @@ -20,24 +20,29 @@
  //
  
@@ -39,3 +39,12 @@
  volatile static ChildStatus childStatus;
  
  static void catchBrokenPipe(int sig) 
+@@ -415,7 +420,7 @@
+             const char* verbose = (mVerbose ? "--verbose" : "--quiet");
+             char* URL = new char[strlen(METAR_URL) + strlen(mStationId) + 1];
+             sprintf(URL, METAR_URL, mStationId);
+-            execlp("wget", "wget", "--cache=off", "--tries=0", verbose, "-O", tmpFile, URL, 0);
++            execlp("wget", "wget", "--no-cache", "--tries=0", verbose, "-O", tmpFile, URL, NULL);
+             cerr << APPNAME << ": could not fetch temperature (wget not found in $PATH)" << endl;
+             remove(tmpFile);
+             exit(0);

Modified: head/x11/temperature.app/files/patch-Temperature.h
==============================================================================
--- head/x11/temperature.app/files/patch-Temperature.h	Mon Dec 26 12:32:00 2016	(r429502)
+++ head/x11/temperature.app/files/patch-Temperature.h	Mon Dec 26 12:33:16 2016	(r429503)
@@ -1,6 +1,6 @@
---- Temperature.h.bak	2002-04-06 08:44:17.000000000 +0900
-+++ Temperature.h	2013-12-07 17:24:28.000000000 +0900
-@@ -22,9 +22,11 @@
+--- Temperature.h.bak	2016-08-24 21:28:32.665119000 -0400
++++ Temperature.h	2016-08-24 21:26:20.577933000 -0400
+@@ -22,14 +22,16 @@
  #ifndef _TEMPERATURE_H_
  #define _TEMPERATURE_H_
  
@@ -13,3 +13,9 @@
  #define APPNAME                 "Temperature.app"
  #define VERSION                 "1.4"
  #define INSTANCENAME            "temperature_app"
+ #define CLASSNAME               "Temperature_app"
+-#define METAR_URL               "http://weather.noaa.gov/pub/data/observations/metar/decoded/%s.TXT"
++#define METAR_URL               "ftp://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT"
+ #define UPDATE_INTERVAL         900
+ #define TIME_POS                22
+ #define TEMP_POS                35



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612261233.uBQCXGpp093774>