major update (rewrite) to rss2email 3.10, from Kaashif Hymabaccus (with
slight tweaks from me) who takes maintainer N.B. config and feed db are not compatible with the previous version, run "r2e list > ~/r2e.txt" and "r2e opmlexport > ~/r2e.opml" to keep plain copies of these before updating, and follow pkg-readme after updating.
This commit is contained in:
parent
73873b8ee1
commit
1b8b1ae82c
@ -1,39 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2019/08/24 20:14:06 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2019/09/11 00:15:43 sthen Exp $
|
||||
|
||||
COMMENT= get news from RSS feeds in email
|
||||
COMMENT = convert RSS/Atom newsfeeds to email
|
||||
|
||||
DISTNAME= rss2email-2.71
|
||||
FIX_EXTRACT_PERMISSIONS= Yes
|
||||
MODPY_EGG_VERSION = 3.10
|
||||
DISTNAME = rss2email-${MODPY_EGG_VERSION}
|
||||
CATEGORIES = mail www
|
||||
|
||||
CATEGORIES= mail textproc
|
||||
MAINTAINER = Kaashif Hymabaccus <kaashif@kaashif.co.uk>
|
||||
|
||||
HOMEPAGE= http://www.allthingsrss.com/rss2email/
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
# GPLv2/v3
|
||||
PERMIT_PACKAGE= Yes
|
||||
MODULES = lang/python
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
RUN_DEPENDS += converters/py-html2text${MODPY_FLAVOR} \
|
||||
textproc/py-feedparser${MODPY_FLAVOR}
|
||||
|
||||
MODULES= lang/python
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= converters/py-html2text \
|
||||
textproc/py-feedparser
|
||||
SUBST_VARS+= MODPY_SITEPKG
|
||||
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
||||
MODPY_PI = Yes
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_TEST= Yes
|
||||
post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/r2e.1 ${PREFIX}/man/man1/
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rss2email/ \
|
||||
${PREFIX}/share/doc/rss2email/ ${WRKINST}/${MODPY_SITEPKG}/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/rss2email.py ${WRKINST}/${MODPY_SITEPKG}/
|
||||
${INSTALL_DATA} ${WRKSRC}/readme.html ${PREFIX}/share/doc/rss2email/
|
||||
${INSTALL_DATA} ${WRKSRC}/config.py.example \
|
||||
${PREFIX}/share/examples/rss2email/
|
||||
${INSTALL_DATA} ${WRKSRC}/config.py.example \
|
||||
${PREFIX}/share/examples/rss2email/
|
||||
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
||||
${WRKINST}/${MODPY_SITEPKG}/rss2email.py
|
||||
${SUBST_PROGRAM} ${FILESDIR}/r2e ${PREFIX}/bin/r2e
|
||||
do-test:
|
||||
cd ${WRKSRC} && env PYTHONPATH=. ${MODPY_BIN} test/test.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (rss2email-2.71.tar.gz) = 1SRRl6UDRBBAXx9XlGELhL8mwMQMjQX+CJURZ5epmzE=
|
||||
SIZE (rss2email-2.71.tar.gz) = 63268
|
||||
SHA256 (rss2email-3.10.tar.gz) = AcZbUrEO+E/2ZJLU5157uJ4p1qfEmsm5v1XKhO9bT/o=
|
||||
SIZE (rss2email-3.10.tar.gz) = 65388
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
[ -d ~/.rss2email ] || mkdir ~/.rss2email
|
||||
cd ~/.rss2email
|
||||
exec ${MODPY_BIN} ${MODPY_SITEPKG}/rss2email.py feeds.dat $*
|
@ -1,2 +1,6 @@
|
||||
rss2email is a free tool for delivering news from RSS feeds to your
|
||||
email program.
|
||||
rss2email is a simple program which you can run in your crontab. It
|
||||
watches RSS feeds and sends you nicely formatted email messages for
|
||||
each new item.
|
||||
|
||||
rss2email was started by Aaron Swartz and is currently maintained by
|
||||
by the community at https://github.com/rss2email.
|
||||
|
@ -1,8 +1,43 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/06/26 16:23:10 sthen Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2019/09/11 00:15:43 sthen Exp $
|
||||
@ask-update rss2email-<3 Make sure your feed list is exported
|
||||
bin/r2e
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email.pyc
|
||||
share/doc/rss2email/
|
||||
share/doc/rss2email/readme.html
|
||||
share/examples/rss2email/
|
||||
share/examples/rss2email/config.py.example
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}command.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}config.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}email.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}error.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}feed.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}feeds.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}main.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/${MODPY_PYCACHE}version.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/command.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/config.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/email.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/error.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/feed.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/feeds.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/main.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/${MODPY_PYCACHE}downcase.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/${MODPY_PYCACHE}prettify.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/${MODPY_PYCACHE}redirect.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/downcase.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/prettify.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/post_process/redirect.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/util.py
|
||||
lib/python${MODPY_VERSION}/site-packages/rss2email/version.py
|
||||
@man man/man1/r2e.1
|
||||
share/doc/pkg-readmes/${PKGSTEM}
|
||||
|
36
mail/rss2email/pkg/README
Normal file
36
mail/rss2email/pkg/README
Normal file
@ -0,0 +1,36 @@
|
||||
$OpenBSD: README,v 1.1 2019/09/11 00:15:43 sthen Exp $
|
||||
|
||||
+-------------------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
+-------------------------------------------------------------------------------
|
||||
|
||||
Migrating from rss2email 2
|
||||
==========================
|
||||
rss2email 3 uses a different config and data format from previous versions.
|
||||
|
||||
Hopefully you read the OpenBSD upgrade instructions before updating the
|
||||
package and have saved the old feed list with "r2e opmlexport > ~/r2e.opml".
|
||||
Also save the output of "r2e list" if you have any feeds sending to a
|
||||
non-default email address.
|
||||
|
||||
After updating, create a new feed database, set the default email address
|
||||
and import saved feeds:
|
||||
|
||||
r2e new
|
||||
r2e email defaultaddress@example.com
|
||||
cat ~/r2e.opml | r2e opmlimport
|
||||
|
||||
For any feeds with a non-default email address, delete and re-add with the
|
||||
correct address. Adjust other config in ~/.config/rss2email.cfg as needed
|
||||
based on the old settings in ~/.rss2email/config.py.
|
||||
|
||||
The "last read" information is not transferred. If you don't want to re-send
|
||||
old messages (and don't mind missing any new messages since the last run with
|
||||
the old version), you can skip sending mail for the first run:
|
||||
|
||||
r2e run --no-send
|
||||
|
||||
Alternatively use "r2e run" as usual if you want to be sure to avoid missing
|
||||
anything.
|
||||
|
||||
The new feed data is stored in ~/.local/share/rss2email.json.
|
Loading…
Reference in New Issue
Block a user