From 518a137d116ad277b95d93ae1e04bd2234002819 Mon Sep 17 00:00:00 2001 From: Chris Piazza Date: Mon, 2 Aug 1999 03:32:21 +0000 Subject: [PATCH] Import of bgrab. An automated binary extraction tool for Usenet newsgroups. It will log into any newsgroup and download all the binary files. PR: 12841 Submitted by: Kelly Yancey --- news/bgrab/Makefile | 17 +++++++++++++++++ news/bgrab/distinfo | 1 + news/bgrab/files/patch-ab | 40 +++++++++++++++++++++++++++++++++++++++ news/bgrab/files/patch-ac | 10 ++++++++++ news/bgrab/pkg-comment | 1 + news/bgrab/pkg-descr | 5 +++++ news/bgrab/pkg-plist | 1 + 7 files changed, 75 insertions(+) create mode 100644 news/bgrab/Makefile create mode 100644 news/bgrab/distinfo create mode 100644 news/bgrab/files/patch-ab create mode 100644 news/bgrab/files/patch-ac create mode 100644 news/bgrab/pkg-comment create mode 100644 news/bgrab/pkg-descr create mode 100644 news/bgrab/pkg-plist diff --git a/news/bgrab/Makefile b/news/bgrab/Makefile new file mode 100644 index 000000000000..a6e3dcb1878d --- /dev/null +++ b/news/bgrab/Makefile @@ -0,0 +1,17 @@ +# New ports collection makefile for: bgrab +# Version required: 1.1 +# Date created: 27 July 1999 +# Whom: Kelly Yancey +# +# $Id$ +# + +DISTNAME= bgrab +PKGNAME= bgrab-1.1 +CATEGORIES= news foo bar +MASTER_SITES= http://awwm.linuxberg.com/files/console/network/ \ + http://powerlinux.linuxberg.com/files/console/network/ + +MAINTAINER= kbyanc@posi.net + +.include diff --git a/news/bgrab/distinfo b/news/bgrab/distinfo new file mode 100644 index 000000000000..c203562a864c --- /dev/null +++ b/news/bgrab/distinfo @@ -0,0 +1 @@ +MD5 (bgrab.tar.gz) = 8c41598154b89b2a0195884b43e83ac2 diff --git a/news/bgrab/files/patch-ab b/news/bgrab/files/patch-ab new file mode 100644 index 000000000000..86f8d9b16c3e --- /dev/null +++ b/news/bgrab/files/patch-ab @@ -0,0 +1,40 @@ +diff -u -N ./main.cc ../bgrab/main.cc +--- ./main.cc Mon Feb 1 03:04:23 1999 ++++ ../bgrab/main.cc Tue Jul 27 10:38:26 1999 +@@ -9,7 +9,6 @@ + #include + #include + #include +-#include + } + + extern "C++" { +@@ -19,7 +18,7 @@ + #include "multipart.h" + } + +-#define NNTP_PORT 119 ++unsigned NNTP_PORT = 119; + + char *NNTP_SERVER = NULL; + char *NNTP_GROUP = NULL; +@@ -194,6 +193,10 @@ + fprintf(stderr, "groupname newsgroup to read\n"); + fprintf(stderr," -n don't output to stdout\n"); + fprintf(stderr," -f fork to background. use only with -n\n"); ++ fprintf(stderr,"\nThe hostname or IP address of the news server can be\n"); ++ fprintf(stderr,"specified by the NNTPSERVER environment variable, or defaults\n"); ++ fprintf(stderr,"to \"news\". The port to connect to can be specified by the\n"); ++ fprintf(stderr,"NNTPPORT environment variable or defaults to 119.\n"); + exit(-1); + } + +@@ -225,6 +228,8 @@ + void main(int argc, char **argv) { + if (getenv("NNTPSERVER")) NNTP_SERVER = strdup(getenv("NNTPSERVER")); + else NNTP_SERVER = strdup("news"); ++ ++ if (getenv("NNTPPORT")) NNTP_PORT = atoi(getenv("NNTPPORT")); + + process_command_line(argc, argv); + diff --git a/news/bgrab/files/patch-ac b/news/bgrab/files/patch-ac new file mode 100644 index 000000000000..4fce47a9dab3 --- /dev/null +++ b/news/bgrab/files/patch-ac @@ -0,0 +1,10 @@ +diff -u -N ./screen.h ../bgrab/screen.h +--- ./screen.h Sun Jan 24 03:24:50 1999 ++++ ../bgrab/screen.h Tue Jul 27 10:38:40 1999 +@@ -1,5 +1,5 @@ + extern "C" { +-#include ++#include + #include + } + diff --git a/news/bgrab/pkg-comment b/news/bgrab/pkg-comment new file mode 100644 index 000000000000..06b9205f3bf9 --- /dev/null +++ b/news/bgrab/pkg-comment @@ -0,0 +1 @@ +Downloads binaries from newsgroups diff --git a/news/bgrab/pkg-descr b/news/bgrab/pkg-descr new file mode 100644 index 000000000000..f519e45443c4 --- /dev/null +++ b/news/bgrab/pkg-descr @@ -0,0 +1,5 @@ +This is an automated binary extraction tool for UseNet newsgroups. +It will log into any newsgroup and download all the binary files. + + -kbyanc + kbyanc@posi.net diff --git a/news/bgrab/pkg-plist b/news/bgrab/pkg-plist new file mode 100644 index 000000000000..3bebaa2bcd31 --- /dev/null +++ b/news/bgrab/pkg-plist @@ -0,0 +1 @@ +bin/bgrab