From alepulver@FreeBSD.org  Sat Mar 31 02:39:54 2007
Return-Path: <alepulver@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7493516A401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 31 Mar 2007 02:39:54 +0000 (UTC)
	(envelope-from alepulver@FreeBSD.org)
Received: from relay00.pair.com (relay00.pair.com [209.68.5.9])
	by mx1.freebsd.org (Postfix) with SMTP id 32C0D13C455
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 31 Mar 2007 02:39:53 +0000 (UTC)
	(envelope-from alepulver@FreeBSD.org)
Received: (qmail 84995 invoked from network); 31 Mar 2007 02:39:52 -0000
Received: from 190.55.91.88 (HELO deimos.mars.bsd) (190.55.91.88)
  by relay00.pair.com with SMTP; 31 Mar 2007 02:39:52 -0000
Message-Id: <1175308796.45483@deimos.mars.bsd>
Date: Fri, 30 Mar 2007 23:39:56 -0300
From: "Alejandro Pulver" <alepulver@FreeBSD.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [PATCH] games/quake2lnx: fix "Bad challenge" error when connecting to a password protected server
X-Send-Pr-Version: gtk-send-pr 0.4.8 
X-GNATS-Notify:

>Number:         111048
>Category:       ports
>Synopsis:       [PATCH] games/quake2lnx: fix "Bad challenge" error when connecting to a password protected server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danfe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 31 02:40:00 GMT 2007
>Closed-Date:    Sun Apr 08 04:17:13 GMT 2007
>Last-Modified:  Sun Apr  8 04:20:07 GMT 2007
>Originator:     Alejandro Pulver
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:


System: FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP



>Description:


- Bump PORTREVISION.
- Remove code from patch-security which was causing a "Bad challenge" error when connecting to password protected servers.
- Turn GAME option to "off" by default (a functional game.so is installed by games/quake2-data) as in other Quake II engine ports.


>How-To-Repeat:





>Fix:


--- quake2lnx.diff begins here ---
Index: quake2lnx/Makefile
===================================================================
RCS file: /home/pcvs/ports/games/quake2lnx/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- quake2lnx/Makefile	8 Jan 2007 04:00:13 -0000	1.26
+++ quake2lnx/Makefile	31 Mar 2007 02:37:08 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	quake2lnx
 PORTVERSION=	0.16.2
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	games ipv6
 MASTER_SITES=	http://offload1.icculus.org/quake2/files/
 DISTNAME=	quake2-r${PORTVERSION}
@@ -31,7 +31,7 @@
 		AA		"Build ASCII software renderer" off \
 		CLIENT		"Build client executable" on \
 		SERVER		"Build dedicated server executable" on \
-		GAME		"Build a main game .so file" on \
+		GAME		"Build a main game .so file" off \
 		CTF		"Build Capture The Flag mod" off \
 		RETEXTURE	"Enable support of retextured graphics" off \
 		JOYSTICK	"Enable joystick support" off \
Index: quake2lnx/files/patch-security
===================================================================
RCS file: /home/pcvs/ports/games/quake2lnx/files/patch-security,v
retrieving revision 1.1
diff -u -r1.1 patch-security
--- quake2lnx/files/patch-security	15 Mar 2005 19:32:31 -0000	1.1
+++ quake2lnx/files/patch-security	31 Mar 2007 02:37:08 -0000
@@ -115,19 +115,6 @@
  
  	// force the IP key/value pair so the game can filter based on ip
  	Info_SetValueForKey (userinfo, "ip", NET_AdrToString(net_from));
-@@ -317,8 +318,11 @@
- 		{
- 			if (NET_CompareBaseAdr (net_from, svs.challenges[i].adr))
- 			{
--				if (challenge == svs.challenges[i].challenge)
-+				// sku - ignore zero challenges
-+				if( svs.challenges[i].challenge && challenge == svs.challenges[i].challenge ) {
-+					svs.challenges[i].challenge = 0;
- 					break;		// good
-+				}
- 				Netchan_OutOfBandPrint (NS_SERVER, adr, "print\nBad challenge.\n");
- 				return;
- 			}
 @@ -342,6 +346,11 @@
  			&& ( cl->netchan.qport == qport 
  			|| adr.port == cl->netchan.remote_address.port ) )
--- quake2lnx.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->danfe 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Mar 31 02:40:09 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111048 
State-Changed-From-To: open->closed 
State-Changed-By: alepulver 
State-Changed-When: Sun Apr 8 04:17:11 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111048 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/111048: commit references a PR
Date: Sun,  8 Apr 2007 04:15:52 +0000 (UTC)

 alepulver    2007-04-08 04:15:47 UTC
 
   FreeBSD ports repository
 
   Modified files:
     games/quake2lnx      Makefile 
     games/quake2lnx/files patch-security 
   Log:
   - Bump PORTREVISION.
   - Remove code from patch-security which was causing a "Bad challenge" error
     when connecting to password protected servers.
   - Turn GAME option to "off" by default (a functional game.so is installed by
     games/quake2-data) as in other Quake II engine ports.
   
   PR:             ports/111048
   Submitted by:   alepulver (myself)
   Approved by:    danfe (maintainer, timeout)
   Reported by:    Kyle Hunter <keletmaster@gmail.com>
   
   Revision  Changes    Path
   1.27      +2 -2      ports/games/quake2lnx/Makefile
   1.2       +0 -13     ports/games/quake2lnx/files/patch-security
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
