Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2014 02:36:07 GMT
From:      Stephen R Guglielmo <srg@guglielmo.us>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186752: New Port: mail/rss2email3 Email news feeds
Message-ID:  <201402140236.s1E2a7Lm021835@cgiserv.freebsd.org>
Resent-Message-ID: <201402140240.s1E2e0Pu081089@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186752
>Category:       ports
>Synopsis:       New Port: mail/rss2email3 Email news feeds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 14 02:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Stephen R Guglielmo
>Release:        10.0-RELEASE
>Organization:
>Environment:
>Description:
This adds a new port of the rss2email project [1]. It is NOT the same as mail/rss2email, which is a different project [2] that requires python 2. This is a rewrite that requires python 3. I plan on updating the previous mail/rss2email port as well, possibly renaming it to mail/rss2email2.

[1] https://github.com/wking/rss2email
[2] http://www.allthingsrss.com/rss2email/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rss2email3
#	rss2email3/Makefile
#	rss2email3/distinfo
#	rss2email3/pkg-descr
#	rss2email3/pkg-message
#
echo c - rss2email3
mkdir -p rss2email3 > /dev/null 2>&1
echo x - rss2email3/Makefile
sed 's/^X//' >rss2email3/Makefile << 'ed78ea1ec8405d6077af5661c91da626'
X# $FreeBSD$
X
XPORTNAME=rss2email
XPORTVERSION=3.8
XCATEGORIES=mail python
XPKGNAMEPREFIX=${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=srg@guglielmo.us
XCOMMENT=Emails posts from subscribed RSS/Atom newsfeeds
X
XLICENSE=GPLv2 GPLv3
XLICENSE_COMB=dual
X
XRUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}feedparser>=5.0.1:${PORTSDIR}/textproc/py-feedparser \
X			${PYTHON_PKGNAMEPREFIX}html2text>=3.0.1:${PORTSDIR}/textproc/py-html2text
X
XUSE_GITHUB=yes
XGH_ACCOUNT=wking
XGH_PROJECT=${PORTNAME}
XGH_TAGNAME=v${DISTVERSION}
XGH_COMMIT=2b7d0b6
X
XUSE_PYTHON=3.2+
XUSE_PYDISTUTILS=yes
XPYDISTUTILS_AUTOPLIST=yes
X
XCONFLICTS_INSTALL=rss2email2
X
XPORTDOCS=AUTHORS CHANGELOG README
XOPTIONS_DEFINE=DOCS
X
X.include <bsd.port.options.mk>
X
Xpost-install:
X.if ${PORT_OPTIONS:MDOCS}
X	${MKDIR} ${STAGEDIR}${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
X.endif
X
X	${INSTALL_MAN} ${WRKSRC}/r2e.1 ${STAGEDIR}${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
ed78ea1ec8405d6077af5661c91da626
echo x - rss2email3/distinfo
sed 's/^X//' >rss2email3/distinfo << 'b2866623553c0ed7bdcfdc34c7966d42'
XSHA256 (rss2email-3.8.tar.gz) = 78dfd060e1d9f2845fe08fcb90878f3d4c05c0baa516556ac7a62687739f044a
XSIZE (rss2email-3.8.tar.gz) = 159656
b2866623553c0ed7bdcfdc34c7966d42
echo x - rss2email3/pkg-descr
sed 's/^X//' >rss2email3/pkg-descr << '20b2c4cfc9a7ace0a8b670c709e73cdf'
Xrss2email is a python script that lets you subscribe to a list of
XRSS or Atom feeds and get new posts sent to you by email. It is
Xgenerally run via cron, but can be run manually as well.
X
XThis is a python 3 rewrite of the original rss2email project by
XLindsey Smith at AllThingsRSS. It does not run on python 2.
X
XWWW: https://github.com/wking/rss2email
20b2c4cfc9a7ace0a8b670c709e73cdf
echo x - rss2email3/pkg-message
sed 's/^X//' >rss2email3/pkg-message << 'b7a9f62b44301b1917b03ee9692790af'
XQuick Howto
X
XCreate a new feed database:
X> r2e new you@example.com
X
XEdit $HOME/.config/rss2email.cfg if you so desire. Unless you've installed
Xa local sendmail-equivalent MTA, you'll need to edit the SMTP options.
X
XYour local database is stored in $HOME/.local/share/rss2email.json
X
XSubscribe to some feeds:
X> r2e add freebsd-news http://www.freebsd.org/news/rss.xml
X
XAvoid the "first run flood" of all existing posts from the feed:
X> r2e run --no-send
X
XRun it through cron. Feel free to increase or decrease the interval.
X0 */4 * * * %%PREFIX%%/r2e run
X
XThere is only output if there's an error (which you probably want emailed to you
Xfrom cron anyway).
b7a9f62b44301b1917b03ee9692790af
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402140236.s1E2a7Lm021835>