--- rrdweather-0.42.orig/debian/compat +++ rrdweather-0.42/debian/compat @@ -0,0 +1 @@ +5 --- rrdweather-0.42.orig/debian/cron.d +++ rrdweather-0.42/debian/cron.d @@ -0,0 +1,4 @@ +# +# weather db update for rrdweather +# +*/5 * * * * www-data /usr/share/rrdweather/rrdweather_cron.sh --- rrdweather-0.42.orig/debian/changelog +++ rrdweather-0.42/debian/changelog @@ -0,0 +1,51 @@ +rrdweather (0.42-0ubuntu1) jaunty; urgency=low + + * New upstream release + * Drop all patches: all are now integrated upstream (Thanks Sébastien!) + * Drop debian/rrdweather.conf and debian/rrdweather_cron.sh: integrated + upstream + * update debian/rules: no more dpatch and upstream files are now in a + files directory + * Bump standard to 3.8.0 (no changes needed) + * Move Homepage to it's own field + + -- Lionel Porcheron Sun, 07 Dec 2008 22:52:44 +0100 + +rrdweather (0.40-0ubuntu1) feisty; urgency=low + + * New upstream release + * debian/patches/01_set_configuration_file.dpatch: set a configuration file + in /etc instead of editing script files + * debian/patches/02_db_builder_remove_interactions.dpatch: remove + interactions and read informations from configuration file + * debian/patches/03_weather.cgi_modif.dpatch: change database location in + cgi-bin script + * debian/patches/04_weather_xhtml.dpatch: removed, it is now upstream + * former debian/patches/01_db_builder.dpatch, + debian/patches/02_db_update.dpatch, debian/patches/02_db_update.dpatch + debian/patches/03_weather.dpatch are now obsolete due to upstream code + change + * updating configuration file template (now rrdweather can graph several + cities) + * db_builder.sh and db_update.sh scripts now go in /usr/share/rrdweather + and no more in /usr/lib/rrdweather + * debian/control: Minor cleanup + * rrdweather.conf: remove city name (fetch by rrdweather now) and change + ZIP parameter to ZIPS (as rrdweather monitors now several cities) + * debian/cron.d: now call rrdweather_cron.sh which creates rrd database if + necessary (no need to run db_builder.sh first) + * debian/postinst: migrate rrdweather < 0.40 rrd database to new location + * debian/dirs: removed useless usr/share/doc/rrdweather + + -- Lionel Porcheron Wed, 07 Feb 2007 17:59:46 +0100 + +rrdweather (0.36-0ubuntu1) edgy; urgency=low + + * Initial release + * debian/patches/01_db_builder.dpatch : adjust user rights on the database + * debian/patches/02_db_update.dpatch : relocate the configuration and database + * debian/patches/03_weather.dpatch : relocate the configuration and database + * debian/patches/04_weather_xhtml.dpatch : HTML is made XHTML 1.1 compliant + + -- Lionel Porcheron Wed, 1 Mar 2006 00:35:18 +0100 + --- rrdweather-0.42.orig/debian/rules +++ rrdweather-0.42/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp + +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # copy files in the right destination + cp -a files/db_builder.sh $(CURDIR)/debian/rrdweather/usr/share/rrdweather + cp -a files/db_update.sh $(CURDIR)/debian/rrdweather/usr/share/rrdweather + cp -a files/rrdweather_cron.sh $(CURDIR)/debian/rrdweather/usr/share/rrdweather + chmod a+x $(CURDIR)/debian/rrdweather/usr/share/rrdweather/rrdweather_cron.sh + cp -a files/weather.cgi $(CURDIR)/debian/rrdweather/usr/lib/cgi-bin + + cp -a files/rrdweather.conf $(CURDIR)/debian/rrdweather/etc/ + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installcron + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- rrdweather-0.42.orig/debian/copyright +++ rrdweather-0.42/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Lionel Porcheron on +Wed, 1 Mar 2006 00:35:18 +0100. + +It was downloaded from http://www.wains.be/projects/rrdweather/ + +Upstream author: Sébastien Wains + +Copyright (C) 2006 Sébastien Wains + +License: + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- rrdweather-0.42.orig/debian/watch +++ rrdweather-0.42/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://www.wains.be/projects/pub/rrdweather-(.*).tar.gz + --- rrdweather-0.42.orig/debian/docs +++ rrdweather-0.42/debian/docs @@ -0,0 +1 @@ +README --- rrdweather-0.42.orig/debian/dirs +++ rrdweather-0.42/debian/dirs @@ -0,0 +1,4 @@ +etc +usr/lib/cgi-bin +usr/share/rrdweather +var/lib/rrdweather/db --- rrdweather-0.42.orig/debian/control +++ rrdweather-0.42/debian/control @@ -0,0 +1,15 @@ +Source: rrdweather +Section: admin +Priority: extra +Maintainer: Lionel Porcheron +Build-Depends: debhelper (>= 5.0.7) +Standards-Version: 3.8.0 +Homepage: http://www.wains.be/projects/rrdweather + +Package: rrdweather +Architecture: all +Depends: rrdtool (>=1.2.0), gawk|mawk|original-awk, wget, librrds-perl +Description: weather monitoring tool based on RRDtool and weather.com + RDWeather is a tool based on RRDtool and weather.com for weather monitoring. + It regularly collects weather data from a XML file and put them in + nice RRDtool graphs. --- rrdweather-0.42.orig/debian/postinst +++ rrdweather-0.42/debian/postinst @@ -0,0 +1,25 @@ +#!/bin/sh + +set -e + +. /etc/rrdweather.conf + +# Check for upgrading from the old model (rrdweather < 0.40) +# rrdweather is updated to the new location +if [ -f ${RRDDIR}/db/real.rrd ] +then + mkdir ${RRDDIR}/${ZIPS} + mv ${RRDDIR}/db/*.rrd ${RRDDIR}/${ZIPS} +fi + +# in case the user still have its old location +if [ -f ${RRDDIR}/real.rrd ] +then + mkdir ${RRDDIR}/${ZIPS} + mv ${RRDDIR}/*.rrd ${RRDDIR}/${ZIPS} +fi + +#DEBHELPER# + +exit 0 +