From dburr@borg-cube.com  Mon Dec  4 18:07:18 2000
Return-Path: <dburr@borg-cube.com>
Received: from borg-cube.com (226-193.adsl2.netlojix.net [207.71.226.193])
	by hub.freebsd.org (Postfix) with ESMTP id CB02137B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Dec 2000 18:07:14 -0800 (PST)
Received: (from dburr@localhost)
	by borg-cube.com (8.11.0/8.11.0) id eB5277f02818;
	Mon, 4 Dec 2000 18:07:07 -0800 (PST)
	(envelope-from dburr)
Message-Id: <200012050207.eB5277f02818@borg-cube.com>
Date: Mon, 4 Dec 2000 18:07:07 -0800 (PST)
From: Donald Burr <dburr@borg-cube.com>
Reply-To: dburr@borg-cube.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: cj@vallcom.net
Subject: Patches to ports/irc/bitchx to support SOCKS5
X-Send-Pr-Version: 3.2

>Number:         23289
>Category:       ports
>Synopsis:       Patches to ports/irc/bitchx to support SOCKS5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 04 18:10:01 PST 2000
>Closed-Date:    Wed Jan 17 08:22:24 PST 2001
>Last-Modified:  Wed Jan 17 08:23:08 PST 2001
>Originator:     Donald Burr
>Release:        FreeBSD 4.2-BETA i386
>Organization:
The Borg Cube - Resistance is Futile!  http://www.borg-cube.com/
>Environment:

FreeBSD 4.2-BETA, latest ports cvsup

>Description:

The attached patch allows BitchX to be built with SOCKS5 support.  This
is particularly helpful if you want to irc fromn behind a firewall or
NAT box, since many IRC servers nowadays use IDENT which doesn't work
through firewalls.  However, stick a socks5 proxy on the firewall, and
everything works fine...

>How-To-Repeat:

>Fix:

--- Makefile.old	Mon Dec  4 18:02:09 2000
+++ Makefile	Mon Dec  4 18:00:59 2000
@@ -51,6 +51,12 @@
 	@uudecode -p ${FILESDIR}/tcl-freebsd.o.uu > ${WRKSRC}/source/tcl.o
 .endif
 
+.if defined(WITH_SOCKS5)
+BUILD_DEPENDS+=	${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
+CONFIGURE_ARGS+=--with-socks5=${LOCALBASE}
+CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include"
+.endif
+
 .if defined(WITH_PLUGINS)
 CONFIGURE_ARGS+=--with-plugins=pkga,possum,encrypt,hint,abot,acro,amp,blowfish,scan,wavplay,qmail,fserv,nap,qbx
 PLIST_SUB+=	PLUGINS:=""
@@ -70,6 +76,7 @@
 	@${ECHO} "WITH_PLUGINS - Build the plugins"
 	@${ECHO} "WITH_LATIN - Recommended if you are using an ISO-8859-1 display"
 	@${ECHO} "WITH_TCL - Build BitchX with TCL scripting"
+	@${ECHO} "WITH_SOCKS5 - Build BitchX with SOCKS5 support"
 
 post-install:
 .if !defined(NOPORTDOCS)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sf 
State-Changed-When: Wed Jan 17 08:22:24 PST 2001 
State-Changed-Why:  
SOCKS5 support added recently by maintainer. 
Thanks for your patch. 

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