pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/51463: Update for misc/gkrellm-weather
>Number: 51463
>Category: pkg
>Synopsis: Update for misc/gkrellm-weather
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Sep 07 19:00:00 +0000 2016
>Originator: Matthew Mondor
>Release: NetBSD 7.0_STABLE
>Organization:
>Environment:
System: NetBSD ninja.xisop 7.0_STABLE NetBSD 7.0_STABLE (GENERIC_MM) #0: Thu Jul 28 22:49:47 EDT 2016 root@ninja.xisop:/usr/obj/sys/arch/amd64/compile/GENERIC_MM amd64
Architecture: x86_64
Machine: amd64
>Description:
About 23 August 2016, gkrellm-weather stopped being able to update
weather, because of changes at NOAA. The websites in Makefile were also
obsolete. It appears that upstream still has not fixed the path, but
this package includes a patch doing this as well.
>How-To-Repeat:
>Fix:
Attached are both a cvs diff -u against pkgsrc-current and a shar
archive for the new package.
--MP_/KL7fGKEKcDL.+y_AWvdGQi5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=misc-gkrellm-weather.diff
Index: Makefile
===================================================================
RCS file: /data/rsync/netbsd-cvs/pkgsrc/misc/gkrellm-weather/Makefile,v
retrieving revision 1.62
diff -u -r1.62 Makefile
--- Makefile 3 Aug 2016 10:23:08 -0000 1.62
+++ Makefile 7 Sep 2016 18:37:35 -0000
@@ -1,14 +1,14 @@
# $NetBSD: Makefile,v 1.62 2016/08/03 10:23:08 adam Exp $
-DISTNAME= gkrellweather-2.0.7
-PKGNAME= gkrellm-weather-2.0.7
-PKGREVISION= 33
+DISTNAME= gkrellweather-2.0.8
+PKGNAME= gkrellm-weather-2.0.8
+PKGREVISION= 1
CATEGORIES= misc
-MASTER_SITES= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
+MASTER_SITES= https://sites.google.com/site/makovick/projects/
EXTRACT_SUFX= .tgz
-MAINTAINER= tripledes%eslack.org@localhost
-HOMEPAGE= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
+MAINTAINER= pkgsrc-users%netbsd.org@localhost
+HOMEPAGE= https://sites.google.com/site/makovick/gkrellm-plugins
COMMENT= Gkrellm2 weather plugin
DEPENDS+= wget>=1.8:../../net/wget
Index: distinfo
===================================================================
RCS file: /data/rsync/netbsd-cvs/pkgsrc/misc/gkrellm-weather/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- distinfo 3 Nov 2015 23:49:36 -0000 1.7
+++ distinfo 7 Sep 2016 18:41:14 -0000
@@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.7 2015/11/03 23:49:36 agc Exp $
-SHA1 (gkrellweather-2.0.7.tgz) = 53f62999a4aff018f6943b8b56dd9e54907754c3
-RMD160 (gkrellweather-2.0.7.tgz) = a8f92a45ea048c194970f5615e50c4b08120efe0
-SHA512 (gkrellweather-2.0.7.tgz) = 103212f5d8c66c512cf22689f5e64e886e2df57b963a2c01873f6d2044653653d2bd8d5804ed788f202e2bb2b7289090198434ddad363c124c047bcc530e04e3
-Size (gkrellweather-2.0.7.tgz) = 19968 bytes
-SHA1 (patch-aa) = 2c4850e84b873c3b3dbc2d1cf41123a9e2fffbce
-SHA1 (patch-ab) = e7ee2c8b3f4302b4b733ed668fae25746530cd8c
+SHA1 (gkrellweather-2.0.8.tgz) = 355ea882c0519baa66d102181452c6721755fd89
+RMD160 (gkrellweather-2.0.8.tgz) = d4625aaeec2eceb055dbf61b750e8d07258ca8b6
+SHA512 (gkrellweather-2.0.8.tgz) = da9408ebc9518fe805d3f0dd9496b4aeb805a2ab6566b619b61fc25c91122c0ee45e2a7b804206b2ee08300309dd9b1e1c3b6605a41c594cf75fd39b58767264
+Size (gkrellweather-2.0.8.tgz) = 20227 bytes
+SHA1 (patch-aa) = e7ee2c8b3f4302b4b733ed668fae25746530cd8c
+SHA1 (patch-ab) = 5faea0d564e7ecc92ed827b95d7f030d4273f985
Index: patches/patch-ab
===================================================================
RCS file: /data/rsync/netbsd-cvs/pkgsrc/misc/gkrellm-weather/patches/patch-ab,v
retrieving revision 1.2
diff -u -r1.2 patch-ab
--- patches/patch-ab 28 Nov 2010 20:52:44 -0000 1.2
+++ patches/patch-ab 7 Sep 2016 18:41:08 -0000
@@ -1,36 +1,16 @@
-$NetBSD: patch-ab,v 1.2 2010/11/28 20:52:44 dholland Exp $
+$NetBSD$
-- use pkgsrc-provided PREFIX and LOCALEDIR
-- fix pthread linkage
+Update NOAA link to weather information
---- Makefile.orig 2005-02-27 13:54:47.000000000 +0000
-+++ Makefile
-@@ -3,16 +3,16 @@ VERSION = 2.0.7
- CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
- LIBS = `pkg-config gtk+-2.0 --libs`
- LFLAGS = -shared
--PREFIX = /usr/local
-+#PREFIX = /usr/local
+--- GrabWeather.orig 2009-01-11 13:15:02.000000000 -0500
++++ GrabWeather 2016-09-07 14:38:27.000000000 -0400
+@@ -12,7 +12,8 @@
+
+ $ReportDir = '.wmWeatherReports';
+ #$WeatherSrc = 'ftp://weather.noaa.gov/data/observations/metar/decoded';
+-$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
++#$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
++$WeatherSrc = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded';
--LOCALEDIR := $(PREFIX)/share/locale
-+#LOCALEDIR := $(PREFIX)/share/locale
-
- ifeq ($(enable_nls),1)
- CFLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
- export enable_nls
- endif
- CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
--export PKGNAME LOCALEDIR
-+export PKGNAME #LOCALEDIR
-
- CC = gcc
-
-@@ -20,7 +20,7 @@ OBJS = gkrellweather.o
-
- gkrellweather.so: $(OBJS)
- (cd po && ${MAKE} all )
-- $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
-+ $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
-
- clean:
- (cd po && ${MAKE} clean )
+ use strict;
+ use vars qw( $ReportDir $WeatherSrc );
--MP_/KL7fGKEKcDL.+y_AWvdGQi5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=misc-gkrellm-weather.shar
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# gkrellm-weather
# gkrellm-weather/patches
# gkrellm-weather/DESCR
# gkrellm-weather/Makefile
# gkrellm-weather/PLIST
# gkrellm-weather/distinfo
# gkrellm-weather/patches/patch-aa
# gkrellm-weather/patches/patch-ab
#
echo c - gkrellm-weather
mkdir -p gkrellm-weather > /dev/null 2>&1
echo c - gkrellm-weather/patches
mkdir -p gkrellm-weather/patches > /dev/null 2>&1
echo x - gkrellm-weather/DESCR
sed 's/^X//' >gkrellm-weather/DESCR << 'END-of-gkrellm-weather/DESCR'
XGKrellM plugin which shows weather info from the US National Weather
XService
X
XFeatures
X- Choose the location nearest to you by 4-letter METAR station
X identifier code. (http://www.nws.noaa.gov/oso/siteloc.shtml)
X- Monitor temperature, dew point, pressure, relative humidity, sky
X condition, wind direction and speed
X- Display using imperial units (degrees Fareheight, inches of
X Mercury, miles per hour)
X- Display using metric units (degrees Celsius, millimeters of
X Mercury, kilometers per hour)
X- Display pressure in kPa, hPa and mmHg
X- Display wind speeds in kmph, mps and beaufort scale
END-of-gkrellm-weather/DESCR
echo x - gkrellm-weather/Makefile
sed 's/^X//' >gkrellm-weather/Makefile << 'END-of-gkrellm-weather/Makefile'
X# $NetBSD: Makefile,v 1.62 2016/08/03 10:23:08 adam Exp $
X
XDISTNAME= gkrellweather-2.0.8
XPKGNAME= gkrellm-weather-2.0.8
XPKGREVISION= 1
XCATEGORIES= misc
XMASTER_SITES= https://sites.google.com/site/makovick/projects/
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= pkgsrc-users%netbsd.org@localhost
XHOMEPAGE= https://sites.google.com/site/makovick/gkrellm-plugins
XCOMMENT= Gkrellm2 weather plugin
X
XDEPENDS+= wget>=1.8:../../net/wget
X
XUSE_TOOLS+= gmake msgfmt perl:run pkg-config
XUSE_PKGLOCALEDIR= YES
XREPLACE_PERL= GrabWeather
XBUILD_TARGET= gkrellweather.so
X
XLOCALEDIR= ${PREFIX}/${PKGLOCALEDIR}/locale
XINSTALLATION_DIRS= bin lib lib/gkrellm2/plugins
X
XMAKE_ENV+= LOCALEDIR=${LOCALEDIR}
XMAKE_ENV+= enable_nls=1
X
Xdo-install:
X ${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${DESTDIR}${PREFIX}/bin
X ${INSTALL_LIB} ${WRKSRC}/gkrellweather.so \
X ${DESTDIR}${PREFIX}/lib/gkrellm2/plugins
X set -e; cd ${WRKSRC}/po && for f in *.mo; do \
X base=`basename "$$f" .mo`; \
X modir=${DESTDIR}${LOCALEDIR}/"$${base}"/LC_MESSAGES; \
X ${INSTALL_DATA_DIR} "$${modir}"; \
X ${INSTALL_DATA} "$$f" "$${modir}"/gkrellweather.mo; \
X done
X
X.include "../../sysutils/gkrellm/buildlink3.mk"
X.include "../../x11/gtk2/buildlink3.mk"
X.include "../../mk/pthread.buildlink3.mk"
X
X.include "../../mk/bsd.pkg.mk"
END-of-gkrellm-weather/Makefile
echo x - gkrellm-weather/PLIST
sed 's/^X//' >gkrellm-weather/PLIST << 'END-of-gkrellm-weather/PLIST'
X@comment $NetBSD: PLIST,v 1.3 2006/04/17 07:07:25 jlam Exp $
Xbin/GrabWeather
Xlib/gkrellm2/plugins/gkrellweather.so
Xshare/locale/ru/LC_MESSAGES/gkrellweather.mo
END-of-gkrellm-weather/PLIST
echo x - gkrellm-weather/distinfo
sed 's/^X//' >gkrellm-weather/distinfo << 'END-of-gkrellm-weather/distinfo'
X$NetBSD: distinfo,v 1.7 2015/11/03 23:49:36 agc Exp $
X
XSHA1 (gkrellweather-2.0.8.tgz) = 355ea882c0519baa66d102181452c6721755fd89
XRMD160 (gkrellweather-2.0.8.tgz) = d4625aaeec2eceb055dbf61b750e8d07258ca8b6
XSHA512 (gkrellweather-2.0.8.tgz) = da9408ebc9518fe805d3f0dd9496b4aeb805a2ab6566b619b61fc25c91122c0ee45e2a7b804206b2ee08300309dd9b1e1c3b6605a41c594cf75fd39b58767264
XSize (gkrellweather-2.0.8.tgz) = 20227 bytes
XSHA1 (patch-aa) = e7ee2c8b3f4302b4b733ed668fae25746530cd8c
XSHA1 (patch-ab) = 5faea0d564e7ecc92ed827b95d7f030d4273f985
END-of-gkrellm-weather/distinfo
echo x - gkrellm-weather/patches/patch-aa
sed 's/^X//' >gkrellm-weather/patches/patch-aa << 'END-of-gkrellm-weather/patches/patch-aa'
X$NetBSD: patch-ab,v 1.2 2010/11/28 20:52:44 dholland Exp $
X
X- use pkgsrc-provided PREFIX and LOCALEDIR
X- fix pthread linkage
X
X--- Makefile.orig 2005-02-27 13:54:47.000000000 +0000
X+++ Makefile
X@@ -3,16 +3,16 @@ VERSION = 2.0.7
X CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
X LIBS = `pkg-config gtk+-2.0 --libs`
X LFLAGS = -shared
X-PREFIX = /usr/local
X+#PREFIX = /usr/local
X
X-LOCALEDIR := $(PREFIX)/share/locale
X+#LOCALEDIR := $(PREFIX)/share/locale
X
X ifeq ($(enable_nls),1)
X CFLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
X export enable_nls
X endif
X CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
X-export PKGNAME LOCALEDIR
X+export PKGNAME #LOCALEDIR
X
X CC = gcc
X
X@@ -20,7 +20,7 @@ OBJS = gkrellweather.o
X
X gkrellweather.so: $(OBJS)
X (cd po && ${MAKE} all )
X- $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
X+ $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
X
X clean:
X (cd po && ${MAKE} clean )
END-of-gkrellm-weather/patches/patch-aa
echo x - gkrellm-weather/patches/patch-ab
sed 's/^X//' >gkrellm-weather/patches/patch-ab << 'END-of-gkrellm-weather/patches/patch-ab'
X$NetBSD$
X
XUpdate NOAA link to weather information
X
X--- GrabWeather.orig 2009-01-11 13:15:02.000000000 -0500
X+++ GrabWeather 2016-09-07 14:38:27.000000000 -0400
X@@ -12,7 +12,8 @@
X
X $ReportDir = '.wmWeatherReports';
X #$WeatherSrc = 'ftp://weather.noaa.gov/data/observations/metar/decoded';
X-$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
X+#$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
X+$WeatherSrc = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded';
X
X use strict;
X use vars qw( $ReportDir $WeatherSrc );
END-of-gkrellm-weather/patches/patch-ab
exit
--MP_/KL7fGKEKcDL.+y_AWvdGQi5--
>Unformatted:
--MP_/KL7fGKEKcDL.+y_AWvdGQi5
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Home |
Main Index |
Thread Index |
Old Index