--- rawdog-2.13.dfsg.1.orig/rawdog.1 +++ rawdog-2.13.dfsg.1/rawdog.1 @@ -48,9 +48,7 @@ Print the template currently in use to stdout. .TP .BI \-a \ URL\fP, \ \-\-add \ URL -Add a new feed to the config file, using Mark Pilgrim's "feedfinder" -module to extract the location of the feed from -.IR URL . +Add a new feed to the config file. .TP .BI \-d \ DIR\fP, \ \-\-dir \ DIR Use --- rawdog-2.13.dfsg.1.orig/debian/README.Debian +++ rawdog-2.13.dfsg.1/debian/README.Debian @@ -0,0 +1,13 @@ +rawdog for Debian +----------------- + +In order to use rawdog, you must create a configuration file named +~/.rawdog/config. An example config is provided in +/usr/share/doc/rawdog/examples; be sure to edit the "outputfile" +directive before using it. + +The default template links to a stylesheet named style.css; you should +copy the example stylesheet provided in /usr/share/doc/rawdog/examples +to your output directory, and edit it if desired. + + -- Decklin Foster , Tue, 23 Nov 2004 10:40:12 -0500 --- rawdog-2.13.dfsg.1.orig/debian/rawdog.docs +++ rawdog-2.13.dfsg.1/debian/rawdog.docs @@ -0,0 +1 @@ +README --- rawdog-2.13.dfsg.1.orig/debian/rules +++ rawdog-2.13.dfsg.1/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +clean: + dh_testdir + dh_testroot + + # Add here commands to clean up after the build process. + python setup.py clean --all + + dh_clean + +build: +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/rawdog. + python setup.py install --no-compile --prefix $(CURDIR)/debian/rawdog/usr --install-lib $(CURDIR)/debian/rawdog/usr/share/python-support/rawdog + # Lintian overrides + cp debian/rawdog.overrides $(CURDIR)/debian/rawdog/usr/share/lintian/overrides/rawdog + +# Build architecture-independent files here. +binary-arch: build install +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -k NEWS + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure --- rawdog-2.13.dfsg.1.orig/debian/changelog +++ rawdog-2.13.dfsg.1/debian/changelog @@ -0,0 +1,190 @@ +rawdog (2.13.dfsg.1-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Sat, 13 Nov 2010 15:29:21 -0500 + +rawdog (2.12.dfsg.1-2) unstable; urgency=low + + * Filter out text/html in fakefinder; Atom feeds can have a + pointing back to the original page. + + -- Decklin Foster Thu, 28 May 2009 20:56:16 -0400 + +rawdog (2.12.dfsg.1-1) unstable; urgency=low + + * New upstream release + * Restore ".dfsg" in version number (feedfinder was still removed from + 2.11, but it wasn't marked as such). + + -- Decklin Foster Sat, 14 Feb 2009 10:50:21 -0500 + +rawdog (2.11-1) unstable; urgency=low + + * New upstream release + * Add a tiny replacement for feedfinder so that -a is at least still + useful for autodiscovery. + * Install lintian override for feedparser. + + -- Decklin Foster Tue, 21 Oct 2008 20:29:33 -0400 + +rawdog (2.11~rc1.dfsg.1-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Fri, 15 Feb 2008 10:44:57 -0500 + +rawdog (2.10.dfsg.1-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Fri, 1 Sep 2006 14:30:56 -0400 + +rawdog (2.9.dfsg.1-2) unstable; urgency=low + + * Revert feedparser to 4.02. (Closes: #374741) + + -- Decklin Foster Tue, 20 Jun 2006 23:32:48 -0400 + +rawdog (2.9.dfsg.1-1) unstable; urgency=low + + * New upstream release. + * Build with python-support. + * Fixed typo in 2.8.dfsg.1-1 changelog entry. + * Move debhelper and python from Build-Depends-Indep to Build-Depends. + * Really depend on python-feedparser. + * Standards-Version: 3.7.2. + + -- Decklin Foster Sun, 18 Jun 2006 14:50:33 -0400 + +rawdog (2.8.dfsg.1-1) unstable; urgency=low + + * Removed feedfinder.py from source package (Closes: #345349) + - Disabled feed-guessing feature and updated man page. + + -- Decklin Foster Thu, 23 Mar 2006 18:03:50 -0500 + +rawdog (2.8-2) unstable; urgency=low + + * Add feedparser.py's license to debian/copyright (this still does not fix + #345349 as we need to deal with feedfinder.py as well.) + + -- Decklin Foster Sat, 11 Mar 2006 16:41:22 -0500 + +rawdog (2.8-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Fri, 10 Mar 2006 12:35:30 -0500 + +rawdog (2.6-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Sun, 6 Nov 2005 19:55:45 -0500 + +rawdog (2.5-1) unstable; urgency=low + + * New upstream release + * debian/copyright: updated FSF address. + + -- Decklin Foster Sun, 16 Oct 2005 20:39:16 -0400 + +rawdog (2.4-2) unstable; urgency=low + + * Add -k to dh_installchangelogs invocation. (Closes: #311996) + * Bump Standards-Version to 3.6.2. + + -- Decklin Foster Sat, 6 Aug 2005 12:57:30 -0400 + +rawdog (2.4-1) unstable; urgency=low + + * New upstream release. + * Created debian/watch file. + + -- Decklin Foster Fri, 18 Feb 2005 18:12:09 -0500 + +rawdog (2.3-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Wed, 12 Jan 2005 22:25:05 -0500 + +rawdog (2.2-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Wed, 12 Jan 2005 08:43:39 -0500 + +rawdog (2.1-6) unstable; urgency=low + + * The "I am convinced this package is simply cursed" release. + - fix build-dep again. + + -- Decklin Foster Sat, 25 Dec 2004 20:27:44 -0500 + +rawdog (2.1-5) unstable; urgency=medium + + * Restore python2.3-dev build-dep as well. + + -- Decklin Foster Sat, 25 Dec 2004 08:12:19 -0500 + +rawdog (2.1-4) unstable; urgency=medium + + * All I want for Christmas is to fix #286865: + - Revert previous change + - Build-dep on `python' instead. + * Correct version number in debhelper build-dep. + + -- Decklin Foster Fri, 24 Dec 2004 22:17:02 -0500 + +rawdog (2.1-3) unstable; urgency=medium + + * Call python2.3 instead of python in rules (really fix FTBFS this time.) + + -- Decklin Foster Thu, 23 Dec 2004 19:23:07 -0500 + +rawdog (2.1-2) unstable; urgency=medium + + * Add python2.3-dev build-dep, fixing FTBFS (Closes: #286865) + + -- Decklin Foster Wed, 22 Dec 2004 16:26:31 -0500 + +rawdog (2.1-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Thu, 9 Dec 2004 23:23:12 -0500 + +rawdog (2.0+2.1rc2-1) unstable; urgency=low + + * New upstream release + + -- Decklin Foster Tue, 7 Dec 2004 11:55:06 -0500 + +rawdog (2.0+2.1rc1-1) unstable; urgency=low + + * New upstream release + - debian/rawdog.1: removed, as it has been merged upstream. + + -- Decklin Foster Sun, 5 Dec 2004 23:36:54 -0500 + +rawdog (2.0-3) unstable; urgency=low + + * Install style.css to examples dir instead of /usr/share. + + -- Decklin Foster Sat, 27 Nov 2004 01:03:53 -0500 + +rawdog (2.0-2) unstable; urgency=low + + * Actually call dh_installexamples. + * Expanded long description in debian/control. + + -- Decklin Foster Tue, 23 Nov 2004 13:27:03 -0500 + +rawdog (2.0-1) unstable; urgency=low + + * Initial Release. (Closes: #236409) + + -- Decklin Foster Tue, 23 Nov 2004 10:40:12 -0500 + --- rawdog-2.13.dfsg.1.orig/debian/copyright +++ rawdog-2.13.dfsg.1/debian/copyright @@ -0,0 +1,54 @@ +This package was debianized by Decklin Foster on +Tue, 23 Nov 2004 10:40:12 -0500. + +It was downloaded from http://offog.org/code/rawdog.html + +Upstream Author: Adam Sampson + +License: + +Rawdog itself is distributed under the following license: + +Copyright 2003, 2004, 2005 Adam Sampson + + 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 St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +feedparser.py is distributed under the following license: + +Copyright (c) 2002-2005, Mark Pilgrim, All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +* 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. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. --- rawdog-2.13.dfsg.1.orig/debian/compat +++ rawdog-2.13.dfsg.1/debian/compat @@ -0,0 +1 @@ +4 --- rawdog-2.13.dfsg.1.orig/debian/rawdog.overrides +++ rawdog-2.13.dfsg.1/debian/rawdog.overrides @@ -0,0 +1 @@ +rawdog: embedded-feedparser-library usr/share/python-support/rawdog/rawdoglib/feedparser.py --- rawdog-2.13.dfsg.1.orig/debian/control +++ rawdog-2.13.dfsg.1/debian/control @@ -0,0 +1,22 @@ +Source: rawdog +Section: web +Priority: optional +Maintainer: Decklin Foster +Build-Depends: debhelper (>= 5.0.37.1), python, python-dev +Build-Depends-Indep: python-support (>= 0.5.3) +Standards-Version: 3.8.0 + +Package: rawdog +Architecture: all +Depends: ${python:Depends} +Description: RSS Aggregator Without Delusions Of Grandeur + rawdog is an RSS (and other) feed aggregator, based on Mark Pilgrim's + flexible feed parser. It's just an aggregator; it's not a weblog + authoring tool, nor is it an NNTP gateway, outliner, mailserver or + anything else. + . + rawdog reads articles from a number of feeds and writes out a single + HTML file, based on a template either provided by the user or generated + by rawdog, containing the latest articles it's seen. It uses the ETags + and Last-Modified headers to avoid fetching a file that hasn't changed, + and supports gzip compression to reduce bandwidth when it has. --- rawdog-2.13.dfsg.1.orig/debian/rawdog.examples +++ rawdog-2.13.dfsg.1/debian/rawdog.examples @@ -0,0 +1,2 @@ +config +style.css --- rawdog-2.13.dfsg.1.orig/debian/rawdog.dirs +++ rawdog-2.13.dfsg.1/debian/rawdog.dirs @@ -0,0 +1 @@ +usr/share/lintian/overrides --- rawdog-2.13.dfsg.1.orig/rawdoglib/fakefinder.py +++ rawdog-2.13.dfsg.1/rawdoglib/fakefinder.py @@ -0,0 +1,45 @@ +# Anemic replacement for feedfinder (which Debian can't distribute) so +# that ``rawdog -a'' at least does *something*. Only checks for the +# existence of in an HTML (or XML) document; +# falls back to the given URI otherwise, e.g. if the URI is already a +# feed (and only contains text/html alternates, in the case of Atom), or +# is something we don't recognize. Unlike with the real feedfinder, you +# *can* add garbage to your config with this if you give it a garbage +# URI. Also, the first link that appears ends up at the head of the +# list, so hope it's not the RSS 0.9 one. What do you want for 16 lines? +# +# This stupid thing is copyright (c) 2008 Decklin Foster +# , who really ought to know better, and is +# released under the following license: +# +# Permission to use, copy, modify, and/or distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA +# OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +import urllib +from HTMLParser import HTMLParser + +def feeds(uri): + parser = FeedFinder() + parser.feed(urllib.urlopen(uri).read()) + return parser.feeds + [uri] + +class FeedFinder(HTMLParser): + def __init__(self): + HTMLParser.__init__(self) + self.feeds = [] + def handle_startendtag(self, tag, attrs): + attrs = dict(attrs) + if tag == 'link' and attrs.get('rel') == 'alternate' and \ + not attrs.get('type') == 'text/html': + self.feeds.append(attrs['href']) --- rawdog-2.13.dfsg.1.orig/rawdoglib/__init__.py +++ rawdog-2.13.dfsg.1/rawdoglib/__init__.py @@ -1 +1 @@ -__all__ = ['feedparser', 'feedfinder', 'timeoutsocket', 'rawdog', 'persister', 'upgrade_1_2'] +__all__ = ['feedparser', 'timeoutsocket', 'rawdog', 'persister', 'upgrade_1_2'] --- rawdog-2.13.dfsg.1.orig/rawdoglib/rawdog.py +++ rawdog-2.13.dfsg.1/rawdoglib/rawdog.py @@ -48,7 +48,8 @@ mxtidy = None try: - import feedfinder + # Debian feedfinder replacement + import fakefinder as feedfinder except: feedfinder = None