diff options
author | Robert Buchholz <rbu@gentoo.org> | 2009-07-26 13:48:45 +0000 |
---|---|---|
committer | Robert Buchholz <rbu@gentoo.org> | 2009-07-26 13:48:45 +0000 |
commit | 3c1dbd8fae6d0e1c9fab189a7a49a22ab2154a77 (patch) | |
tree | d36a805fbe00f097486885f35fea2cca7040a039 /net-mail/rss2email | |
parent | Marking wireshark-1.2.1 ppc64 for bug 278564 (diff) | |
download | historical-3c1dbd8fae6d0e1c9fab189a7a49a22ab2154a77.tar.gz historical-3c1dbd8fae6d0e1c9fab189a7a49a22ab2154a77.tar.bz2 historical-3c1dbd8fae6d0e1c9fab189a7a49a22ab2154a77.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.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'net-mail/rss2email')
-rw-r--r-- | net-mail/rss2email/ChangeLog | 14 | ||||
-rw-r--r-- | net-mail/rss2email/Manifest | 7 | ||||
-rw-r--r-- | net-mail/rss2email/files/rss2email-2.65-X-rss-feed.patch | 11 | ||||
-rw-r--r-- | net-mail/rss2email/files/rss2email-2.65-r2e-chmod.patch | 13 | ||||
-rw-r--r-- | net-mail/rss2email/metadata.xml | 14 | ||||
-rw-r--r-- | net-mail/rss2email/rss2email-2.65.ebuild | 42 |
6 files changed, 101 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/Manifest b/net-mail/rss2email/Manifest new file mode 100644 index 000000000000..d7f7269b7323 --- /dev/null +++ b/net-mail/rss2email/Manifest @@ -0,0 +1,7 @@ +AUX rss2email-2.65-X-rss-feed.patch 537 RMD160 deb5ca661a21283b890f14a3cdecde2fdabb7280 SHA1 ad98af0fc492ff6d967c2bf3c2b3a028f81ff088 SHA256 52954a391d026ae0bfcdc8e39208390321800dddee05064d80ecf722e004cff9 +AUX rss2email-2.65-r2e-chmod.patch 331 RMD160 cce36745c2658bc87d6df28361366b915c6910c7 SHA1 f5661877bcfbd70fff3777febd718102fe2f180a SHA256 4631a12a03c310f20f7ecfb3d460c2afbeddbe7ff7c9de8679627439c47db2f2 +DIST rss2email_2.65-1.diff.gz 8626 RMD160 4b31fd390129233538c25e281274fc2da51200b6 SHA1 56aa66adde5df32a40daf98d59c8c8e0c1d565fd SHA256 76f599bba817ac9922993a76bdb4c444a6091e1171e58a6c89353526962b10a9 +DIST rss2email_2.65.orig.tar.gz 12833 RMD160 e3d585c240d78fa654928c4d286b2fa9a870a28d SHA1 84efa01756ec5a3f4093f76ea3d724eaec86dc38 SHA256 f215149251f7936244f6997df749f77e7b2edaa73a7f6259efb2d97ae83b678d +EBUILD rss2email-2.65.ebuild 1103 RMD160 9d42f616109d7c9ad54d9c1dae0e5579af8e66b1 SHA1 1f1875222a9918baa1c7e365010adc975d94598f SHA256 5a3d11889b25cebc95328d41dfaf3b57f75950d152c27ccaaa4b55d13245c184 +MISC ChangeLog 608 RMD160 868f715d6d6255d6221754abc676a7566eefc3dd SHA1 ba95fa0b5389abe38a4d5742510702eca7f070c4 SHA256 70da41b0469a2a6516c8207f2fa100c04eb5871ce2919f03aa47fb750b140b97 +MISC metadata.xml 440 RMD160 60ec4af72f0e1bda14e53813ef1c15b8098d12d0 SHA1 d530ee5b0fb414177dd81b9b24c2275bda1170f4 SHA256 81c14114d054034bad2cb86afb5e125f2dc2014610755d9ace002df546d23d91 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 +} |