Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 15:52:05 -0500 (EST)
From:      kbyanc@posi.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17535: [patch] update news/bgrab port to 1.3.4
Message-ID:  <200003212052.PAA53740@kronos.alcnet.com>

next in thread | raw e-mail | index | archive | help

>Number:         17535
>Category:       ports
>Synopsis:       [patch] update news/bgrab port to 1.3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 13:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Kelly Yancey
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:
>Description:


>How-To-Repeat:
>Fix:
	
diff -ruN ports/news/bgrab.orig/Makefile ports/news/bgrab/Makefile
--- ports/news/bgrab.orig/Makefile	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/Makefile	Tue Mar 21 15:49:30 2000
@@ -1,17 +1,14 @@
 # New ports collection makefile for:	bgrab
-# Version required:	1.2.3
-# Date created:		27 July 1999
+# Version required:	1.3.4
+# Date created:		20 March 2000
 # Whom:			Kelly Yancey <kbyanc@posi.net>
 #
 # $FreeBSD: ports/news/bgrab/Makefile,v 1.5 1999/10/01 18:07:17 cpiazza Exp $
 #
 
-DISTNAME=	bgrab
-PKGNAME=	bgrab-1.2.3
+DISTNAME=	bgrab-1.3.4
 CATEGORIES=	news
-MASTER_SITES=	http://thelamb.dhs.org/~rael/bgrab/ \
-		http://awwm.linuxberg.com/files/console/network/ \
-		http://powerlinux.linuxberg.com/files/console/network/
+MASTER_SITES=	http://www.student.dtu.dk/~c960941/bgrab/
 
 MAINTAINER=	kbyanc@posi.net
 
@@ -19,8 +16,5 @@
 
 post-extract:
 	@${CP} ${FILESDIR}/Makefile.dist ${WRKSRC}/Makefile
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bgrab ${PREFIX}/bin
 
 .include <bsd.port.mk>
diff -ruN ports/news/bgrab.orig/files/Makefile.dist ports/news/bgrab/files/Makefile.dist
--- ports/news/bgrab.orig/files/Makefile.dist	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/files/Makefile.dist	Tue Mar 21 14:53:24 2000
@@ -1,7 +1,8 @@
 OBJ	  =	main.o server.o screen.o tree.o multipart.o grouplist.o \
-		findfile.o
+		findfile.o parsecfgfile.o
 CXX	 ?=	g++
-CXXFLAGS ?=	-O6 
+CXXFLAGS ?=	-O6
+CXXFLAGS +=	-DFREEBSD
 LIBS	  =	-lncurses
 PREFIX	 ?=	/usr/local
 DEST	  =	$(PREFIX)/bin
diff -ruN ports/news/bgrab.orig/files/md5 ports/news/bgrab/files/md5
--- ports/news/bgrab.orig/files/md5	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/files/md5	Tue Mar 21 15:49:34 2000
@@ -1 +1 @@
-MD5 (bgrab.tar.gz) = a59c008be5f134565b4ba00b5ae511fe
+MD5 (bgrab-1.3.4.tar.gz) = 6e02ce0a601bfed1215111c2189c7a00
diff -ruN ports/news/bgrab.orig/patches/patch-aa ports/news/bgrab/patches/patch-aa
--- ports/news/bgrab.orig/patches/patch-aa	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/patches/patch-aa	Wed Dec 31 19:00:00 1969
@@ -1,9 +0,0 @@
---- screen.h.orig	Sun Jan 24 03:24:50 1999
-+++ screen.h	Thu Sep 30 09:30:04 1999
-@@ -1,5 +1,5 @@
- extern "C" {
--#include <curses.h>
-+#include <ncurses.h>
- #include <stdio.h>
- }
- 
diff -ruN ports/news/bgrab.orig/patches/patch-ab ports/news/bgrab/patches/patch-ab
--- ports/news/bgrab.orig/patches/patch-ab	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/patches/patch-ab	Tue Mar 21 15:14:26 2000
@@ -1,39 +1,44 @@
---- main.cc.orig	Thu Sep 30 09:20:30 1999
-+++ main.cc	Thu Sep 30 09:22:51 1999
-@@ -7,7 +7,6 @@
- #include <sys/types.h>
- #include <sys/wait.h>
- #include <stdlib.h>
--#include <curses.h>
- #include "server.h"
- #include "screen.h"
- #include "tree.h"
-@@ -15,7 +14,7 @@
- #include "grouplist.h"
+--- main.cc.orig	Tue Mar 14 08:03:04 2000
++++ main.cc	Tue Mar 21 15:13:59 2000
+@@ -15,7 +15,7 @@
  #include "findfile.h"
+ #include "parsecfgfile.h"
  
 -#define		NNTP_PORT		119
 +unsigned NNTP_PORT = 119;
  
  char *NNTP_SERVER = NULL;
  groupListPointer NNTP_GROUP = new groupList();
-@@ -249,6 +248,10 @@
- 	fprintf(stderr," -a user pass	Authenticate the login to the server with\n");
- 	fprintf(stderr,"		'user' as username and 'pass' as password.\n");
- 	fprintf(stderr,"		Both username and password must be present.\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);
- }
+@@ -282,6 +282,8 @@
+     fprintf(stderr,"grouplist     newsgroups to read\n");
+     fprintf(stderr,"-S name       name of the news server\n");
+     fprintf(stderr,"              (if not specified, environ. var. NNTPSERVER is used )\n");
++    fprintf(stderr,"-P port       number of the port on the news server to connect to\n");
++    fprintf(stderr,"              (if not specified, environ. var. NNTPPORT is used, or 119)\n");
+     fprintf(stderr,"-n            don't output to stdout\n");
+     fprintf(stderr,"-f            fork to background.  use only with -n\n");
+     fprintf(stderr,"-s num        consider messages posted to more than\n");
+@@ -321,6 +323,14 @@
+ 		}
+ 		NNTP_SERVER = argv[i];
+ 		break;
++	    case 'P':
++		i++;
++		if (i > argc) {
++		    usage_error(argv[0]);
++		    break;
++		}
++		NNTP_PORT = atoi(argv[i]);
++		break;
+  	    case 's':	i++; 
+ 		if (i == argc) {
+ 		    usage_error(argv[0]);
+@@ -366,6 +376,8 @@
+ 	missing_helper();
  
-@@ -301,6 +304,8 @@
- 
- 	if (getenv("NNTPSERVER")) NNTP_SERVER = strdup(getenv("NNTPSERVER"));
- 	else NNTP_SERVER = strdup("news");
+     if (getenv("NNTPGROUP")) NNTP_GROUP->addGroup( getenv("NNTPGROUP") ); // Check env for group to be checked
 +
-+	if (getenv("NNTPPORT")) NNTP_PORT = atoi(getenv("NNTPPORT"));
- 
- 	process_command_line(argc, argv);
++    if (getenv("NNTP_PORT")) NNTP_PORT = atoi(getenv("NNTPPORT"));
  
+     process_command_line(argc, argv);
+     if ( cfgfilename ) // Parse the config file
diff -ruN ports/news/bgrab.orig/pkg/COMMENT ports/news/bgrab/pkg/COMMENT
--- ports/news/bgrab.orig/pkg/COMMENT	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/pkg/COMMENT	Tue Mar 21 15:22:06 2000
@@ -1 +1 @@
-Rael's Binary Grabber - downloads binaries from newsgroups
+Binary Grabber - downloads binaries from newsgroups
diff -ruN ports/news/bgrab.orig/pkg/DESCR ports/news/bgrab/pkg/DESCR
--- ports/news/bgrab.orig/pkg/DESCR	Tue Mar 21 14:45:51 2000
+++ ports/news/bgrab/pkg/DESCR	Tue Mar 21 15:21:48 2000
@@ -1,7 +1,7 @@
 This is an automated binary extraction tool for UseNet newsgroups.
 It will log into any newsgroup and download all the binary files. 
 
-WWW: http://thelamb.dhs.org/~rael/bgrab/
+WWW: http://www.student.dtu.dk/~c960941/bgrab/
 
   -Kelly
    kbyanc@posi.net

>Release-Note:
>Audit-Trail:
>Unformatted:
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003212052.PAA53740>