From edwin@mavetju.org  Mon Mar  4 16:51:26 2002
Return-Path: <edwin@mavetju.org>
Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141])
	by hub.freebsd.org (Postfix) with ESMTP id 43BEA37B426
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Mar 2002 16:51:22 -0800 (PST)
Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141])
	by topaz.mdcc.cx (Postfix) with ESMTP id BADA82B696
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Mar 2002 01:51:12 +0100 (CET)
Received: by k7.mavetju.org (Postfix, from userid 1001)
	id 8D45059E; Tue,  5 Mar 2002 11:51:08 +1100 (EST)
Message-Id: <20020305005108.8D45059E@k7.mavetju.org>
Date: Tue,  5 Mar 2002 11:51:08 +1100 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] www/links: add -width option
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35547
>Category:       ports
>Synopsis:       [patch] www/links: add -width option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    demon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 04 17:00:04 PST 2002
>Closed-Date:    Fri May 24 10:41:28 PDT 2002
>Last-Modified:  Fri May 24 10:41:28 PDT 2002
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju.org 4.5-RELEASE FreeBSD 4.5-RELEASE #1: Thu Feb 28 14:56:20 EST 2002 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386

$FreeBSD: ports/www/links/Makefile,v 1.16 2001/07/07 09:37:05 demon Exp $

>Description:

This patch allows links to have a -width option so the screensize
can be changed in combination with the -dump option.
I've also submitted this patch to the people who develop links.

>How-To-Repeat:

n/a

>Fix:

This patch will bump the revision and create a new file files/patch-width
Thanks for your support :-)

diff --new-file -ru links-old/Makefile links/Makefile
--- links-old/Makefile	Tue Mar  5 11:43:45 2002
+++ links/Makefile	Tue Mar  5 11:43:56 2002
@@ -8,6 +8,7 @@
 PORTNAME=	links
 PORTVERSION=	0.96
 PORTEPOCH=	1
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/ \
 		http://www.add.com.pl/links/download/ \
diff --new-file -ru links-old/files/patch-width links/files/patch-width
--- links-old/files/patch-width	Thu Jan  1 10:00:00 1970
+++ links/files/patch-width	Tue Mar  5 11:45:08 2002
@@ -0,0 +1,63 @@
+--- default.c	Tue Mar  5 11:31:44 2002
++++ default.c	Tue Mar  5 11:26:50 2002
+@@ -773,6 +773,9 @@
+   Write a plain-text version of the given HTML document to\n\
+   stdout.\n\
+ \n\
++ -width <size>\n\
++  Size of screen in characters, used in combination with -dump\n\
++\n\
+  -no-connect\n\
+   Runs links as a separate instance - instead of connecting to\n\
+   existing instance.\n\
+@@ -831,6 +834,7 @@
+ int download_utime = 0;
+ int max_connections = 10;
+ int max_connections_to_host = 2;
++int screen_width = 80;
+ int max_tries = 3;
+ int receive_timeout = 120;
+ int unrestartable_receive_timeout = 600;
+@@ -884,6 +888,7 @@
+ 	1, gen_cmd, num_rd, num_wr, 1, 16, &max_connections, "max_connections", "max-connections",
+ 	1, gen_cmd, num_rd, num_wr, 1, 8, &max_connections_to_host, "max_connections_to_host", "max-connections-to-host",
+ 	1, gen_cmd, num_rd, num_wr, 1, 16, &max_tries, "retries", "retries",
++	1, gen_cmd, num_rd, num_wr, 40, 512, &screen_width, "screen_width", "width",
+ 	1, gen_cmd, num_rd, num_wr, 1, 1800, &receive_timeout, "receive_timeout", "receive-timeout",
+ 	1, gen_cmd, num_rd, num_wr, 1, 1800, &unrestartable_receive_timeout, "unrestartable_receive_timeout", "unrestartable-receive-timeout",
+ 	1, gen_cmd, num_rd, num_wr, 0, 256, &max_format_cache_entries, "format_cache_size", "format-cache-size",
+--- links.1	Mon Jan  1 09:26:52 2001
++++ links.1	Tue Mar  5 11:34:37 2002
+@@ -94,6 +94,11 @@
+ Write a plain-text version of the given HTML document to stdout.
+ 
+ .TP
++\f3-width \f2<size>\f1
++Size of screen in characters, used in combination with -dump.
++(default: 80)
++
++.TP
+ \f3-no-connect\f1
+ Runs links as a separate instance - instead of connecting to
+ existing instance.
+--- links.h	Mon Jun 11 20:14:25 2001
++++ links.h	Tue Mar  5 11:25:24 2002
+@@ -1975,6 +1975,7 @@
+ extern int max_connections;
+ extern int max_connections_to_host;
+ extern int max_tries;
++extern int screen_width;
+ extern int receive_timeout;
+ extern int unrestartable_receive_timeout;
+ 
+--- main.c	Mon Apr  9 06:46:06 2001
++++ main.c	Tue Mar  5 11:24:41 2002
+@@ -198,7 +198,7 @@
+ 		memset(&fd, 0, sizeof(struct f_data_c));
+ 		o.xp = 0;
+ 		o.yp = 1;
+-		o.xw = 80;
++		o.xw = screen_width;
+ 		o.yw = 25;
+ 		o.col = 0;
+ 		o.cp = 0;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->demon 
Responsible-Changed-By: trevor 
Responsible-Changed-When: Thu May 23 08:14:47 PDT 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35547 
State-Changed-From-To: open->closed 
State-Changed-By: demon 
State-Changed-When: Fri May 24 10:41:06 PDT 2002 
State-Changed-Why:  
Patch committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35547 
>Unformatted:
