On 2020/03/14 16:24, Klemens Nanni wrote: > # 1.15 > # Lower-cased the inputs to match arguments better > # Caused a bug in the AUTH48 HTMLs to not cause the program to die > # 1.16 > # Added "std" command > # Added "rg" command > > The proejct moved to GitHub, sadly neither tags nor release tarballs are > provided. > > Python 3 just works in my light usage for mirroring and reading RFCs. > > Feedback? OK? > > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/misc/ietf-cli/Makefile,v > retrieving revision 1.3 > diff -u -p -r1.3 Makefile > --- Makefile 12 Jul 2019 20:47:51 -0000 1.3 > +++ Makefile 14 Mar 2020 15:23:42 -0000 > @@ -2,7 +2,10 @@ > > COMMENT= command-line tools to work with RFCs and Internet Drafts > > -DISTNAME= ietf-cli-1.14 > +GH_ACCOUNT= paulehoffman > +GH_PROJECT= ietf-cli > +GH_TAGNAME= 4b2b52dc333b6b59403b102349572f8af1b20a52 > +PKGNAME= ${GH_PROJECT}-1.16
Could you use DISTNAME instead of PKGNAME so the filename isn't a mess of hex please? > > CATEGORIES= misc net books > > @@ -11,24 +14,19 @@ HOMEPAGE= https://trac.tools.ietf.org/to > # WTFPL > PERMIT_PACKAGE= Yes > > -# packaged from http://svn.tools.ietf.org/svn/tools/ietf-cli/ r32 > -MASTER_SITES= https://spacehopper.org/mirrors/ > - > MODULES= lang/python > +MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3} > MODPY_BUILDDEP= No > > NO_BUILD= Yes > NO_TEST= Yes > > -RUN_DEPENDS= net/rsync \ > - devel/xdg-utils > +RUN_DEPENDS= devel/xdg-utils \ > + net/rsync > > PKG_ARCH= * > > MODPY_ADJ_FILES= ietf > - > -post-extract: > - perl -pi -e 's/\r$$//g' ${WRKSRC}/README ..and put this back, the MSDOS line endings are still present. > > do-configure: > ${SUBST_CMD} ${WRKSRC}/ietf{,.config} > Index: distinfo > =================================================================== > RCS file: /cvs/ports/misc/ietf-cli/distinfo,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 distinfo > --- distinfo 21 Nov 2015 20:13:04 -0000 1.1.1.1 > +++ distinfo 14 Mar 2020 15:15:07 -0000 > @@ -1,2 +1,2 @@ > -SHA256 (ietf-cli-1.14.tar.gz) = IISinevmIKGaaM1jq7HdB7o5BZCUGUXvG3mYh5KW/iQ= > -SIZE (ietf-cli-1.14.tar.gz) = 14447 > +SHA256 (ietf-cli-4b2b52dc333b6b59403b102349572f8af1b20a52.tar.gz) = > p5e+Qob6zYGItFBjykFuAx93lAH3y3mNW+W6Jtot/AM= > +SIZE (ietf-cli-4b2b52dc333b6b59403b102349572f8af1b20a52.tar.gz) = 16619 > Index: patches/patch-ietf > =================================================================== > RCS file: /cvs/ports/misc/ietf-cli/patches/patch-ietf,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 patch-ietf > --- patches/patch-ietf 21 Nov 2015 20:13:04 -0000 1.1.1.1 > +++ patches/patch-ietf 14 Mar 2020 15:18:46 -0000 > @@ -1,12 +1,16 @@ > $OpenBSD: patch-ietf,v 1.1.1.1 2015/11/21 20:13:04 sthen Exp $ > ---- ietf.orig Fri Nov 20 20:46:35 2015 > -+++ ietf Fri Nov 20 20:57:03 2015 > + > +Adjust ConfigPlaces. > + > +Index: ietf > +--- ietf.orig > ++++ ietf > @@ -78,7 +78,7 @@ __license__ = "https://en.wikipedia.org/wiki/WTFPL" > > KnownCmds = ("auth48", "author", "bcp", "charter", "conflict", "diff", > "draft", "draftstatus", "iesg", "mirror", \ > - "rfc", "rfcextra", "rfcinfo", "rfcstatus", "tools", "tracker", "foo") > + "rfc", "rfcextra", "rfcinfo", "rfcstatus", "rg", "std", "tools", > "tracker", "foo") > -ConfigPlaces = ("~/bin/ietf.config", "/usr/local/bin/ietf.config", > "~/.ietf/ietf.config") > +ConfigPlaces = ("~/.ietf/ietf.config", "${SYSCONFDIR}/ietf.config") > - RFCZerosPat = compile(r'^0+(.*)') > > # Make a block of text that can be executed in the CLI > + CLICmdCode = "" > Index: patches/patch-ietf_config > =================================================================== > RCS file: /cvs/ports/misc/ietf-cli/patches/patch-ietf_config,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 patch-ietf_config > --- patches/patch-ietf_config 21 Nov 2015 20:13:04 -0000 1.1.1.1 > +++ patches/patch-ietf_config 14 Mar 2020 15:19:07 -0000 > @@ -1,4 +1,7 @@ > $OpenBSD: patch-ietf_config,v 1.1.1.1 2015/11/21 20:13:04 sthen Exp $ > + > +Adjust MirrorDir and DisplayTextCommand. > + > --- ietf.config.orig Fri Nov 20 20:46:35 2015 > +++ ietf.config Fri Nov 20 21:09:49 2015 > @@ -30,7 +30,7 @@ __license__ = "http://en.wikipedia.org/wiki/WTFPL" > Index: pkg/PLIST > =================================================================== > RCS file: /cvs/ports/misc/ietf-cli/pkg/PLIST,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 PLIST > --- pkg/PLIST 21 Nov 2015 20:13:04 -0000 1.1.1.1 > +++ pkg/PLIST 14 Mar 2020 15:21:27 -0000 > @@ -6,6 +6,6 @@ share/doc/ietf/README > share/examples/ietf/ > share/examples/ietf/ietf.config > @sample ${SYSCONFDIR}/ietf.config > -@group wheel > @mode 775 > +@group wheel > @sample ${LOCALSTATEDIR}/db/ietf-mirrors/ >