debian/0000755000000000000000000000000012171570247007174 5ustar debian/patches/0000755000000000000000000000000012171570247010623 5ustar debian/patches/manpage.diff0000644000000000000000000000210412171570247013062 0ustar From: Franck Joncourt Subject: [PATCH] fixes/manpage Update the manpage to help people setup filter. The manpage mentions the *return data* statement required for the example filter to work out of the box by a simple copy/paste (Closes: #609312) Signed-off-by: Franck Joncourt diff --git a/urlwatch.1 b/urlwatch.1 index 012b708..e756665 100644 --- a/urlwatch.1 +++ b/urlwatch.1 @@ -43,6 +43,7 @@ in your hooks.py file: if url.endswith('.ics'): return ical2txt.ical2text(data).encode('utf-8') + data # ...you can add more hooks here... + return data .SS HTML TO TEXT CONVERSION There are three methods of converting HTML to text in the current version of urlwatch: "lynx" (default), "html2text" and "re". The former two use @@ -56,6 +57,7 @@ Here is an example of using it in your hooks.py file: if url.endswith('.html') or url.endswith('.htm'): return html2txt.html2text(data, method='lynx') # ...you can add more hooks here... + return data .SH "FILES" .TP .B ~/.urlwatch/urls.txt debian/patches/examples_path.diff0000644000000000000000000000205612171570247014312 0ustar From: Franck Joncourt Subject: [PATCH] fixes/examples_path Update the path to the example files. On Debian systems the embedded docs are moved to /usr/share/doc/urlwatch rather than /usr/share/urlwatch/examples (upstream way). When a user runs urlwatch for the first time, those example files are copied to the user's home directory, and thus the path need to be updated. Signed-off-by: Franck Joncourt --- urlwatch | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/urlwatch b/urlwatch index 06a9d8e..fc199fc 100755 --- a/urlwatch +++ b/urlwatch @@ -61,7 +61,7 @@ hooks_py = os.path.join(scripts_dir, 'hooks.py') if bindir == 'bin': # Assume we are installed in system - examples_dir = os.path.join(prefix, 'share', pkgname, 'examples') + examples_dir = os.path.join(prefix, 'share', 'doc', pkgname) else: # Assume we are not yet installed examples_dir = os.path.join(prefix, bindir, 'examples') -- tg: (16fdd1d..) fixes/examples_path (depends on: upstream) debian/patches/series0000644000000000000000000000004012171570247012032 0ustar examples_path.diff manpage.diff debian/urlwatch.docs0000644000000000000000000000007312171570247011677 0ustar README examples/hooks.py.example examples/urls.txt.example debian/watch0000644000000000000000000000011012171570247010215 0ustar version=3 http://thpinfo.com/2008/urlwatch/ urlwatch-([0-9.]+)\.tar\.gz debian/rules0000755000000000000000000000106412171570247010255 0ustar #!/usr/bin/make -f PROGRAM = $(shell dh_listpackages) DESTDIR = $(CURDIR)/debian/$(PROGRAM) DESTDIR_BIN = usr/bin DESTDIR_PRIV = usr/share/$(PROGRAM) DESTDIR_DOC = usr/share/$(PROGRAM)/examples %: dh $@ --with python2 override_dh_auto_install: dh_auto_install -- --install-lib=/$(DESTDIR_PRIV) mv $(DESTDIR)/$(DESTDIR_BIN)/$(PROGRAM) \ $(DESTDIR)/$(DESTDIR_PRIV)/$(PROGRAM).py rm -rvf $(DESTDIR)/$(DESTDIR_DOC) override_dh_link: dh_link $(DESTDIR_PRIV)/$(PROGRAM).py $(DESTDIR_BIN)/$(PROGRAM) override_dh_compress: dh_compress -X hooks.py.example debian/compat0000644000000000000000000000000212171570247010372 0ustar 7 debian/copyright0000644000000000000000000000354412171570247011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: urlwatch Upstream-Contact: Thomas Perl Source: http://thpinfo.com/2008/urlwatch/ Files: * Copyright: 2008-2012, Thomas Perl License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2008-2012, Franck Joncourt License: GPL-3+ Debian packaging is licensed under the GPL, version3 or later, and can be found in `/usr/share/common-licenses/GPL-3' on Debian systems. debian/changelog0000644000000000000000000000712312171570247011051 0ustar urlwatch (1.15-3) unstable; urgency=low * Bumped up Standards-Version up to 3.9.4: (no changes). * Switched to X-Python-Version rather than XS-Python-Version in d.control. * Switched to dh_python2 (Closes: #689002) : - d.rules : Added --with python2 arg for debhelper - d.control : Removed BDI on python-support but added BDI against python (>= 2.6.6-3~). * Fixed old URI as mentionned by lintian vcs-filed-not-canonical: - Replaced git.debian.org by anonscm.debian.org in d.control -- Franck Joncourt Wed, 17 Jul 2013 21:11:27 +0200 urlwatch (1.15-2) unstable; urgency=low * Added missing dependency in d.control against python-concurrent.futures (Closes: #688950). * Refreshed copyright holders in d.copyright. -- Franck Joncourt Thu, 27 Sep 2012 18:23:54 +0200 urlwatch (1.15-1) unstable; urgency=low * Imported Upstream version 1.15. (Closes: #647293) + Added BDI on python-concurrent.futures. * Updated years of copyrights in d.copyright. * Bumped up Standards-Version to 3.9.3: + Refreshed copyright holders and updated d.copyright to comply with the 1.0 machine-readable copyright file specification. * Added patch to fix filter example in the manpage (Closes: #609312). -- Franck Joncourt Wed, 26 Sep 2012 21:29:55 +0200 urlwatch (1.11-1) unstable; urgency=low * New upstream release. * Bumped up Standards-Version to 3.9.1: + Do not refer to the BSD licence in /usr/share/common-licenses anymore. As a matter of fact the license was already included in d.copyright. * Removed useless BD on dpkg. * d.copyright: + Refreshed to follow the latest DEP5. + Updated copyright years for upstream. * Updated d.rules to use override targets: + Updated versionned dependency on debhelper fom 7 to 7.0.50. -- Franck Joncourt Fri, 30 Jul 2010 19:14:16 +0200 urlwatch (1.10-1) unstable; urgency=low * New upstream release: + The title of the manpage is now updated. Removed manpage.diff patch. * Bumped up Standards-Version to 3.8.4 (no change). -- Franck Joncourt Sun, 23 May 2010 20:19:08 +0200 urlwatch (1.9-2) unstable; urgency=low * Refreshed maintainer email address: + d.control: Updated email address and removed DM-Upload-Allowed flag. + d.copyright: Refreshed email address. * Upgraded to python2.6: + d.rules: Use of --install-layout=deb. * Switch to dpkg-source 3.0 (quilt) format. + Removed useless README.source which only documented the quilt usage. + Removed quilt framework (d.control, d.rules). + Added new BD against dpkg (>= 1.15.5.4) in d.control. -- Franck Joncourt Sun, 17 Jan 2010 14:22:21 +0100 urlwatch (1.9-1) unstable; urgency=low * New upstream Version. * Bumped up Standards-Version to 3.8.3 (no change). * Added patch manpage.diff to fix title of the manpage. -- Franck Joncourt Thu, 01 Oct 2009 08:35:16 +0200 urlwatch (1.8-1) unstable; urgency=low * New Upstream Version * Bumped up Standards-Version to 3.8.2 (no change). * Fixed crash due to httplib exceptions (BadStatusLine) not handled. (Closes: #529740) -- Franck Joncourt Mon, 10 Aug 2009 16:45:18 +0200 urlwatch (1.7-1) unstable; urgency=low * New Upstream Version -- Franck Joncourt Mon, 05 Jan 2009 15:45:20 +0100 urlwatch (1.5-1) unstable; urgency=low * Initial release (Closes: #505968) -- Franck Joncourt Sun, 07 Dec 2008 17:33:06 +0100 debian/source/0000755000000000000000000000000012171570247010474 5ustar debian/source/format0000644000000000000000000000001412171570247011702 0ustar 3.0 (quilt) debian/control0000644000000000000000000000172112171570247010600 0ustar Source: urlwatch Section: web Priority: extra Maintainer: Franck Joncourt Build-Depends: debhelper (>= 7.0.50) Build-Depends-Indep: python (>= 2.6.6-3~), python-concurrent.futures X-Python-Version: >= 2.4 Standards-Version: 3.9.4 Homepage: http://thpinfo.com/2008/urlwatch/ Vcs-git: git://anonscm.debian.org/collab-maint/urlwatch.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/urlwatch.git;a=summary Package: urlwatch Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-concurrent.futures Recommends: python-vobject, python-utidylib, lynx Suggests: html2text Description: tool for monitoring webpages for updates This script is intended to help you watch URLs and get notified (via email) of any changes. The change notification will include the URL that has changed and a unified diff of what has changed. The script supports the use of a filtering hook function to strip trivially-varying elements of a webpage.