[Slackbuilds-users] [13.37] Slackbuild patch for r2e 2.71

Dario Niedermann dnied at tiscali.it
Thu May 5 19:07:05 UTC 2011


Hello,

I've tweaked the slackbuild for r2e 2.66 (rss2email) to make it work for
the latest r2e version (2.71).

One of the files in the source archive changed name, so that had to be
fixed. Also, the slackbuild file 'config.py.patch' is no longer
necessary, because I used `sed` to do the same replacements that were
performed by that patch file.

The results of enclosed patch were tested on Slackware64, but since r2e
is all Python, I expect this to work on all architectures.

Regards,
DN


-----BEGIN PATCH FILE-----
Only in r2e-2.66: config.py.patch
diff -u r2e-2.66/r2e.SlackBuild r2e-2.71/r2e.SlackBuild
--- r2e-2.66/r2e.SlackBuild	2010-06-16 07:22:12.000000000 +0200
+++ r2e-2.71/r2e.SlackBuild	2011-05-05 20:35:08.000000000 +0200
@@ -33,9 +33,10 @@
 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 # Modified by Robby Workman <rworkman at slackbuilds.org>
+# Modified for r2e 2.71 by Dario Niedermann <dnied at tiscali.it>
 
 PRGNAM=r2e
-VERSION=2.66
+VERSION=2.71
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
@@ -64,7 +65,7 @@
 cd rss2email-$VERSION
 
 # Patch rss2email.py so that our config.py location is shown
-patch -p1 < $CWD/config.py.patch
+sed -i -e 's# config\.py# /etc/r2e/config.py#g' rss2email.py
 
 mkdir -p $PKG/usr/lib/$PRGNAM
 install -m 0755 -o root -g root feedparser.py $PKG/usr/lib/$PRGNAM
@@ -83,7 +84,7 @@
 # config.py file is symlinked to that location as well.
 #
 EOF
-cat config.py >> $PKG/etc/r2e/config.py.new
+cat config.py.example >> $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
diff -u r2e-2.66/r2e.info r2e-2.71/r2e.info
--- r2e-2.66/r2e.info	2010-05-27 06:51:17.000000000 +0200
+++ r2e-2.71/r2e.info	2011-05-05 17:22:24.000000000 +0200
@@ -1,8 +1,8 @@
 PRGNAM="r2e"
-VERSION="2.66"
+VERSION="2.71"
 HOMEPAGE="http://rss2email.infogami.com"
-DOWNLOAD="http://www.allthingsrss.com/rss2email/rss2email-2.66.tar.gz"
-MD5SUM="84a7aa98b52952e37dd239fefb01e9d9"
+DOWNLOAD="http://www.allthingsrss.com/rss2email/rss2email-2.71.tar.gz"
+MD5SUM="7d7dbac5aa181b07261516213a312f39"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 MAINTAINER="Tom Canich"


More information about the SlackBuilds-users mailing list