Mon Aug 21 13:07:15 2023 UTC ()
sfeed: Update to 1.9

Changes:
1.9
---
Features:
* sfeed_{curses,frames,gopher,html,plain}: add $SFEED_NEW_MAX_SECS

  By introducing the new environment variable $SFEED_NEW_MAX_SECS in some
  sfeed_* utilities marking feeds as new based on comparing their age, it is now
  possible to override this age limit. The default limit was the last day (86400
  seconds).

  This allows, for example, to be notified about new feeds within the last
  hour with by prefixing new items with " N ":

        SFEED_NEW_MAX_SECS=3600 sfeed_plain ~/.sfeed/feeds/*

  While creating a web report for last week's news by:

        SFEED_NEW_MAX_SECS=604800 sfeed_html ~/.sfeed/feeds/*

  This marks the items of the last week as bold in HTML.

  Based on the initial patch by Alvar Penning, thanks!

* sfeed_update/sfeedrc: add url a as parameter to the filter() and order()
  function This makes it easier to set filters or ordering by pattern matching on
  a group of feeds by the feed URL. For example for Youtube or Reddit feeds.

* sfeed_curses: move one line down when marking an item as read or unread.
  I don't mind either behaviour, but it has been suggested by a few people. For
  example the mutt mail client also has this behaviour.

Fixes:
* Improve to use proper includes.
  Reduce using some of the unneeded sys/* headers too. Using the C99 includes.
* sfeed_atom: for gmtime_r() make the error message consistent with sfeed_mbox.
* Makefile: change Gentoo commented example from -lcurses to -lncurses.
* sfeed_markread: fail early if creating a temporary file failed.

Code-cleaning / pedantic fixes:
* sfeed: datetounix: code-style, change , to separate lines (-Wcomma).
* sfeed_curses: make struct urls static like the other variables.
* sfeed_gopher: reduce scope and shadowing of a variable (no effective change though).
* xml.h: _XML_H_: macro name with an underscore is a reserved identifier.

Documentation:
* Improve note about CDNs and HTTP User-Agent blocking and change the example
  in sfeedrc.5 by setting a User-Agent.
* sfeedrc.example: add comment to reference to the man pages and README file.
* README: RSS 0.90+ is supported (not 0.91+).
* Typo fixes, consistency and structure fixes and some rewording.


(leot)
diff -r1.26 -r1.27 pkgsrc/news/sfeed/Makefile
diff -r1.25 -r1.26 pkgsrc/news/sfeed/distinfo

cvs diff -r1.26 -r1.27 pkgsrc/news/sfeed/Makefile (expand / switch to unified diff)

--- pkgsrc/news/sfeed/Makefile 2023/04/28 13:42:00 1.26
+++ pkgsrc/news/sfeed/Makefile 2023/08/21 13:07:14 1.27
@@ -1,21 +1,24 @@ @@ -1,21 +1,24 @@
1# $NetBSD: Makefile,v 1.26 2023/04/28 13:42:00 leot Exp $ 1# $NetBSD: Makefile,v 1.27 2023/08/21 13:07:14 leot Exp $
2 2
3DISTNAME= sfeed-1.8 3DISTNAME= sfeed-1.9
4CATEGORIES= news 4CATEGORIES= news
5MASTER_SITES= https://codemadness.org/releases/sfeed/ 5MASTER_SITES= https://codemadness.org/releases/sfeed/
6 6
7MAINTAINER= leot@NetBSD.org 7MAINTAINER= leot@NetBSD.org
8HOMEPAGE= https://codemadness.org/git/sfeed/file/README.html 8HOMEPAGE= https://codemadness.org/git/sfeed/file/README.html
9COMMENT= RSS and Atom parser 9COMMENT= RSS and Atom parser
10LICENSE= isc 10LICENSE= isc
11 11
12USE_LANGUAGES= c99 12USE_LANGUAGES= c99
13 13
14MAKE_FLAGS+= PREFIX=${PREFIX:Q} 14MAKE_FLAGS+= PREFIX=${PREFIX:Q}
15MAKE_FLAGS+= MANPREFIX=${PREFIX:Q}/${PKGMANDIR:Q} 15MAKE_FLAGS+= MANPREFIX=${PREFIX:Q}/${PKGMANDIR:Q}
16MAKE_FLAGS+= CC=${CC:Q} 16MAKE_FLAGS+= CC=${CC:Q}
17 17
18REPLACE_SH+= sfeed_markread sfeed_opml_export sfeed_update 18REPLACE_SH+= sfeed_markread sfeed_opml_export sfeed_update
19 19
 20# Needed for cur_term
 21LDFLAGS.NetBSD+= -lterminfo
 22
20.include "../../mk/curses.buildlink3.mk" 23.include "../../mk/curses.buildlink3.mk"
21.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"

cvs diff -r1.25 -r1.26 pkgsrc/news/sfeed/distinfo (expand / switch to unified diff)

--- pkgsrc/news/sfeed/distinfo 2023/04/28 13:42:00 1.25
+++ pkgsrc/news/sfeed/distinfo 2023/08/21 13:07:14 1.26
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.25 2023/04/28 13:42:00 leot Exp $ 1$NetBSD: distinfo,v 1.26 2023/08/21 13:07:14 leot Exp $
2 2
3BLAKE2s (sfeed-1.8.tar.gz) = fcb91a7ae23f898171c6ce2f25401b55b65b08eb64ff86c0cb862873dfd23e44 3BLAKE2s (sfeed-1.9.tar.gz) = fdfb93fdd5b48ef6217423c4747722d5c9f499684303046c5d97340328686efb
4SHA512 (sfeed-1.8.tar.gz) = 7a57108ace21813de9d80e7ebcc9ffed37580f52f08313ddcf86f2ee0df54d733631cba6936921623aa34c41a06dba43778cedbf557738db009d91f961fc9af7 4SHA512 (sfeed-1.9.tar.gz) = 714ce9526ce6a37cdc5777e279512b611f9e329ed0d7d1e9fd8efe8c981a69fe19c6622685d0ac2e16eef1f699096262e616e5b4f5ba81e44624ae99d10de749
5Size (sfeed-1.8.tar.gz) = 67335 bytes 5Size (sfeed-1.9.tar.gz) = 67718 bytes