pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add nget (modernized replacement for news/nget).



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Sun Oct 6 16:26:21 2019 +0200
Changeset:	1bec99902db5ee264c9fb467833385eb91a1da91

Modified Files:
	Makefile
Added Files:
	nget/DESCR
	nget/Makefile
	nget/PLIST

Log Message:
Add nget (modernized replacement for news/nget).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1bec99902db5ee264c9fb467833385eb91a1da91

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile      |  1 +
 nget/DESCR    | 28 ++++++++++++++++++++++++++++
 nget/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++
 nget/PLIST    | 11 +++++++++++
 4 files changed, 84 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 0685a31d66..66399aed4d 100644
--- a/Makefile
+++ b/Makefile
@@ -2394,6 +2394,7 @@ SUBDIR+=	netwox
 SUBDIR+=	netx
 SUBDIR+=	newsboat
 SUBDIR+=	newsboat213
+SUBDIR+=	nget
 SUBDIR+=	nicotine+
 SUBDIR+=	nightfall
 SUBDIR+=	nih-current
diff --git a/nget/DESCR b/nget/DESCR
new file mode 100644
index 0000000000..5c4b7fa379
--- /dev/null
+++ b/nget/DESCR
@@ -0,0 +1,28 @@
+nget is a command line nntp file grabber.
+It automatically pieces together multipart postings for easy
+retrieval, even substituting parts from multiple servers and
+newsgroups. Handles disconnects gracefully, resuming after the
+last part succesfully downloaded.
+
+This version replaces news/nget because it became too out of date
+to compile with gcc 7.
+
+Features:
+  * Automatic multi-part post joining
+  * Automatic binary decoding (using uulib)
+  * Caches header data for quick access
+  * Full multi-server support, transparently joining parts
+    from different servers
+  * Full multi-group support, transparently joining parts from
+    multiple newsgroups
+  * Automatic retries on network errors
+  * Resumes after the last part successfully downloaded
+  * Dupe file detection to avoid unneeded downloads
+  * Select what to retrieve based upon a regular expresson (-r),
+    or even a more complex expression (-R) based upon any of the
+    file's subject, author, lines, bytes, # of parts we have,
+    # of parts req, date, age, messageid, and references.
+  * Search for newsgroups based on their names and/or descriptions
+  * Automatic handling of PAR and PAR2 files retrieves only as many
+    recovery files as necessary to repair any missing/damaged files.
+
diff --git a/nget/Makefile b/nget/Makefile
new file mode 100644
index 0000000000..e00a9e4c22
--- /dev/null
+++ b/nget/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD$
+
+DISTNAME=		nget-0.30
+CATEGORIES=		news
+MASTER_SITES=		https://gitlab.com/Rhialto/nget/
+GIT_REPO=		https://gitlab.com/Rhialto/nget.git
+GIT_TAG=		nget-0_30
+EXTRACT_SUFX=		# none
+
+MAINTAINER=		rhialto%NetBSD.org@localhost
+HOMEPAGE=		https://gitlab.com/Rhialto/nget/
+COMMENT=		Command line nntp file grabber
+LICENSE=		gnu-gpl-v2
+
+USE_PKGLOCALEDIR=	yes
+GNU_CONFIGURE=		yes
+USE_TOOLS+=		gmake aclocal autoconf autoheader
+USE_LANGUAGES=		c c++11
+
+CONFIGURE_ARGS+=	--with-pcre
+CONFIGURE_ARGS+=	--with-popt
+
+EGDIR=			${PREFIX}/share/examples/nget
+MESSAGE_SUBST+=		EGDIR=${EGDIR}
+
+INSTALLATION_DIRS=	share/nget share/examples/nget
+INSTALL_MAKE_FLAGS+=	prefix=${DESTDIR}${PREFIX} \
+			mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+pre-configure:
+	cd ${WRKSRC} && ./autogen.sh
+
+post-install:
+	for f in COPYING Changelog FAQ README TODO; do \
+		${INSTALL_DATA} ${WRKSRC}/$${f} ${DESTDIR}${PREFIX}/share/nget; done
+	${INSTALL_DATA} ${WRKSRC}/.ngetrc ${DESTDIR}${EGDIR}/dot.ngetrc
+
+.include "../../converters/uulib/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/termcap.buildlink3.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/nget/PLIST b/nget/PLIST
new file mode 100644
index 0000000000..3ede3ed124
--- /dev/null
+++ b/nget/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+bin/nget
+bin/ngetlite
+man/man1/nget.1
+man/man1/ngetlite.1
+share/examples/nget/dot.ngetrc
+share/nget/COPYING
+share/nget/Changelog
+share/nget/FAQ
+share/nget/README
+share/nget/TODO


Home | Main Index | Thread Index | Old Index