summaryrefslogtreecommitdiff
blob: 10d7cfc994bc648dcb5d018a9a826857cdb79258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From dc0fed370865b49e9bcb2db2eb7ff21adec904a8 Mon Sep 17 00:00:00 2001
From: Jim Ramsay <lack@gentoo.org>
Date: Tue, 24 Aug 2010 12:23:25 -0400
Subject: [PATCH] Move GrabWeather script to $(PREFIX)/libexec/gkrellweather/

This is to avoid a file collision with x11-misc/bbweather (Bug #333289)
--- a/Makefile
+++ b/Makefile
@@ -38,13 +38,13 @@ install:
 	else \
 		install -D -c -s -m 644 gkrellweather.so $(PREFIX)/lib/gkrellm2/plugins/gkrellweather.so ; \
 	fi
-	install -c -m 755 GrabWeather $(PREFIX)/bin
+	install -D -c -m 755 GrabWeather $(PREFIX)/libexec/gkrellweather/
 
 uninstall:
 	(cd po && ${MAKE} uninstall )
 	rm -f /usr/lib/gkrellm2/plugins/gkrellweather.so
 	rm -f $(PREFIX)/lib/gkrellm2/plugins/gkrellweather.so
-	rm -f $(PREFIX)/bin/GrabWeather
+	rm -f $(PREFIX)/libexec/gkrellweather/GrabWeather
 
 dist:
 	rm -rf $(PKGNAME)-$(VERSION)
--- a/gkrellweather.c
+++ b/gkrellweather.c
@@ -721,7 +721,7 @@ apply_air_config (void)
         options.station[1] = c[1];
         options.station[2] = c[2];
         options.station[3] = c[3];
-        snprintf(options.command, 512, PREFIX "/bin/GrabWeather %s", options.station);
+        snprintf(options.command, 512, PREFIX "/libexec/gkrellweather/GrabWeather %s", options.station);
         options.command[511] = 0;
         snprintf(options.filename, 512, "%s/.wmWeatherReports/%s.dat",
                 getenv("HOME"), options.station);
@@ -986,7 +986,7 @@ read_default(void)
     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, PREFIX "/libexec/gkrellweather/GrabWeather %s", options.station);
     options.command[511] = 0;
     snprintf(options.filename, 512, "%s/.wmWeatherReports/%s.dat",
              getenv("HOME"), options.station);
-- 
1.7.2