summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2009-07-26 13:48:45 +0000
committerRobert Buchholz <rbu@gentoo.org>2009-07-26 13:48:45 +0000
commite426ab5db185d4db47e0b57c661cece426809e3d (patch)
tree972658481486a5ad41e8633fb1fa60f2dfee47e0 /net-mail/rss2email
parentMarking wireshark-1.2.1 ppc64 for bug 278564 (diff)
downloadgentoo-2-e426ab5db185d4db47e0b57c661cece426809e3d.tar.gz
gentoo-2-e426ab5db185d4db47e0b57c661cece426809e3d.tar.bz2
gentoo-2-e426ab5db185d4db47e0b57c661cece426809e3d.zip
rss2email, new package. Thanks to the work of Fabian Groffen (grobian) in bug 105175 as well as Joey Hess and David Watson of Debian. Also added a patch to include the feed url in the header.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-mail/rss2email')
-rw-r--r--net-mail/rss2email/ChangeLog14
-rw-r--r--net-mail/rss2email/files/rss2email-2.65-X-rss-feed.patch11
-rw-r--r--net-mail/rss2email/files/rss2email-2.65-r2e-chmod.patch13
-rw-r--r--net-mail/rss2email/metadata.xml14
-rw-r--r--net-mail/rss2email/rss2email-2.65.ebuild42
5 files changed, 94 insertions, 0 deletions
diff --git a/net-mail/rss2email/ChangeLog b/net-mail/rss2email/ChangeLog
new file mode 100644
index 000000000000..1f0707f9b1f3
--- /dev/null
+++ b/net-mail/rss2email/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for net-mail/rss2email
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/rss2email/ChangeLog,v 1.1 2009/07/26 13:48:45 rbu Exp $
+
+*rss2email-2.65 (26 Jul 2009)
+
+ 26 Jul 2009; Robert Buchholz <rbu@gentoo.org>
+ +files/rss2email-2.65-X-rss-feed.patch,
+ +files/rss2email-2.65-r2e-chmod.patch, +metadata.xml,
+ +rss2email-2.65.ebuild:
+ rss2email, new package. Thanks to the work of Fabian Groffen (grobian) in
+ bug 105175 as well as Joey Hess and David Watson of Debian.
+ Also added a patch to include the feed url in the header.
+
diff --git a/net-mail/rss2email/files/rss2email-2.65-X-rss-feed.patch b/net-mail/rss2email/files/rss2email-2.65-X-rss-feed.patch
new file mode 100644
index 000000000000..be394dcb90f1
--- /dev/null
+++ b/net-mail/rss2email/files/rss2email-2.65-X-rss-feed.patch
@@ -0,0 +1,11 @@
+--- rss2email.py~ 2009-04-25 00:29:16.000000000 +0200
++++ rss2email.py 2009-07-26 15:39:16.787467661 +0200
+@@ -619,7 +619,7 @@
+ subjecthdr = title
+ datehdr = time.strftime("%a, %d %b %Y %H:%M:%S -0000", datetime)
+ useragenthdr = "rss2email"
+- extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr}
++ extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr, 'X-rss-feed': f.url}
+ if BONUS_HEADER != '':
+ for hdr in BONUS_HEADER.strip().splitlines():
+ pos = hdr.strip().find(':')
diff --git a/net-mail/rss2email/files/rss2email-2.65-r2e-chmod.patch b/net-mail/rss2email/files/rss2email-2.65-r2e-chmod.patch
new file mode 100644
index 000000000000..012ad305f9e3
--- /dev/null
+++ b/net-mail/rss2email/files/rss2email-2.65-r2e-chmod.patch
@@ -0,0 +1,13 @@
+Index: rss2email/r2e
+===================================================================
+--- rss2email.orig/r2e
++++ rss2email/r2e
+@@ -10,7 +10,7 @@ if [ "$1" = "-d" ]; then
+ shift 2
+ fi
+ if [ ! -d "$dir" ]; then
+- mkdir -p "$dir"
++ mkdir -p -m 700 "$dir"
+ fi
+ cd "$dir"
+ exec python /usr/share/rss2email/rss2email.py feeds.dat $*
diff --git a/net-mail/rss2email/metadata.xml b/net-mail/rss2email/metadata.xml
new file mode 100644
index 000000000000..19022f09d41a
--- /dev/null
+++ b/net-mail/rss2email/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>rbu@gentoo.org</email>
+ <name>Robert Buchholz</name>
+ </maintainer>
+ <longdescription>
+ rss2email is a simple Python script that lets you subscribe to a
+ list of XML newsfeeds (RSS or Atom) and get new items sent to
+ you by email.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-mail/rss2email/rss2email-2.65.ebuild b/net-mail/rss2email/rss2email-2.65.ebuild
new file mode 100644
index 000000000000..29cf58df7684
--- /dev/null
+++ b/net-mail/rss2email/rss2email-2.65.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/rss2email/rss2email-2.65.ebuild,v 1.1 2009/07/26 13:48:45 rbu Exp $
+
+EAPI=2
+
+inherit eutils
+
+S=${WORKDIR}/${PN}
+DESCRIPTION="A python script that converts RSS newsfeeds to email"
+HOMEPAGE="http://rss2email.infogami.com/"
+SRC_URI="mirror://debian/pool/main/r/rss2email/rss2email_${PV}.orig.tar.gz
+ mirror://debian/pool/main/r/rss2email/rss2email_${PV}-1.diff.gz"
+# debian has a packaged archive that we use instead of:
+# http://rss2email.infogami.com/${P}.py
+# http://www.aaronsw.com/2002/html2text/html2text-2.35.py
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND="dev-python/feedparser
+ virtual/python"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${WORKDIR}"/rss2email_${PV}-1.diff
+
+ epatch "${FILESDIR}"/${P}-r2e-chmod.patch
+ epatch "${FILESDIR}"/${P}-X-rss-feed.patch
+}
+
+src_install() {
+ insinto /usr/share/rss2email
+ doins rss2email.py html2text.py
+ newins config.py config.py.sample
+
+ exeinto /usr/bin
+ doexe r2e
+
+ doman r2e.1
+}