pkgsrc/misc/gkrellm-weather/patches/patch-aa
dholland 61f60877b1 Fix PR 44163 by setting PREFIX correctly within the package. While
here, add patch comments and remove pkglint. PKGREVISION -> 7.
2010-11-28 20:52:44 +00:00

15 lines
629 B
Text

$NetBSD: patch-aa,v 1.3 2010/11/28 20:52:44 dholland Exp $
Find GrabWeather where we install it.
--- gkrellweather.c.orig 2003-11-02 12:05:08.000000000 +0000
+++ gkrellweather.c 2003-11-02 12:05:23.000000000 +0000
@@ -983,7 +983,7 @@
options.windspeed_unit = 1;
options.pressure_unit = 1;
strcpy(options.station, DEFAULT_STATION_ID);
- sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s", options.station);
+ sprintf(options.command, "%s/bin/GrabWeather %s", PREFIX, options.station);
sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
getenv("HOME"), options.station);
}