diff options
-rw-r--r-- | network/r2e/README | 15 | ||||
-rw-r--r-- | network/r2e/README.Slackware | 14 | ||||
-rw-r--r-- | network/r2e/doinst.sh | 12 | ||||
-rw-r--r-- | network/r2e/fix-email-header-injection.patch | 33 | ||||
-rw-r--r-- | network/r2e/r2e.SlackBuild | 79 | ||||
-rw-r--r-- | network/r2e/r2e.info | 10 | ||||
-rw-r--r-- | network/r2e/remove-newlines.patch | 20 | ||||
-rw-r--r-- | network/r2e/rss2email.certver.patch | 11 | ||||
-rw-r--r-- | network/r2e/slack-desc | 19 | ||||
-rw-r--r-- | network/r2e/wrapper.r2e | 4 |
10 files changed, 0 insertions, 217 deletions
diff --git a/network/r2e/README b/network/r2e/README deleted file mode 100644 index 267f5b87e806..000000000000 --- a/network/r2e/README +++ /dev/null @@ -1,15 +0,0 @@ -rss2email is a free tool for delivering news from RSS feeds to your -email program. This allows you to view RSS feeds in an interface you -are already familiar with and to apply filters to incoming feeds. - -NOTE: -rss2email has no option for disabling HTTPS certificate verification, -because Python requires this. - -But it is possible to monkeypatch the ssl module to disable -verification globally for all feeds. - -If you want the verification to be disabled pass CERTVER=no to the -script: CERTVER=no ./r2e.SlackBuild - -See README.Slackware for post-installation configuration. diff --git a/network/r2e/README.Slackware b/network/r2e/README.Slackware deleted file mode 100644 index 2d0503a968d3..000000000000 --- a/network/r2e/README.Slackware +++ /dev/null @@ -1,14 +0,0 @@ -After installing this package please do the following: - - mkdir ~/.rss2email - r2e new you@yourdomain.com - r2e add http://yourfeed.yourdomain.com - r2e run --no-send - -To customize rss2email copy /usr/doc/config.py.example to ~/.rss2email -and edit it to taste. - -You will probably want to create a cron job to periodically execute -"r2e run". - -See http://www.allthingsrss.com/rss2email/ for additional information. diff --git a/network/r2e/doinst.sh b/network/r2e/doinst.sh deleted file mode 100644 index b8ba97c4b323..000000000000 --- a/network/r2e/doinst.sh +++ /dev/null @@ -1,12 +0,0 @@ -if [ -d /etc/r2e ]; then - cat << EOF > /etc/r2e/README.config -Starting version 2.71 to customize r2e please edit config.py in your -user directory ~/.rss2email - -File /etc/r2e/config.py is not used anymore. The directory /etc/r2e -can safely be removed. - -See /usr/doc/config.py.example for a full list of available -configuration variables. -EOF -fi diff --git a/network/r2e/fix-email-header-injection.patch b/network/r2e/fix-email-header-injection.patch deleted file mode 100644 index 8407d5d0eef6..000000000000 --- a/network/r2e/fix-email-header-injection.patch +++ /dev/null @@ -1,33 +0,0 @@ -From: Etienne Millon <etienne.millon@gmail.com> -Date: Fri, 25 May 2012 18:04:08 +0200 -Subject: Fix email header injection - -Bug: http://bugs.python.org/issue5871 -Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526064 ---- - rss2email.py | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) - -diff --git a/rss2email.py b/rss2email.py -index 69998db..a6c3cbe 100755 ---- a/rss2email.py -+++ b/rss2email.py -@@ -111,9 +111,16 @@ PROXY="" - CHARSET_LIST='US-ASCII', 'ISO-8859-1', 'UTF-8', 'BIG5', 'ISO-2022-JP' - - from email.MIMEText import MIMEText --from email.Header import Header -+from email.Header import Header as _Header - from email.Utils import parseaddr, formataddr -- -+ -+class Header(_Header): -+ # Work-around for <http://bugs.python.org/issue5871> -+ def append(self, s=None, *args, **kwargs): -+ if s is not None: -+ s = s.replace('\n', ' ').replace('\r', ' ') -+ _Header.append(self, s, *args, **kwargs) -+ - # Note: You can also override the send function. - - def send(sender, recipient, subject, body, contenttype, extraheaders=None, smtpserver=None): diff --git a/network/r2e/r2e.SlackBuild b/network/r2e/r2e.SlackBuild deleted file mode 100644 index 4811e8e369f5..000000000000 --- a/network/r2e/r2e.SlackBuild +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh - -# Slackware build script for r2e - -# Written by Tom Canich <tcanich@canich.net> -# Released under the BSD -# Modified by Robby Workman <rworkman@slackbuilds.org> -# Copyright (c) 2009, Tom Canich, State College, Pennsylvania, USA -# Copyright 2016, Alexander Verbovetsky, Moscow, Russia -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 AUTHOR 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. - -PRGNAM=r2e -PRGNAMLONG=rss2email -VERSION=${VERSION:-2.71} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -ARCH=noarch - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAMLONG-$VERSION -tar xvf $CWD/$PRGNAMLONG-$VERSION.tar.gz -chmod -R a=r,a+X,u+w $PRGNAMLONG-$VERSION -cd $PRGNAMLONG-$VERSION -chown -R root:root . - -patch -p1 < $CWD/remove-newlines.patch -patch -p1 < $CWD/fix-email-header-injection.patch -sed --in-place \ - -e 's/http:\/\/rss2email.infogami.com/http:\/\/www.allthingsrss.com\/rss2email\//g' \ - -e 's/__version__ = "2.70"/__version__ = "2.71"/' \ - rss2email.py -[ "${CERTVER:-yes}" = "no" ] && patch < $CWD/rss2email.certver.patch - -mkdir -p $PKG/usr/share/$PRGNAM -install -m 0644 -o root -g root feedparser.py $PKG/usr/share/$PRGNAM -install -m 0644 -o root -g root html2text.py $PKG/usr/share/$PRGNAM -install -m 0644 -o root -g root rss2email.py $PKG/usr/share/$PRGNAM - -mkdir -p $PKG/usr/bin -install -m 0755 -o root -g root $CWD/wrapper.r2e $PKG/usr/bin/r2e - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGELOG config.py.example readme.html $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/README.Slackware > $PKG/usr/doc/$PRGNAM-$VERSION/README.Slackware -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -sed "s%@VERSION@%$VERSION%g" $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/r2e/r2e.info b/network/r2e/r2e.info deleted file mode 100644 index 4d13aaf2dbfe..000000000000 --- a/network/r2e/r2e.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="r2e" -VERSION="2.71" -HOMEPAGE="https://web.archive.org/web/20130114170616/http://www.allthingsrss.com/rss2email/" -DOWNLOAD="https://web.archive.org/web/20130114074037if_/http://www.allthingsrss.com/rss2email/rss2email-2.71.tar.gz" -MD5SUM="7d7dbac5aa181b07261516213a312f39" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Alexander Verbovetsky" -EMAIL="alik@ejik.org" diff --git a/network/r2e/remove-newlines.patch b/network/r2e/remove-newlines.patch deleted file mode 100644 index 7ae77516332a..000000000000 --- a/network/r2e/remove-newlines.patch +++ /dev/null @@ -1,20 +0,0 @@ -From: David Watson <dwatson@debian.org> -Date: Mon, 18 Apr 2011 10:41:04 +0200 -Subject: remove-newlines - ---- - html2text.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/html2text.py b/html2text.py -index 0ed4cec..1cd5194 100755 ---- a/html2text.py -+++ b/html2text.py -@@ -305,6 +305,7 @@ class _html2text(HTMLParser.HTMLParser): - if has_key(attrs, 'src'): - attrs['href'] = attrs['src'] - alt = attrs.get('alt', '') -+ alt = re.sub('\n', ' ', alt) - i = self.previousIndex(attrs) - if i is not None: - attrs = self.a[i] diff --git a/network/r2e/rss2email.certver.patch b/network/r2e/rss2email.certver.patch deleted file mode 100644 index b56ce4bcd75e..000000000000 --- a/network/r2e/rss2email.certver.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- rss2email.py.orig 2016-09-28 01:57:12.929900342 +0200 -+++ rss2email.py 2016-09-28 01:57:36.316685746 +0200 -@@ -25,6 +25,8 @@ - - import urllib2 - urllib2.install_opener(urllib2.build_opener()) -+import ssl -+ssl._create_default_https_context = ssl._create_unverified_context - - ### Vaguely Customizable Options ### - diff --git a/network/r2e/slack-desc b/network/r2e/slack-desc deleted file mode 100644 index 9d66917f32d7..000000000000 --- a/network/r2e/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -r2e: r2e (rss to email gateway) -r2e: -r2e: rss2email is a free tool for delivering news from RSS feeds to your -r2e: email program. This allows you to view RSS feeds in an interface you -r2e: are already familiar with and to apply filters to incoming feeds. -r2e: -r2e: See /usr/doc/r2e-@VERSION@/README.Slackware for post-installation -r2e: configuration. -r2e: -r2e: Homepage: http://www.allthingsrss.com/rss2email/ -r2e: diff --git a/network/r2e/wrapper.r2e b/network/r2e/wrapper.r2e deleted file mode 100644 index 5dca09f80f43..000000000000 --- a/network/r2e/wrapper.r2e +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -mkdir -p ~/.rss2email -cd ~/.rss2email -exec python /usr/share/r2e/rss2email.py feeds.dat $* |