diff options
Diffstat (limited to 'network/r2e')
-rw-r--r-- | network/r2e/README | 15 | ||||
-rw-r--r-- | network/r2e/config.py.patch | 12 | ||||
-rw-r--r-- | network/r2e/doinst.sh | 9 | ||||
-rw-r--r-- | network/r2e/r2e.SlackBuild | 88 | ||||
-rw-r--r-- | network/r2e/r2e.info | 8 | ||||
-rw-r--r-- | network/r2e/slack-desc | 19 | ||||
-rw-r--r-- | network/r2e/wrapper.r2e | 2 |
7 files changed, 153 insertions, 0 deletions
diff --git a/network/r2e/README b/network/r2e/README new file mode 100644 index 0000000000..b638c11b19 --- /dev/null +++ b/network/r2e/README @@ -0,0 +1,15 @@ +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. + +After installing this package, you need to do the following: + + mkdir ~/.rss2email + r2e new you@yourdomain.com + r2e add http://yourfeed.yourdomain.com + r2e run --no-send + +You will probably want to create a cron job to periodically +execute "r2e run". + +See http://rss2email.infogami.com for additional information. diff --git a/network/r2e/config.py.patch b/network/r2e/config.py.patch new file mode 100644 index 0000000000..69dadca270 --- /dev/null +++ b/network/r2e/config.py.patch @@ -0,0 +1,12 @@ +diff -Nur r2e-2.6.5.orig/rss2email.py r2e-2.6.5/rss2email.py +--- r2e-2.6.5.orig/rss2email.py 2009-01-05 13:15:15.000000000 -0600 ++++ r2e-2.6.5/rss2email.py 2009-03-27 20:35:32.561832322 -0500 +@@ -200,7 +200,7 @@ + print >>warn, ('Fatal error: sendmail exited with code %s' % status)
+ sys.exit(1)
+ except:
+- print '''Error attempting to send email via sendmail. Possibly you need to configure your config.py to use a SMTP server? Please refer to the rss2email documentation or website (http://rss2email.infogami.com) for complete documentation of config.py. The options below may suffice for configuring email:
++ print '''Error attempting to send email via sendmail. Possibly you need to configure your /etc/r2e/config.py to use a SMTP server? Please refer to the rss2email documentation or website (http://rss2email.infogami.com) for complete documentation of /etc/r2e/config.py. The options below may suffice for configuring email:
+ # 1: Use SMTP_SERVER to send mail.
+ # 0: Call /usr/sbin/sendmail to send mail.
+ SMTP_SEND = 0
diff --git a/network/r2e/doinst.sh b/network/r2e/doinst.sh new file mode 100644 index 0000000000..c9bb64c3d8 --- /dev/null +++ b/network/r2e/doinst.sh @@ -0,0 +1,9 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + [ ! -r $OLD ] && mv $NEW $OLD + rm -f $NEW +} + +config etc/r2e/config.py.new + diff --git a/network/r2e/r2e.SlackBuild b/network/r2e/r2e.SlackBuild new file mode 100644 index 0000000000..8925135a3e --- /dev/null +++ b/network/r2e/r2e.SlackBuild @@ -0,0 +1,88 @@ +#!/bin/sh + +# Slackware build script for r2e + +# Copyright (c) 2009, Tom Canich, State College, Pennsylvania, USA +# 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. +# * Neither the name of Tom Canich nor the names of other +# contributors may be used to endorse or promote products +# derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY Tom Canich ''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 Tom Canich 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. + +# Modified by Robby Workman <rworkman@slackbuilds.org> + +PRGNAM=r2e +VERSION=2.6.5 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION + +# Patch rss2email.py so that our config.py location is shown +patch -p1 < $CWD/config.py.patch + +mkdir -p $PKG/usr/lib/$PRGNAM +install -m 0755 -o root -g root feedparser.py $PKG/usr/lib/$PRGNAM +install -m 0755 -o root -g root html2text.py $PKG/usr/lib/$PRGNAM +install -m 0755 -o root -g root rss2email.py $PKG/usr/lib/$PRGNAM + +mkdir -p $PKG/usr/bin +install -m 0755 -o root -g root $CWD/wrapper.r2e $PKG/usr/bin/r2e + +mkdir -p $PKG/etc/r2e +cat << EOF > $PKG/etc/r2e/config.py.new +# This directory and file location is SlackBuilds.org-specific. +# In other words, this is a deviation from upstream. +# Official r2e looks in its current working directory for config.py, +# which is actually /usr/lib/r2e in this package. As such, this +# config.py file is symlinked to that location as well. +# +EOF +cat config.py >> $PKG/etc/r2e/config.py.new +( cd $PKG/usr/lib/$PRGNAM ; ln -s ../../../etc/r2e/config.py config.py ) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +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.tgz diff --git a/network/r2e/r2e.info b/network/r2e/r2e.info new file mode 100644 index 0000000000..5ce2ed4152 --- /dev/null +++ b/network/r2e/r2e.info @@ -0,0 +1,8 @@ +PRGNAM="r2e" +VERSION="2.6.5" +HOMEPAGE="http://rss2email.infogami.com" +DOWNLOAD="http://slackbuilds.org/sources/12.2/r2e-2.6.5.tar.bz2" +MD5SUM="4b15d10da531a35cbd8aa6eae46da3e4" +MAINTAINER="Tom Canich" +EMAIL="tcanich@canich.net" +APPROVED="rworkman" diff --git a/network/r2e/slack-desc b/network/r2e/slack-desc new file mode 100644 index 0000000000..1263c6e25d --- /dev/null +++ b/network/r2e/slack-desc @@ -0,0 +1,19 @@ +# 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 ':'. + + |-----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 for post-installation configuration. +r2e: +r2e: Homepage: http://rss2email.infogami.com +r2e: +r2e: diff --git a/network/r2e/wrapper.r2e b/network/r2e/wrapper.r2e new file mode 100644 index 0000000000..3c57b2e069 --- /dev/null +++ b/network/r2e/wrapper.r2e @@ -0,0 +1,2 @@ +#!/bin/sh +python /usr/lib/r2e/rss2email.py $HOME/.rss2email/feeds.dat $* |