From owner-svn-ports-all@FreeBSD.ORG Fri Feb 14 15:52:43 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9986C796; Fri, 14 Feb 2014 15:52:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 828E31741; Fri, 14 Feb 2014 15:52:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1EFqh11009194; Fri, 14 Feb 2014 15:52:43 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1EFqgmv009188; Fri, 14 Feb 2014 15:52:42 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201402141552.s1EFqgmv009188@svn.freebsd.org> From: Pietro Cerutti Date: Fri, 14 Feb 2014 15:52:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344272 - in head/mail: . rss2email3 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 15:52:43 -0000 Author: gahr Date: Fri Feb 14 15:52:42 2014 New Revision: 344272 URL: http://svnweb.freebsd.org/changeset/ports/344272 QAT: https://qat.redports.org/buildarchive/r344272/ Log: - New port: mail/rss2email3 rss2email is a python script that lets you subscribe to a list of RSS or Atom feeds and get new posts sent to you by email. It is generally run via cron, but can be run manually as well. This is a python 3 rewrite of the original rss2email project by Lindsey Smith at AllThingsRSS. It does not run on python 2. WWW: https://github.com/wking/rss2email PR: 186752 Submitted by: Stephen R Guglielmo Added: head/mail/rss2email3/ head/mail/rss2email3/Makefile (contents, props changed) head/mail/rss2email3/distinfo (contents, props changed) head/mail/rss2email3/pkg-descr (contents, props changed) head/mail/rss2email3/pkg-message (contents, props changed) Modified: head/mail/Makefile Modified: head/mail/Makefile ============================================================================== --- head/mail/Makefile Fri Feb 14 15:42:55 2014 (r344271) +++ head/mail/Makefile Fri Feb 14 15:52:42 2014 (r344272) @@ -609,6 +609,7 @@ SUBDIR += roundcube-veximaccountadmin SUBDIR += rspamd SUBDIR += rss2email + SUBDIR += rss2email3 SUBDIR += ruby-rfilter SUBDIR += ruby-rmail SUBDIR += rubygem-actionmailer Added: head/mail/rss2email3/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rss2email3/Makefile Fri Feb 14 15:52:42 2014 (r344272) @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= rss2email +PORTVERSION= 3.8 +CATEGORIES= mail python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= srg@guglielmo.us +COMMENT= Emails posts from subscribed RSS/Atom newsfeeds + +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>=5.0.1:${PORTSDIR}/textproc/py-feedparser \ + ${PYTHON_PKGNAMEPREFIX}html2text>=3.0.1:${PORTSDIR}/textproc/py-html2text + +USE_GITHUB= yes +GH_ACCOUNT= wking +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= v${DISTVERSION} +GH_COMMIT= 2b7d0b6 + +USE_PYTHON= 3.2+ +USE_PYDISTUTILS=yes +PYDISTUTILS_AUTOPLIST=yes + +CONFLICTS_INSTALL=rss2email2 + +PORTDOCS= AUTHORS CHANGELOG README +OPTIONS_DEFINE= DOCS + +.include + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_MAN} ${WRKSRC}/r2e.1 ${STAGEDIR}${MANPREFIX}/man/man1 + +.include Added: head/mail/rss2email3/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rss2email3/distinfo Fri Feb 14 15:52:42 2014 (r344272) @@ -0,0 +1,2 @@ +SHA256 (rss2email-3.8.tar.gz) = 78dfd060e1d9f2845fe08fcb90878f3d4c05c0baa516556ac7a62687739f044a +SIZE (rss2email-3.8.tar.gz) = 159656 Added: head/mail/rss2email3/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rss2email3/pkg-descr Fri Feb 14 15:52:42 2014 (r344272) @@ -0,0 +1,8 @@ +rss2email is a python script that lets you subscribe to a list of +RSS or Atom feeds and get new posts sent to you by email. It is +generally run via cron, but can be run manually as well. + +This is a python 3 rewrite of the original rss2email project by +Lindsey Smith at AllThingsRSS. It does not run on python 2. + +WWW: https://github.com/wking/rss2email Added: head/mail/rss2email3/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rss2email3/pkg-message Fri Feb 14 15:52:42 2014 (r344272) @@ -0,0 +1,21 @@ +Quick Howto + +Create a new feed database: +> r2e new you@example.com + +Edit $HOME/.config/rss2email.cfg if you so desire. Unless you've installed +a local sendmail-equivalent MTA, you'll need to edit the SMTP options. + +Your local database is stored in $HOME/.local/share/rss2email.json + +Subscribe to some feeds: +> r2e add freebsd-news http://www.freebsd.org/news/rss.xml + +Avoid the "first run flood" of all existing posts from the feed: +> r2e run --no-send + +Run it through cron. Feel free to increase or decrease the interval. +0 */4 * * * %%PREFIX%%/r2e run + +There is only output if there's an error (which you probably want emailed to you +from cron anyway).