1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

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 <kbyanc@posi.net>
This commit is contained in:
Chris Piazza 1999-08-02 03:32:21 +00:00
parent 8a29f87d0d
commit 518a137d11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20483
7 changed files with 75 additions and 0 deletions

17
news/bgrab/Makefile Normal file
View File

@ -0,0 +1,17 @@
# New ports collection makefile for: bgrab
# Version required: 1.1
# Date created: 27 July 1999
# Whom: Kelly Yancey <kbyanc@posi.net>
#
# $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 <bsd.port.mk>

1
news/bgrab/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (bgrab.tar.gz) = 8c41598154b89b2a0195884b43e83ac2

40
news/bgrab/files/patch-ab Normal file
View File

@ -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 <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
-#include <curses.h>
}
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);

10
news/bgrab/files/patch-ac Normal file
View File

@ -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 <curses.h>
+#include <ncurses.h>
#include <stdio.h>
}

1
news/bgrab/pkg-comment Normal file
View File

@ -0,0 +1 @@
Downloads binaries from newsgroups

5
news/bgrab/pkg-descr Normal file
View File

@ -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

1
news/bgrab/pkg-plist Normal file
View File

@ -0,0 +1 @@
bin/bgrab